ilog.tgo.faces.equipment.dhtml.servlet
Class IltFacesEquipmentServletSupport

java.lang.Object
  extended by ilog.views.servlet.IlvManagerServletSupport
      extended by ilog.views.faces.dhtml.servlet.IlvFacesManagerServletSupport
          extended by ilog.tgo.faces.graph.dhtml.servlet.IltFacesGraphServletSupport
              extended by ilog.tgo.faces.equipment.dhtml.servlet.IltFacesEquipmentServletSupport
All Implemented Interfaces:
IltFacesJTGOConstants, IlvDHTMLConstants, IlvDHTMLFrameworkConstants, IlvFacesConstants, IlvFrameworkConstants

public class IltFacesEquipmentServletSupport
extends IltFacesGraphServletSupport
implements IltFacesJTGOConstants, IlvDHTMLFrameworkConstants

This class defines the servlet support implementation used by the equipment servlet (IltFacesEquipmentServletSupport).

Since:
JViews 7.5

Field Summary
 
Fields inherited from class ilog.tgo.faces.graph.dhtml.servlet.IltFacesGraphServletSupport
graphicObjectComparator, managerLayerComparator
 
Fields inherited from class ilog.views.faces.dhtml.servlet.IlvFacesManagerServletSupport
IMAGE_MAP_GENERATOR_PARAM, TILE_MANAGER_PARAM
 
Fields inherited from class ilog.views.servlet.IlvManagerServletSupport
ImageMapAreaGeneratorProperty
 
Fields inherited from interface ilog.tgo.faces.IltFacesJTGOConstants
CONTEXT, DATA_SOURCE, DATA_SOURCE_ID, DEFAULT_STYLE_SHEET, EQUIPMENT, NETWORK, OBJECT_ACTION_MB, 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
 
Fields inherited from interface ilog.views.faces.IlvFacesConstants
BUTTON_GROUP_ID, BUTTON_TYPE, CHARTS_BUNDLE, CORE_BUNDLE, CURSOR, DATA, DECODED_PROPERTY, DEFAULT_LINE_COLOR, DELETION_ALLOWED, DIAGRAMMER_BUNDLE, ENABLED, FILL_ON, FORCE_UPDATE_PROPERTIES, FRAMEWORK_BUNDLE, GANTT_BUNDLE, HEIGHT, IMAGE, IMAGE_MODE, INFO_PROVIDER_MB, INT_NOT_DEFINED, ITEM_DISABLED_STYLE_CLASS, ITEM_HIGHLIGHTED_STYLE_CLASS, ITEM_STYLE_CLASS, LINE_COLOR, LINE_WIDTH, MAPS_BUNDLE, MENU_MODEL_ID, MESSAGE, MESSAGE_BOX, MESSAGE_BOX_ID, MOVE_ALLOWED, OBJECT_FINDER, PARAM_COMPID, PARAM_DATA, PARAM_KEY, PARAM_NAMESPACE, PARAM_RESOURCE, PARAM_SERVICE, PARAM_TYPE, POPUP_MENU, POPUP_MENU_FACTORY, POPUP_MENU_FACTORY_CLASS, PORTLET_NAMESPACE, PROJECT, RESOURCES_PATH, RESOURCES_PATH_PREFIX, ROLLOVER_IMAGE, SELECTED, SELECTED_IMAGE, SERVICE_FORWARD, SERVICE_FORWARD_INT, SERVLET, SERVLET_CLASS, SERVLET_URL, STYLE, STYLE_CLASS, TGO_BUNDLE, TITLE, TOGGLE, VALUE, VIEW, VIEW_ID, WIDTH
 
Fields inherited from interface ilog.views.faces.dhtml.IlvDHTMLConstants
AUTO_SUBMIT, BACKGROUND_COLOR, CAPABILITIES_LOADED_HANDLER, COMPONENT, DO_ACTION_ON_BG_DESELECT, ERROR_MESSAGE, GENERATE_IMAGE_MAP, IMAGE_FORMAT, IMAGE_LOADED_HANDLER, IMAGE_MAP_GENERATOR, IMAGE_MAP_GENERATOR_CLASS, IMAGE_MAP_VISIBLE, IMAGE_SERVLET_CONTEXT, INVOCATION_CONTEXT, JSF_CONTEXT, ON_CLICK, ON_SELECTION_CHANGED, PORTLET_CONTEXT_KEY, PORTLET_SESSION_KEY, REPLACE_PATTERN, RESIZABLE, SESSION_EXP_HANDLER, SUBMITTED_VALUE, WAITING_IMAGE
 
Fields inherited from interface ilog.views.faces.IlvFacesConstants
BUTTON_GROUP_ID, BUTTON_TYPE, CHARTS_BUNDLE, CORE_BUNDLE, CURSOR, DATA, DECODED_PROPERTY, DEFAULT_LINE_COLOR, DELETION_ALLOWED, DIAGRAMMER_BUNDLE, ENABLED, FILL_ON, FORCE_UPDATE_PROPERTIES, FRAMEWORK_BUNDLE, GANTT_BUNDLE, HEIGHT, IMAGE, IMAGE_MODE, INFO_PROVIDER_MB, INT_NOT_DEFINED, ITEM_DISABLED_STYLE_CLASS, ITEM_HIGHLIGHTED_STYLE_CLASS, ITEM_STYLE_CLASS, LINE_COLOR, LINE_WIDTH, MAPS_BUNDLE, MENU_MODEL_ID, MESSAGE, MESSAGE_BOX, MESSAGE_BOX_ID, MOVE_ALLOWED, OBJECT_FINDER, PARAM_COMPID, PARAM_DATA, PARAM_KEY, PARAM_NAMESPACE, PARAM_RESOURCE, PARAM_SERVICE, PARAM_TYPE, POPUP_MENU, POPUP_MENU_FACTORY, POPUP_MENU_FACTORY_CLASS, PORTLET_NAMESPACE, PROJECT, RESOURCES_PATH, RESOURCES_PATH_PREFIX, ROLLOVER_IMAGE, SELECTED, SELECTED_IMAGE, SERVICE_FORWARD, SERVICE_FORWARD_INT, SERVLET, SERVLET_CLASS, SERVLET_URL, STYLE, STYLE_CLASS, TGO_BUNDLE, TITLE, TOGGLE, VALUE, VIEW, VIEW_ID, WIDTH
 
