|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIGraphic
ilog.views.faces.component.IlvBasicView
ilog.views.faces.component.IlvFacesView
ilog.views.diagrammer.faces.component.IlvFacesDiagrammerView
ilog.views.diagrammer.faces.dhtml.component.IlvFacesDHTMLDiagrammerView
public class IlvFacesDHTMLDiagrammerView
This class defines the faces diagrammer component that has the properties needed for a DHTML rendering.
| Field Summary |
|---|
| Fields inherited from class ilog.views.faces.component.IlvFacesView |
|---|
MAX_ZOOM_DEFAULT_VALUE, MIN_ZOOM_DEFAULT_VALUE, PAN_FACTOR_DEFAULT_VALUE, ZOOM_FACTOR_DEFAULT_VALUE |
| Fields inherited from class ilog.views.faces.component.IlvBasicView |
|---|
DEFAULT_OBJECT_FINDER |
| Fields inherited from class javax.faces.component.UIGraphic |
|---|
COMPONENT_FAMILY, COMPONENT_TYPE |
| Fields inherited from interface ilog.views.diagrammer.faces.IlvFacesDiagrammerConstants |
|---|
DASHBOARD_DIAGRAM, DATA_SOURCE, DATA_SOURCE_ID, DATA_URL, DIAGRAMMER, EDITABLE, INPUT_XSL, OUTPUT_XSL, PARAM_CSS, PARAM_XML, PROPERTY_ACCESSOR, STYLE_SHEETS |
| 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 | |
|---|---|
IlvFacesDHTMLDiagrammerView()
Creates a new IlvFacesDHTMLDiagrammerView 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. |
static String |
getComponentType()
Returns the type of this component. |
String |
getControllerURL()
Returns the URL of the controller servlet. |
IlvDiagrammer |
getDiagrammer()
Returns the IlvDiagrammer instance wrapped by
this IlvFacesDiagrammer instance. |
String |
getErrorMessage()
Returns the message displayed by the view if an error occurred during the image generation by the server. |
String |
getFamily()
Returns the identifier of the component family to which this component
belongs. This identifier, in conjunction with the value of the This implementation returns the fully qualified class name. |
String |
getImageFormat()
Returns the desired format of the image generated by the servlet. |
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 |
getServlet()
Returns the servlet that will generate the image displayed by the view. |
String |
getServletClass()
|
String |
getServletURL()
|
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 that will be displayed by the view. |
String |
getWaitingImage()
Returns the path to the image displayed when the view loads the image. |
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 stateObj 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 |
setImageFormat(String imageFormat)
Sets the desired format of the image generated by the servlet. |
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 |
setServlet(String servlet)
Sets the servlet that will generate the image displayed by the view. |
void |
setServletClass(String servletClass)
|
void |
setServletURL(String servletURL)
|
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 |
setValue(Object value)
Sets the servlet that will generate the image displayed by the view. |
void |
setWaitingImage(String waitingImage)
Sets the path of the image displayed when the view loads the image. |
void |
updateModel(FacesContext ctx)
This method 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.diagrammer.faces.component.IlvFacesDiagrammerView |
|---|
getDataSource, getDataSourceId, getDefaultObjectFinder, getProject, getStyleSheets, isEditable, setDataSource, setDataSourceId, setDiagrammer, setEditable, setProject, setStyleSheets, showAll |
| Methods inherited from class ilog.views.faces.component.IlvFacesView |
|---|
getBoundingBox, getInteractor, getInteractorId, getMaxZoomLevel, getMinZoomLevel, getPanFactor, getStaticLayersCount, getTileSize, getVisibleLayers, getZoomFactor, getZoomLevels, isConstrainedOnContents, processValidators, setBoundingBox, setConstrainedOnContents, setInteractor, setInteractorId, setMaxZoomLevel, setMinZoomLevel, setPanFactor, setStaticLayersCount, setTileSize, setView, setVisibleLayers, setZoomFactor, setZoomLevels |
| Methods inherited from class ilog.views.faces.component.IlvBasicView |
|---|
clearDecodedPropertyMap, createFacesComponent, getAttributes, getData, getHeight, getMessageBox, getMessageBoxId, getStyle, getStyleClass, getWidth, isDecodedProperty, processUpdates, resetDecodedProperties, setData, setDecodedProperty, setHeight, setMessageBox, setMessageBoxId, setStyle, setStyleClass, setWidth |
| Methods inherited from class javax.faces.component.UIGraphic |
|---|
getUrl, getValue, getValueBinding, setUrl, setValueBinding |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvFacesDHTMLDiagrammerView()
IlvFacesDHTMLDiagrammerView instance.
| Method Detail |
|---|
public String getFamily()
Returns the identifier of the component family to which this component
belongs. This identifier, in conjunction with the value of the rendererType
property, may be used to select the appropriate Renderer for this component
instance.
This implementation returns the fully qualified class name.
getFamily in class IlvFacesDiagrammerViewpublic static String getComponentType()
public Color getBackgroundColor()
getBackgroundColor in interface IlvFacesDHTMLViewSupport
public String getControllerURL()
throws Exception
IllegalStateException - if this type of request is not handled.
Exceptionpublic String getErrorMessage()
getErrorMessage in interface IlvFacesDHTMLViewSupportpublic String getImageFormat()
getImageFormat in interface IlvDHTMLHelperpublic String getOnCapabilitiesLoaded()
getOnCapabilitiesLoaded in interface IlvFacesDHTMLViewSupportcapabilitiesLoaded event.public String getOnImageLoaded()
getOnImageLoaded in interface IlvFacesDHTMLViewSupportimageLoaded event.public String getServlet()
getServlet in interface IlvDHTMLHelperpublic String getServletClass()
getServletClass in interface IlvDHTMLHelperpublic String getServletURL()
getServletURL in interface IlvDHTMLHelperpublic String getStateURL()
getStateURL in interface IlvFacesDHTMLViewSupportpublic int getUpdateInterval()
getUpdateInterval in interface IlvFacesDHTMLViewSupportpublic String getWaitingImage()
getWaitingImage in interface IlvDHTMLHelperpublic boolean isGenerateImageMap()
isGenerateImageMap in interface IlvFacesDHTMLViewSupporttrue if the image map will be generated, false otherwise.public boolean isImageMapVisible()
isImageMapVisible in interface IlvFacesDHTMLViewSupporttrue if the image map will be shown, false otherwise.public void setBackgroundColor(Color backgroundColor)
setBackgroundColor in interface IlvFacesDHTMLViewSupportbackgroundColor - The background color to set.public void setErrorMessage(String errorMessage)
setErrorMessage in interface IlvFacesDHTMLViewSupporterrorMessage - The new error message to set.public void setGenerateImageMap(boolean generateImageMap)
setGenerateImageMap in interface IlvFacesDHTMLViewSupportgenerateImageMap - The flag value to set.public void setImageFormat(String imageFormat)
setImageFormat in interface IlvDHTMLHelperimageFormat - The desired image format of the image displayed by the view.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 void setOnCapabilitiesLoaded(String onCapabilitiesLoaded)
setOnCapabilitiesLoaded in interface IlvFacesDHTMLViewSupportonCapabilitiesLoaded - The new JavaScript function handler.public void setOnImageLoaded(String onImageLoaded)
setOnImageLoaded in interface IlvFacesDHTMLViewSupportonImageLoaded - The new JavaScript function handler.public void setServlet(String servlet)
setValue.
The servlet parameter could be a URL to the servlet or a fully qualified
servlet class that will be instantiated to generate the image.
setServlet in interface IlvDHTMLHelperservlet - The image generating servlet.public void setServletClass(String servletClass)
setServletClass in interface IlvDHTMLHelperpublic void setServletURL(String servletURL)
setServletURL in interface IlvDHTMLHelperpublic void setStateURL(String clientState)
setStateURL in interface IlvFacesDHTMLViewSupportclientState - The client state of the component.public void setUpdateInterval(int updateInterval)
setUpdateInterval in interface IlvFacesDHTMLViewSupportupdateInterval - The new update interval to set.public void setValue(Object value)
setValue in interface IlvDHTMLHelpersetValue in class UIGraphicvalue - The image generating servlet.public void setWaitingImage(String waitingImage)
setWaitingImage in interface IlvDHTMLHelperwaitingImage - The path of the image displayed when the view loads the image.public boolean isResizable()
isResizable in interface IlvFacesDHTMLViewSupportpublic void setResizable(boolean resizable)
setResizable in interface IlvFacesDHTMLViewSupportresizable - The resizable flag to set.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 IlvManagerView getView()
throws Exception
getView in interface IlvFacesDHTMLViewSupportgetView in class IlvFacesViewException
public IlvDiagrammer getDiagrammer()
throws Exception
IlvDiagrammer instance wrapped by
this IlvFacesDiagrammer instance.
getDiagrammer in class IlvFacesDiagrammerViewIlvDiagrammer instance.
Exception - If the session has expired between two requests the
IlvDiagrammer instance was lost.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 ctx)
updateModel in interface IlvDHTMLHelperupdateModel in class IlvFacesDiagrammerViewctx - The current faces context.public Object saveState(FacesContext context)
saveState in interface IlvFacesComponentsaveState in interface IlvDHTMLHelpersaveState in interface StateHoldersaveState in class IlvFacesDiagrammerViewcontext - The current faces context.
state of this component.
public void restoreState(FacesContext context,
Object stateObj)
stateObj parameter.
restoreState in interface IlvFacesComponentrestoreState in interface IlvDHTMLHelperrestoreState in interface StateHolderrestoreState in class IlvFacesDiagrammerViewcontext - 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 | |||||||||