|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.faces.dhtml.component.IlvDHTMLHelperImpl
ilog.views.faces.dhtml.component.IlvFacesDHTMLViewSupportImpl
public class IlvFacesDHTMLViewSupportImpl
This class is the implementation of the IlvDHTMLViewSupport that defines a
view that has the properties necessary to have a DHTML render.
| Field Summary | |
|---|---|
static Boolean |
GENERATE_IMAGE_MAP_DEFAULT_VALUE
Flag indicating whether an image map should be generated or not. |
static Boolean |
IMAGE_MAP_VISIBLE_DEFAULT_VALUE
Flag indicating whether an image map should be visible or not (if generated). |
static Boolean |
RESIZABLE_DEFAULT_VALUE
Default value of resizable property. |
static Integer |
UPDATE_INTERVAL_DEFAULT_VALUE
The interval in seconds between two automatic updates. |
| Fields inherited from class ilog.views.faces.dhtml.component.IlvDHTMLHelperImpl |
|---|
helped |
| Fields inherited from interface ilog.views.faces.dhtml.IlvDHTMLFrameworkConstants |
|---|
SESSION_ID_PREFIX, STATE_URL, STATIC_LAYERS_COUNT_PARAM, TILE_MANAGER, UPDATE_INTERVAL |
| Fields inherited from interface ilog.views.faces.IlvFrameworkConstants |
|---|
ACTION_NAME, AUTO_REFRESH, BOUNDING_BOX, CONSTRAINED_ON_CONTENTS, INTERACTOR, INTERACTOR_ID, MAX_ZOOM_LEVEL, MIN_ZOOM_LEVEL, NB_BUTTONS, ORIENTATION, ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL, PAN_FACTOR, STATIC_LAYERS_COUNT, TILE_SIZE, VISIBLE_LAYERS, ZOOM_FACTOR, ZOOM_LEVELS |
| Constructor Summary | |
|---|---|
IlvFacesDHTMLViewSupportImpl(IlvBasicView helped)
Creates a new IlvFacesDHTMLViewSupportImpl instance. |
|
| Method Summary | |
|---|---|
Color |
getBackgroundColor()
Returns the background color of the view |
String |
getBeforeSessionExpirationHandler()
Returns the JavaScript code that will be called when the session is about to expire. |
String |
getErrorMessage()
Returns the message displayed by the view if an error occurred during the image generation by the server. |
String |
getFamily()
Returns null as this component is a helper and not a real component. |
IlvImageMapAreaGenerator |
getImageMapGenerator()
Returns the image map generator. |
String |
getImageMapGeneratorClass()
Returns the image map generator class name. |
String |
getOnCapabilitiesLoaded()
Returns the JavaScript code executed when the capabilities are loaded from the server. |
String |
getOnImageLoaded()
Returns the JavaScript code that is executed when the image is loaded. |
String |
getStateURL()
Returns a string that represents the client view state. |
IlvTileManager |
getTileManager()
Returns the tile manager. |
int |
getUpdateInterval()
Returns the interval in seconds between two automatic updates. |
IlvManagerView |
getView()
Returns the manager view to be displayed by the helped view. |
IlvManagerView |
getView(IlvManagerView superView)
Returns the manager view to be displayed by the helped view. |
boolean |
isGenerateImageMap()
Returns the flag indicating that an image map should be generated. |
boolean |
isImageMapVisible()
Returns the flag indicating whether an image map should be visible or not (if generated) |
boolean |
isResizable()
Returns whether the view is resizable or not. |
void |
restoreState(FacesContext context,
Object stateObj)
Restores the state of this component from the state parameter. |
Object |
saveState(FacesContext context)
Returns the state of this component. |
void |
setBackgroundColor(Color backgroundColor)
Sets the background color of the view. |
void |
setBeforeSessionExpirationHandler(String handler)
Sets the JavaScript code that will be called when the session is about to expire. |
void |
setErrorMessage(String errorMessage)
The message displayed by the view if an error occurred during the image generation by the server. |
void |
setGenerateImageMap(boolean generateImageMap)
Sets the flag indicating whether an image map should be generated or not. |
void |
setImageMapGenerator(IlvImageMapAreaGenerator imageMapGenerator)
Sets the image map generator. |
void |
setImageMapGeneratorClass(String imageMapGeneratorClass)
Sets the image map generator class name. |
void |
setImageMapVisible(boolean imageMapVisible)
Sets the flag indicating whether an image map should be visible or not (if generated) |
void |
setOnCapabilitiesLoaded(String onCapabilitiesLoaded)
The JavaScript code executed when the capabilities are loaded from the server. |
void |
setOnImageLoaded(String onImageLoaded)
The JavaScript code that is executed when the image is loaded. |
void |
setResizable(boolean resizable)
Sets whether the view is resizable or not. |
void |
setStateURL(String clientState)
Sets the client state of the component. |
void |
setTileManager(IlvTileManager tileManager)
Sets the tile manager. |
void |
setUpdateInterval(int updateInterval)
The interval in seconds between two automatic updates. |
void |
updateModel(FacesContext context)
Updates the referenced values with the local values of the component if these values were updated from the client. |
| Methods inherited from class ilog.views.faces.dhtml.component.IlvDHTMLHelperImpl |
|---|
getHelped, getImageFormat, getServlet, getServletClass, getServletURL, getWaitingImage, setHelped, setImageFormat, setServlet, setServletClass, setServletURL, setValue, setWaitingImage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ilog.views.faces.dhtml.component.IlvDHTMLHelper |
|---|
getImageFormat, getServlet, getServletClass, getServletURL, getWaitingImage, setImageFormat, setServlet, setServletClass, setServletURL, setValue, setWaitingImage |
| Field Detail |
|---|
public static final Integer UPDATE_INTERVAL_DEFAULT_VALUE
public static final Boolean GENERATE_IMAGE_MAP_DEFAULT_VALUE
public static final Boolean IMAGE_MAP_VISIBLE_DEFAULT_VALUE
public static final Boolean RESIZABLE_DEFAULT_VALUE
| Constructor Detail |
|---|
public IlvFacesDHTMLViewSupportImpl(IlvBasicView helped)
IlvFacesDHTMLViewSupportImpl instance.
helped - The component to support.| Method Detail |
|---|
public String getFamily()
null as this component is a helper and not a real component.
null.public int getUpdateInterval()
getUpdateInterval in interface IlvFacesDHTMLViewSupportpublic void setUpdateInterval(int updateInterval)
setUpdateInterval in interface IlvFacesDHTMLViewSupportupdateInterval - The new update interval to set.public boolean isGenerateImageMap()
isGenerateImageMap in interface IlvFacesDHTMLViewSupporttrue if the image map will be generated, false otherwise.public void setGenerateImageMap(boolean generateImageMap)
setGenerateImageMap in interface IlvFacesDHTMLViewSupportgenerateImageMap - The flag value to set.public boolean isImageMapVisible()
isImageMapVisible in interface IlvFacesDHTMLViewSupporttrue if the image map will be shown, false otherwise.public void setImageMapVisible(boolean imageMapVisible)
setImageMapVisible in interface IlvFacesDHTMLViewSupportimageMapVisible - The flag value to set.public IlvImageMapAreaGenerator getImageMapGenerator()
Returns the image map generator.
If thegenerateImageMap property is true,
this generator will be invoked to dynamically create the image map.
getImageMapGenerator in interface IlvFacesDHTMLViewSupportpublic void setImageMapGenerator(IlvImageMapAreaGenerator imageMapGenerator)
Sets the image map generator.
If thegenerateImageMap property is true,
this generator will be invoked to dynamically create the image map.
setImageMapGenerator in interface IlvFacesDHTMLViewSupportimageMapGenerator - The image map generator.public String getImageMapGeneratorClass()
Returns the image map generator class name.
If the generateImageMap property is true, and
the imageMapgenerator property is not set, an instance of this generator
will be created and this generator will be invoked to dynamically create the image map.
getImageMapGeneratorClass in interface IlvFacesDHTMLViewSupportpublic void setImageMapGeneratorClass(String imageMapGeneratorClass)
Sets the image map generator class name.
If the generateImageMap property is true, and
the imageMapgenerator property is not set, an instance of this generator
will be created and this generator will be invoked to dynamically create the image map.
setImageMapGeneratorClass in interface IlvFacesDHTMLViewSupportimageMapGeneratorClass - The image map generator class name.public Color getBackgroundColor()
getBackgroundColor in interface IlvFacesDHTMLViewSupportpublic void setBackgroundColor(Color backgroundColor)
setBackgroundColor in interface IlvFacesDHTMLViewSupportbackgroundColor - The background color to set.public String getOnImageLoaded()
getOnImageLoaded in interface IlvFacesDHTMLViewSupportimageLoaded event.public void setOnImageLoaded(String onImageLoaded)
setOnImageLoaded in interface IlvFacesDHTMLViewSupportonImageLoaded - The new JavaScript function handler.public String getOnCapabilitiesLoaded()
getOnCapabilitiesLoaded in interface IlvFacesDHTMLViewSupportcapabilitiesLoaded event.public void setOnCapabilitiesLoaded(String onCapabilitiesLoaded)
setOnCapabilitiesLoaded in interface IlvFacesDHTMLViewSupportonCapabilitiesLoaded - The new JavaScript function handler.public String getErrorMessage()
getErrorMessage in interface IlvFacesDHTMLViewSupportpublic void setErrorMessage(String errorMessage)
setErrorMessage in interface IlvFacesDHTMLViewSupporterrorMessage - The new error message to set.public String getStateURL()
getStateURL in interface IlvFacesDHTMLViewSupportpublic void setStateURL(String clientState)
setStateURL in interface IlvFacesDHTMLViewSupportclientState - The client state of the component.public boolean isResizable()
isResizable in interface IlvFacesDHTMLViewSupportpublic void setResizable(boolean resizable)
setResizable in interface IlvFacesDHTMLViewSupportresizable - The resizable flag to set.public IlvManagerView getView()
getView(null).
getView in interface IlvFacesDHTMLViewSupportpublic IlvManagerView getView(IlvManagerView superView)
superView - The manager view resulting by a call to super.getView() by the helped view.
public IlvTileManager getTileManager()
The tile manager is used when the view is tiled, that is, if the tileSize property is greater or equals to 0.
getTileManager in interface IlvFacesDHTMLViewSupportpublic void setTileManager(IlvTileManager tileManager)
The tile manager is used when the view is tiled, that is, if the tileSize property is greater or equals to 0.
setTileManager in interface IlvFacesDHTMLViewSupporttileManager - The tile manager to set.public String getBeforeSessionExpirationHandler()
getBeforeSessionExpirationHandler in interface IlvFacesDHTMLViewSupportpublic void setBeforeSessionExpirationHandler(String handler)
This code can use the view implicit variable that represents the JavaScript proxy of this component.
setBeforeSessionExpirationHandler in interface IlvFacesDHTMLViewSupporthandler - The JavasScript code.public void updateModel(FacesContext context)
updateModel in interface IlvDHTMLHelperupdateModel in class IlvDHTMLHelperImplcontext - The current faces context.public Object saveState(FacesContext context)
saveState in interface IlvDHTMLHelpersaveState in class IlvDHTMLHelperImplcontext - The current faces context.
public void restoreState(FacesContext context,
Object stateObj)
restoreState in interface IlvDHTMLHelperrestoreState in class IlvDHTMLHelperImplcontext - The current faces context.stateObj - The previously saved state of this component.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||