ilog.views.faces.dhtml.servlet
Class IlvFacesManagerPopupSupport

java.lang.Object
  extended by ilog.views.util.servlet.IlvPopupMenuServletSupport
      extended by ilog.views.servlet.IlvManagerPopupServletSupport
          extended by ilog.views.faces.dhtml.servlet.IlvFacesManagerPopupSupport
Direct Known Subclasses:
IlvFacesDiagrammerPopupSupport

public class IlvFacesManagerPopupSupport
extends IlvManagerPopupServletSupport

This class defines the popup servlet support for the JSF Graphics Framework.

Since:
JViews 7.5

Field Summary
 
Fields inherited from class ilog.views.util.servlet.IlvPopupMenuServletSupport
MENU_SESSION_KEY, REQUEST_TYPE, SERVLET_ACTION_NAME
 
Constructor Summary
IlvFacesManagerPopupSupport(IlvManagerServletSupport support)
          Creates a popup support for JSF Framework components.
 
Method Summary
protected  ServerActionListener createListener()
          Returns a new instance of IlvFacesPopupMenuActionListener which can handle popup menu actions.
protected  IlvPopupMenuEncoder getMenuEncoder(javax.servlet.http.HttpServletRequest request)
          Returns the menu encoder responsible for encoding the root IlvMenu into a code comprehensible for the client.
protected  IlvMenu getPopupMenuFromSession(javax.servlet.http.HttpServletRequest request)
          Retrieve menu model stored in the session with the MENU_SESSION_KEY key. Overridden to use the faces context to access the session.
protected  Object getSelectedObject(javax.servlet.http.HttpServletRequest request, int x, int y)
          Returns the IlvGraphic instance selected by the user when he triggered the popup menu.
protected  Object invokeFinder(IlvObjectSelectedFinder baseFinder, IlvManagerView view, String[] params)
          Invokes the specified finder with the parameters extracted from the action.
protected  void savePopupMenuModelInSession(javax.servlet.http.HttpServletRequest request, IlvMenu root)
          Saves the generated menu in session using the MENU_SESSION_KEY key. Overridden to use the faces context to access the session.
 
Methods inherited from class ilog.views.servlet.IlvManagerPopupServletSupport
getGraphicComponent, getMenuModelId, getSupport, installListeners, prepareComponent, removeListeners
 
Methods inherited from class ilog.views.util.servlet.IlvPopupMenuServletSupport
createMenu, createMenu, getMenuFactory, getServletContext, handleRequest, setMenuFactory, setServletContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvFacesManagerPopupSupport

public IlvFacesManagerPopupSupport(IlvManagerServletSupport support)
Creates a popup support for JSF Framework components.

Parameters:
support - The image generating servlet support.
Method Detail

getSelectedObject

protected Object getSelectedObject(javax.servlet.http.HttpServletRequest request,
                                   int x,
                                   int y)
                            throws javax.servlet.ServletException
Returns the IlvGraphic instance selected by the user when he triggered the popup menu.

Overrides:
getSelectedObject in class IlvManagerPopupServletSupport
Parameters:
request - The Http request
x - x coordinate in image view coordinate system.
y - y coordinate in image view coordinate system.
Returns:
The selected IlvGraphic instance.
Throws:
javax.servlet.ServletException
See Also:
IlvPopupMenuServletSupport.getGraphicComponent(HttpServletRequest)

invokeFinder

protected Object invokeFinder(IlvObjectSelectedFinder baseFinder,
                              IlvManagerView view,
                              String[] params)
Invokes the specified finder with the parameters extracted from the action.

Parameters:
baseFinder - The finder to invoke.
view - The view component.
params - The action parameters.
Returns:
The object found by the finder.

getMenuEncoder

protected IlvPopupMenuEncoder getMenuEncoder(javax.servlet.http.HttpServletRequest request)
                                      throws javax.servlet.ServletException
Returns the menu encoder responsible for encoding the root IlvMenu into a code comprehensible for the client.
This method returns an IlvPopupMenuEncoder instance.

Overrides:
getMenuEncoder in class IlvPopupMenuServletSupport
Parameters:
request - The Http request.
Returns:
The menu encoder.
Throws:
javax.servlet.ServletException

createListener

protected ServerActionListener createListener()
Returns a new instance of IlvFacesPopupMenuActionListener which can handle popup menu actions.

Overrides:
createListener in class IlvManagerPopupServletSupport

savePopupMenuModelInSession

protected void savePopupMenuModelInSession(javax.servlet.http.HttpServletRequest request,
                                           IlvMenu root)
Saves the generated menu in session using the MENU_SESSION_KEY key. Overridden to use the faces context to access the session.

Overrides:
savePopupMenuModelInSession in class IlvPopupMenuServletSupport
Parameters:
request - The Http request.
root - The root menu of the menu model.
Since:
JViews 8.0

getPopupMenuFromSession

protected IlvMenu getPopupMenuFromSession(javax.servlet.http.HttpServletRequest request)
Retrieve menu model stored in the session with the MENU_SESSION_KEY key. Overridden to use the faces context to access the session.

Overrides:
getPopupMenuFromSession in class IlvPopupMenuServletSupport
Parameters:
request - The Http request.
Returns:
The menu stored in session.
Since:
JViews 8.0


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