Constructor Summary
IltFacesEquipmentServletSupport(javax.servlet.ServletContext ctx)
          Constructor.
 
Method Summary
protected  void addJSFActionListeners()
          Adds the server actions that invokes the select interactors' value change listener.
protected  IlpEquipment getEquipment(javax.servlet.http.HttpServletRequest request)
          Returns the equipment component associated with the given view.
protected  IlpGraphView getGraphView(javax.servlet.http.HttpServletRequest request)
          Returns the graph view stored in the session, or creates a new one if needed.
 boolean handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Handle project property before processing the request.
protected  void setStyleSheets(javax.servlet.http.HttpServletRequest request, String styleSheets)
          Sets a given comma separated stylesheet list into the underlying equipment component.
protected  boolean shouldGenerateImageMap(javax.servlet.http.HttpServletRequest request, IlvGraphic graphic, IlvManagerView view, IlvTransformer t)
          Returns true if image map information should be generated for the specified IlvGraphic.
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.tgo.faces.graph.dhtml.servlet.IltFacesGraphServletSupport
createFacesContext, createPopupMenuSupport, createSelectionSupport, FilterLayers, getDynamicLayers, getGraphicObjectComparator, getImageMapAreaGenerator, getLayers, getLock, getManagerLayerComparator, getManagerView, getOverviewManagerView, GetViewId, installImageMapAreaGenerator, logHandleRequestException, resolveFileName
 
Methods inherited from class ilog.views.faces.dhtml.servlet.IlvFacesManagerServletSupport
additionalCapabilities, generateImage, getFacesContext, getMenuFactory, getTileManager, installImageMapAreaGenerator, isOverviewRequest, isSessionExpired, prepareManagerView
 
Methods inherited from class ilog.views.servlet.IlvManagerServletSupport
addServerActionListener, beforeDraw, encodeImage, getAdditionalCapabilities, getAntialiasing, getContentLengthEnable, getContext, getDefaultImageMapHREF, getExpirationDate, getInternalLock, getJPEGQuality, getKey, getManagerBBox, getMaxZoomLevel, getMinZoomLevel, getPopupMenuSupport, getSelectionSupport, getZoomLevels, isOverviewLayer, isPopupEnabled, isSelectionEnabled, isVerbose, removeServerActionListener, setAntialiasing, setContentLengthEnable, setImageResponseCachePolicy, setJPEGQuality, setPopupEnabled, setSelectionEnabled, setVerbose, useTileManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IltFacesEquipmentServletSupport

public IltFacesEquipmentServletSupport(javax.servlet.ServletContext ctx)
Constructor.

Parameters:
ctx - The servlet context, which is stored internally.
Method Detail

getEquipment

protected IlpEquipment getEquipment(javax.servlet.http.HttpServletRequest request)
Returns the equipment component associated with the given view.

Parameters:
request - The current servlet request.
Internal method or field: do not use!

addJSFActionListeners

protected void addJSFActionListeners()

Adds the server actions that invokes the select interactors' value change listener.

This methods registers an instance of IltFacesEquipmentServletAction for the select actions and IltFacesEquipmentServletRectAction for the select rectangle actions.

Specified by:
addJSFActionListeners in class IltFacesGraphServletSupport

getGraphView

protected IlpGraphView getGraphView(javax.servlet.http.HttpServletRequest request)
Returns the graph view stored in the session, or creates a new one if needed.

Specified by:
getGraphView in class IltFacesGraphServletSupport
Parameters:
request - The current servlet request.

setStyleSheets

protected void setStyleSheets(javax.servlet.http.HttpServletRequest request,
                              String styleSheets)
                       throws javax.servlet.ServletException
Sets a given comma separated stylesheet list into the underlying equipment component. The style sheet is used internally whenever a new image is processed.

Specified by:
setStyleSheets in class IltFacesGraphServletSupport
Parameters:
request - The request being processed.
styleSheets - The style sheet list being set.
Throws:
javax.servlet.ServletException

handleRequest

public boolean handleRequest(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
                      throws IOException,
                             javax.servlet.ServletException
Handle project property before processing the request.

Overrides:
handleRequest in class IltFacesGraphServletSupport
Parameters:
request - The current Http request.
response - The Http response.
Returns:
false when the request is not recognized by this servlet.
Throws:
IOException
javax.servlet.ServletException

shouldGenerateImageMap

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.

Overrides:
shouldGenerateImageMap in class IlvFacesManagerServletSupport
Parameters:
request - The current HTTP request.
layer - The layer.
view - The manager view for the specified request.
t - The transformer used to draw the view.

shouldGenerateImageMap

protected boolean shouldGenerateImageMap(javax.servlet.http.HttpServletRequest request,
                                         IlvGraphic graphic,
                                         IlvManagerView view,
                                         IlvTransformer t)
Returns true if image map information should be generated for the specified IlvGraphic.

Specified by:
shouldGenerateImageMap in class IltFacesGraphServletSupport
Parameters:
request - The current HTTP request.
graphic - The graphic object.
view - The manager view for the specified request.
t - The transformer used to draw the view.
Since:
JViews 8.1
Internal method or field: do not use!


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.