|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.webapp.UIComponentTag
javax.faces.webapp.UIComponentBodyTag
ilog.views.faces.taglib.IlvBaseTag
ilog.views.faces.taglib.IlvSizedTag
ilog.views.faces.dhtml.taglib.IlvDHTMLSizedTag
ilog.views.faces.dhtml.taglib.IlvDHTMLViewTag
ilog.views.faces.dhtml.taglib.IlvFacesViewTag
public class IlvFacesViewTag
This class defines the JSP custom tag handler for the
IlvFacesDHTMLView
component and its DHTML renderer.
| Field Summary |
|---|
| Fields inherited from class javax.faces.webapp.UIComponentBodyTag |
|---|
bodyContent |
| Fields inherited from class javax.faces.webapp.UIComponentTag |
|---|
pageContext |
| 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 |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
|---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
IlvFacesViewTag()
Creates a new IlvFacesViewTag instance. |
|
| Method Summary | |
|---|---|
String |
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 |
getBoundingBox()
Returns the view bounding box in manager coordinates system. |
String |
getComponentType()
Returns the component type for the component that is or will be bound to this tag. |
String |
getConstrainedOnContents()
Returns whether the view is constrained to the manager content bounds or not. |
String |
getErrorMessage()
Returns the message displayed by the view if an error occurred during the image generation by the server. |
String |
getGenerateImageMap()
Returns the flag indicating whether an image map should be generated. |
String |
getImageFormat()
Returns the image format of the image displayed by this view. |
String |
getImageMapGenerator()
Returns the image map generator. |
String |
getImageMapGeneratorClass()
Returns the image map generator class name. |
String |
getImageMapVisible()
Returns the flag indicating whether an image map should be visible or not (if generated). |
String |
getInteractor()
Returns the binding to an interactor to set on this view. |
String |
getInteractorId()
Returns the interactor identifier current set on this view. |
String |
getMaxZoomLevel()
Returns the maximum zoom level. |
String |
getMinZoomLevel()
Returns the minimum zoom level. |
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 |
getPanFactor()
Returns the panFactor. |
String |
getRendererType()
Return the |
String |
getResizable()
Returns whether the view is resizable or not. |
String |
getServlet()
Returns the servlet that will generate the image. |
String |
getStaticLayersCount()
Returns the number of static layers. |
String |
getTileManager()
Returns the tile manager is responsible for retrieving and/or storing image tiles on the server side. |
String |
getTileSize()
Returns the the tile size. |
String |
getUpdateInterval()
Returns the interval in seconds between two automatic updates. |
String |
getView()
Returns the value binding to the manager view to be displayed. |
String |
getVisibleLayers()
Returns the visible manager layer names. |
String |
getWaitingImage()
Returns the image URL displayed during the image loading. |
String |
getZoomFactor()
Returns the zoom factor. |
String |
getZoomLevels()
Returns the fixed zoom levels displayed by the view. |
void |
setBackgroundColor(String 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 |
setBoundingBox(String boundingBox)
Sets the bounding box in "x,y,w,h" format. |
void |
setConstrainedOnContents(String constrainedOnContents)
Defines whether the view is constrained to the manager content bounds or not. |
void |
setErrorMessage(String errorMessage)
The message displayed by the view if an error occurred during the image generation by the server. |
void |
setGenerateImageMap(String generateImageMap)
Sets the flag indicating whether an image map should be generated or not. |
void |
setImageFormat(String imageFormat)
Sets the image format used to encode the image that is displayed by this view. |
void |
setImageMapGenerator(String imageMapGenerator)
Sets the image map generator. |
void |
setImageMapGeneratorClass(String imageMapGeneratorClass)
Sets the image map generator class name. |
void |
setImageMapVisible(String imageMapVisible)
Sets the flag indicating whether an image map should be visible or not (if generated). |
void |
setInteractor(String interactor)
Sets the binding to an interactor. |
void |
setInteractorId(String interactorId)
Sets the interactor identifier to set on this view. |
void |
setMaxZoomLevel(String maxZoomLevel)
Sets the maximum zoom level. |
void |
setMinZoomLevel(String minZoomLevel)
Sets the minimum zoom level. |
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 |
setPanFactor(String panFactor)
Sets the factor used when pan JavaScript actions are called (like panNorth
and so on.) |
protected void |
setProperties(UIComponent component)
Override properties and attributes of the specified component, if the corresponding properties of this tag handler instance were explicitly set. This method must be called ONLY if the specified component was in fact created during the execution of this tag handler instance, and this call will occur BEFORE the component is added to the view. Tag subclasses that want to support additional set properties
must ensure that the base class
protected void setProperties(UIComponent component) {
super.setProperties(component);
if (foo != null) {
component.setAttribute("foo", foo);
}
if (bar != null) {
component.setAttribute("bar", bar);
}
}
|
void |
setResizable(String resizable)
Sets whether the view is resizable or not. |
void |
setServlet(String servlet)
The servlet that will generate the image. |
void |
setStaticLayersCount(String layersCount)
Sets the number of static layers. |
void |
setTileManager(String tileManager)
Sets the tile manager is responsible for retrieving and/or storing image tiles on the server side. |
void |
setTileSize(String tileSize)
Sets the size of a tile. |
void |
setUpdateInterval(String updateInterval)
Sets the interval in seconds between two automatic updates. |
void |
setView(String view)
Sets the manager view value binding. |
void |
setVisibleLayers(String visibleLayers)
Sets the visible manager layer names. |
void |
setWaitingImage(String waitingImage)
Sets the image displayed during the image loading. |
void |
setZoomFactor(String zoomFactor)
Sets the factor used when zoomIn or zoomOut JavaScript actions are called. |
void |
setZoomLevels(String zoomLevels)
Sets the fixed zoom levels displayed by the view. |
| Methods inherited from class ilog.views.faces.dhtml.taglib.IlvDHTMLViewTag |
|---|
getData, getDoStartValue, getMessageBox, getMessageBoxId, setData, setMessageBox, setMessageBoxId |
| Methods inherited from class ilog.views.faces.dhtml.taglib.IlvDHTMLSizedTag |
|---|
getStyle, getStyleClass, setStyle, setStyleClass |
| Methods inherited from class ilog.views.faces.taglib.IlvSizedTag |
|---|
getHeight, getWidth, setHeight, setWidth |
| Methods inherited from class ilog.views.faces.taglib.IlvBaseTag |
|---|
setProperty, setVBProperty, testSetProperties |
| Methods inherited from class javax.faces.webapp.UIComponentBodyTag |
|---|
doAfterBody, doInitBody, getBodyContent, getDoAfterBodyValue, getPreviousOut, release, setBodyContent |
| Methods inherited from class javax.faces.webapp.UIComponentTag |
|---|
doEndTag, doStartTag, encodeBegin, encodeChildren, encodeEnd, findComponent, getComponentInstance, getCreated, getDoEndValue, getFacesContext, getFacetName, getId, getParent, getParentUIComponentTag, isSuppressed, isValueReference, setBinding, setId, setPageContext, setParent, setRendered, setupResponseWriter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
doEndTag, doStartTag, getParent, setPageContext, setParent |
| Constructor Detail |
|---|
public IlvFacesViewTag()
IlvFacesViewTag instance.
| Method Detail |
|---|
public String getComponentType()
Returns the component type for the component that is or will be bound to this tag.
This implementation returns null, subclasses must
override this method to return the appropriate value.
getComponentType in class IlvBaseTagpublic String getRendererType()
Return the rendererType property that selects the
Renderer to be used for encoding this component, or
null to ask the component to render itself directly.
This implementation return null, subclasses must override
this method to return the appropriate value.
getRendererType in class IlvBaseTagprotected void setProperties(UIComponent component)
Override properties and attributes of the specified component, if the corresponding properties of this tag handler instance were explicitly set. This method must be called ONLY if the specified component was in fact created during the execution of this tag handler instance, and this call will occur BEFORE the component is added to the view.
Tag subclasses that want to support additional set properties
must ensure that the base class setProperties()
method is still called. A typical implementation that supports
extra properties foo and bar would look
something like this:
protected void setProperties(UIComponent component) {
super.setProperties(component);
if (foo != null) {
component.setAttribute("foo", foo);
}
if (bar != null) {
component.setAttribute("bar", bar);
}
}
setProperties in class IlvDHTMLViewTagcomponent - The component whose properties are to be
overriddenpublic String getBoundingBox()
public void setBoundingBox(String boundingBox)
boundingBox - public String getInteractor()
public void setInteractor(String interactor)
interactor - The binding to an interactor to set.public String getInteractorId()
public void setInteractorId(String interactorId)
interactorId - The interactor ID to set.public String getZoomFactor()
public void setZoomFactor(String zoomFactor)
zoomIn or zoomOut JavaScript actions are called.
zoomFactor - The zoomFactor to set.public String getPanFactor()
panFactor.
public void setPanFactor(String panFactor)
panNorth
and so on.)
panFactor - The pan factor to set.public String getUpdateInterval()
public void setUpdateInterval(String updateInterval)
updateInterval - The update interval to set.public String getImageFormat()
getImageFormat in class IlvDHTMLViewTagpublic void setImageFormat(String imageFormat)
JPEG or PNG.
setImageFormat in class IlvDHTMLViewTagimageFormat - The image format to set.public String getWaitingImage()
getWaitingImage in class IlvDHTMLViewTagpublic void setWaitingImage(String waitingImage)
setWaitingImage in class IlvDHTMLViewTagwaitingImage - The image URL to set.public String getGenerateImageMap()
true if the image map will be generated, false otherwise.public void setGenerateImageMap(String generateImageMap)
generateImageMap - The generation flag to set.public String getImageMapVisible()
public void setImageMapVisible(String imageMapVisible)
imageMapVisible - The visibility flag to set.public String getImageMapGenerator()
Returns the image map generator.
If thegenerateImageMap property is true,
this generator will be invoked to create the image map dynamically.
public void setImageMapGenerator(String imageMapGenerator)
Sets the image map generator.
If thegenerateImageMap property is true,
this generator will be invoked to create the image map dynamically.
imageMapGenerator - The image generator to set.public String getImageMapGeneratorClass()
Returns the image map generator class name.
This property is used if, and only if, the imageMapGenerator is not set.
public void setImageMapGeneratorClass(String imageMapGeneratorClass)
Sets the image map generator class name.
This property is used if, and only if, the imageMapGenerator is not set.
imageMapGeneratorClass - The image map generator class name.public String getBackgroundColor()
public void setBackgroundColor(String backgroundColor)
backgroundColor - The background color to set.public String getOnImageLoaded()
imageLoaded event.public void setOnImageLoaded(String onImageLoaded)
onImageLoaded - The new JavaScript function handler.public String getOnCapabilitiesLoaded()
capabilitiesLoaded event.public void setOnCapabilitiesLoaded(String onCapabilitiesLoaded)
onCapabilitiesLoaded - The new JavaScript function handler.public String getErrorMessage()
public void setErrorMessage(String errorMessage)
errorMessage - The new error message to set.public String getServlet()
getServlet in class IlvDHTMLViewTagpublic void setServlet(String servlet)
setServlet in class IlvDHTMLViewTagservlet - The servlet to set.public String getView()
public void setView(String view)
view - The manager view value binding.public String getResizable()
public void setResizable(String resizable)
resizable - The resizable to set.public String getTileSize()
By default the tile size is -1 which means that the tiled mode is disabled
public void setTileSize(String tileSize)
The tile size must be carefully chosen for performance reasons.
See the dedicated section of the user manual for more information.
tileSize - The tile size to set.getTileSize()public String getTileManager()
The default implementation is an ilog.views.util.servlet.tiling.IlvFileTileManager that retrieve the tileimages on the file system. if a tile is not already cached, it generates the image and store it on the file system.
The tile manager is used when the view is tiled, i.e. if the tileSize is strictly positive.
public void setTileManager(String tileManager)
The default implementation is an ilog.views.util.servlet.tiling.IlvFileTileManager that retrieve the tileimages on the file system. if a tile is not already cached, it generates the image and store it on the file system.
The tile manager is used when the view is tiled, i.e. if the tileSize is strictly positive.
tileManager - The tile manager to set.public String getStaticLayersCount()
public void setStaticLayersCount(String layersCount)
layersCount - The number of static layers.getStaticLayersCount()public String getZoomLevels()
maxZoomLevel property.
public void setZoomLevels(String zoomLevels)
maxZoomLevel property.
zoomLevels - The zoom levels to set, as a comma separated list.public String getMaxZoomLevel()
zoomLevels property is not used.The default value is 10.
public void setMaxZoomLevel(String maxZoomLevel)
zoomLevels property is not used.The default value is 10.
maxZoomLevel - The max zoom level to set.public String getMinZoomLevel()
zoomLevels property is not used.The default value is 1.
public void setMinZoomLevel(String minZoomLevel)
zoomLevels property is not used.The default value is 1.
minZoomLevel - The max zoom level to set.public String getVisibleLayers()
This property controls the manager layers that will be visible. If the view is in tiled mode, manipulating only dynamic layer visibility is mandatory. As a matter of fact, static layers are meant to be cached and mustn't be updated.
public void setVisibleLayers(String visibleLayers)
This property controls the manager layers that will be visible. If the view is in tiled mode, manipulating only dynamic layer visibility is mandatory. As a matter of fact, static layers are meant to be cached and mustn't be updated.
visibleLayers - The visible layers to set as a comma separated list.public String getBeforeSessionExpirationHandler()
public void setBeforeSessionExpirationHandler(String handler)
handler - The JavasScript code.public String getConstrainedOnContents()
true.
Note that zoom levels (set by minZoomLevel or zoomLevels) lower than 1 will not be allowed if this property is set to true.
public void setConstrainedOnContents(String constrainedOnContents)
true.
Note that zoom levels (set by minZoomLevel or zoomLevels) lower than 1 will not be allowed if this property is set to true.
constrainedOnContents - Defines whether the view is constrained or not.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||