|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.servlet.IlvManagerServletSupport
ilog.views.sdm.servlet.IlvSDMServletSupport
ilog.views.diagrammer.servlet.IlvDiagrammerServletSupport
ilog.views.diagrammer.faces.dhtml.servlet.IlvFacesDiagrammerServletSupport
public class IlvFacesDiagrammerServletSupport
The IlvFacesDiagrammerServletSupport class is an extension of the
IlvDiagrammerServletSupport
that handle requests that are coming from the DHTML faces diagrammer component.
| Field Summary |
|---|
| Fields inherited from class ilog.views.servlet.IlvManagerServletSupport |
|---|
ImageMapAreaGeneratorProperty |
| Fields inherited from interface ilog.views.diagrammer.faces.IlvFacesDiagrammerConstants |
|---|
DASHBOARD_DIAGRAM, DATA_SOURCE, DATA_URL, DIAGRAMMER, EDITABLE, INPUT_XSL, OUTPUT_XSL, PARAM_CSS, PARAM_XML, PROPERTY_ACCESSOR, STYLE_SHEETS |
| 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 | |
|---|---|
IlvFacesDiagrammerServletSupport()
Deprecated. Beginning with JViews 7.5 use IlvFacesDiagrammerServletSupport(ServletContext) instead. |
|
IlvFacesDiagrammerServletSupport(javax.servlet.ServletContext context)
Creates a new IlvFacesDiagrammerServletSupport instance. |
|
| Method Summary | |
|---|---|
protected void |
additionalCapabilities(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletOutputStream out,
String mimeFormat)
Allows you to add additional capabilities to the capability request. |
protected void |
addJSFActionListeners()
Adds the server actions that are needed by various client-side interactions. |
protected IlvPopupMenuServletSupport |
createPopupMenuSupport()
Creates a new instance of popup menu servlet support. |
protected IlvSelectionSupport |
createSelectionSupport()
Overrides IlvManagerServletSupport.createSelectionSupport() to
return an IlvDiagrammerSelectionSupport selection support. |
protected String |
findFile(String file)
Finds a data file on the server given a relative URL. |
protected BufferedImage |
generateImage(javax.servlet.http.HttpServletRequest request,
IlvRect bbox,
int width,
int height,
String[] requestedLayers,
Color bgColor,
boolean transparent)
Generates the image. |
protected FacesContext |
getFacesContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean forceCreation)
Returns an artificial faces context to retrieve value bindings. |
protected IlvImageMapAreaGenerator |
getImageMapAreaGenerator()
Returns the current image map area generator. |
protected IlvImageMapAreaGenerator |
getImageMapAreaGenerator(javax.servlet.http.HttpServletRequest request,
IlvGraphic obj,
IlvManagerView view,
IlvTransformer t)
Returns the area generator for the specified graphic object. |
protected Object |
getLock(javax.servlet.http.HttpServletRequest request)
Returns a locking object that is used to lock the contents of the manager. |
protected IlvMenuFactory |
getMenuFactory(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Retrieves or creates the menu factory used in this popup menu request. |
IlvSDMView |
getSDMView(javax.servlet.http.HttpServletRequest request)
Returns the SDM view associated with this servlet. |
IlvTileManager |
getTileManager(javax.servlet.http.HttpServletRequest request)
Returns the tile manager. |
protected Object |
getValue(javax.servlet.http.HttpServletRequest request,
String key)
This method is used to retrieve any data that is used by the implementation of the servlet. This method has been overridden to use JSF context. |
boolean |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method is overridden to handle the "project"
parameter. |
protected boolean |
isSessionExpired(javax.servlet.http.HttpServletRequest request)
This method returns true if the session has expired. |
protected void |
prepareManagerView(javax.servlet.http.HttpServletRequest request,
IlvManagerView view)
This method is overridden to set the reference zoom of the view and to add support for IlvJComponentGraphic objects.
This method has been overridden to configure the manager view for tiling. |
protected void |
setDataSource(javax.servlet.http.HttpServletRequest request,
String source)
Sets the data source specified in the request to the diagrammer. |
protected void |
setValue(javax.servlet.http.HttpServletRequest request,
String key,
Object value)
This method is used to store any data that is used by the implementation of the servlet. This method has been overridden to use JSF context. |
protected boolean |
shouldGenerateImageMap(javax.servlet.http.HttpServletRequest request,
IlvManagerLayer layer,
IlvManagerView view,
IlvTransformer t)
Returns true if image map information should be
generated for the specified layer. |
| Methods inherited from class ilog.views.diagrammer.servlet.IlvDiagrammerServletSupport |
|---|
getDefaultProject, getDiagrammer, initSDMView, setDefaultProject, setProject |
| Methods inherited from class ilog.views.sdm.servlet.IlvSDMServletSupport |
|---|
getDataURL, getDefaultStyleSheet, getDefaultXmlFile, getLayers, getManagerView, installImageMapAreaGenerator, isMultiSession, setDataURL, setDefaultStyleSheet, setDefaultXmlFile, setMultiSession, setStyleSheet, setXmlFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvFacesDiagrammerServletSupport()
IlvFacesDiagrammerServletSupport(ServletContext) instead.
IlvFacesDiagrammerServletSupport(ServletContext) instead.
public IlvFacesDiagrammerServletSupport(javax.servlet.ServletContext context)
IlvFacesDiagrammerServletSupport instance.
context - The servlet context| Method Detail |
|---|
protected IlvPopupMenuServletSupport createPopupMenuSupport()
createPopupMenuSupport in class IlvManagerServletSupportprotected IlvSelectionSupport createSelectionSupport()
IlvManagerServletSupport.createSelectionSupport() to
return an IlvDiagrammerSelectionSupport selection support.
During the creation of this support, listeners to handle selection and move are installed.
createSelectionSupport in class IlvDiagrammerServletSupport
protected FacesContext getFacesContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean forceCreation)
request - The HTTP request.response - The HTTP response.forceCreation - Set to true to force the creation of
faces context even when FacesContext.getCurrentInstance()
does not return null.
null.protected void addJSFActionListeners()
This method registers an instance of the following listeners:
protected String findFile(String file)
findFile in class IlvSDMServletSupportfile - The relative URL of the file to find on the server.
null if the file
could not be found.protected boolean isSessionExpired(javax.servlet.http.HttpServletRequest request)
true if the session has expired.
request - The request being processed.
true if the session expired.
protected Object getValue(javax.servlet.http.HttpServletRequest request,
String key)
Hashtable member variable of the servlet.
request.getSession().getValue(key).
If you want to implement another strategy to allocate views
to sessions, you need to override this method and the
IlvSDMServletSupport.setValue(javax.servlet.http.HttpServletRequest, java.lang.String, java.lang.Object) method.
This method has been overridden to use JSF context.
getValue in class IlvSDMServletSupportrequest - The current HTTP request.key - The key.
protected void setValue(javax.servlet.http.HttpServletRequest request,
String key,
Object value)
Hashtable member variable of the servlet.
request.getSession().setValue(key, value).
If you want to implement another strategy to allocate views
to sessions, you need to override this method and the
IlvSDMServletSupport.getValue(javax.servlet.http.HttpServletRequest, java.lang.String) method.
This method has been overridden to use JSF context.
setValue in class IlvSDMServletSupportrequest - The current HTTP request.key - The key.value - The value.public IlvSDMView getSDMView(javax.servlet.http.HttpServletRequest request)
getSDMView in class IlvSDMServletSupportrequest - The request being processed.
protected IlvMenuFactory getMenuFactory(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException
request - The http request.response - The http response.
javax.servlet.ServletException
public boolean handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
"project"
parameter.
handleRequest in class IlvDiagrammerServletSupportrequest - The current HTTP request.response - The HTTP response.
false when the request is not recognized by this
servlet.
IOException
javax.servlet.ServletException
protected void setDataSource(javax.servlet.http.HttpServletRequest request,
String source)
request - The http request.source - The data source request parameter value.
protected boolean shouldGenerateImageMap(javax.servlet.http.HttpServletRequest request,
IlvManagerLayer layer,
IlvManagerView view,
IlvTransformer t)
true if image map information should be
generated for the specified layer.
shouldGenerateImageMap in class IlvManagerServletSupportrequest - The current HTTP request.layer - The layer.view - The manager view for the specified request.t - The transformer used to draw the view.protected IlvImageMapAreaGenerator getImageMapAreaGenerator()
getImageMapAreaGenerator in class IlvSDMServletSupport
protected IlvImageMapAreaGenerator getImageMapAreaGenerator(javax.servlet.http.HttpServletRequest request,
IlvGraphic obj,
IlvManagerView view,
IlvTransformer t)
getImageMapAreaGenerator in class IlvManagerServletSupportrequest - The current HTTP request.obj - The graphic object for which the area will be generated.view - The manager view for the specified request.t - The transformer used to draw the view.
protected BufferedImage generateImage(javax.servlet.http.HttpServletRequest request,
IlvRect bbox,
int width,
int height,
String[] requestedLayers,
Color bgColor,
boolean transparent)
throws javax.servlet.ServletException
generateImage in class IlvManagerServletSupportrequest - The current HTTP request.bbox - The area of the manager to draw.width - The width of the image.height - The height of the image.requestedLayers - An array of layer names to draw.bgColor - The background color of the imagetransparent - Indicates if the image should be transparent.
javax.servlet.ServletException
protected void additionalCapabilities(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletOutputStream out,
String mimeFormat)
, 'myprop1' : 'myvalue1', 'myprop2' : 'myvalue2'
additionalCapabilities in class IlvManagerServletSupportrequest - The current HTTP request.out - The servlet output stream for writing additional
capabilities.mimeFormat - since JViews 8.1 always set to "json"
public IlvTileManager getTileManager(javax.servlet.http.HttpServletRequest request)
throws javax.servlet.ServletException
getTileManager in class IlvManagerServletSupportrequest - The http request.
javax.servlet.ServletException
protected void prepareManagerView(javax.servlet.http.HttpServletRequest request,
IlvManagerView view)
throws javax.servlet.ServletException
IlvJComponentGraphic objects.
This method has been overridden to configure the manager view for tiling.
prepareManagerView in class IlvSDMServletSupportrequest - The current HTTP request.view - The manager view.
javax.servlet.ServletExceptionprotected Object getLock(javax.servlet.http.HttpServletRequest request)
IlvSDMServletSupportHashtable member variable of the servlet.
getLock in class IlvSDMServletSupportrequest - The current HTTP request.IlvSDMServletSupport.setValue(HttpServletRequest, String, Object),
IlvSDMServletSupport.getValue(HttpServletRequest, String)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||