public class IlvFacesManagerPopupSupport extends IlvManagerPopupServletSupport
MENU_SESSION_KEY, REQUEST_TYPE, SERVLET_ACTION_NAME
Constructor and Description |
---|
IlvFacesManagerPopupSupport(IlvManagerServletSupport support)
Creates a pop-up support for JSF Framework components.
|
Modifier and Type | Method and Description |
---|---|
protected ServerActionListener |
createListener()
Returns a new instance of
IlvFacesPopupMenuActionListener which can handle pop-up 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. |
protected Object |
getSelectedObject(javax.servlet.http.HttpServletRequest request,
int x,
int y)
Returns the
IlvGraphic instance selected by the user when he
triggered the pop-up 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. |
getGraphicComponent, getMenuModelId, getSupport, installListeners, prepareComponent, removeListeners
createMenu, createMenu, getMenuFactory, getServletContext, handleRequest, setMenuFactory, setServletContext
public IlvFacesManagerPopupSupport(IlvManagerServletSupport support)
support
- The image generating servlet support.protected Object getSelectedObject(javax.servlet.http.HttpServletRequest request, int x, int y) throws javax.servlet.ServletException
IlvGraphic
instance selected by the user when he
triggered the pop-up menu.getSelectedObject
in class IlvManagerPopupServletSupport
request
- The HTTP request.x
- x coordinate in image view coordinate system.y
- y coordinate in image view coordinate system.IlvGraphic
instance.javax.servlet.ServletException
IlvPopupMenuServletSupport.getGraphicComponent(HttpServletRequest)
protected Object invokeFinder(IlvObjectSelectedFinder baseFinder, IlvManagerView view, String[] params)
baseFinder
- The finder to invoke.view
- The view component.params
- The action parameters.protected IlvPopupMenuEncoder getMenuEncoder(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
IlvMenu
into a code comprehensible for the client.IlvPopupMenuEncoder
instance.getMenuEncoder
in class IlvPopupMenuServletSupport
request
- The HTTP request.javax.servlet.ServletException
protected ServerActionListener createListener()
IlvFacesPopupMenuActionListener
which can handle pop-up menu actions.createListener
in class IlvManagerPopupServletSupport
protected void savePopupMenuModelInSession(javax.servlet.http.HttpServletRequest request, IlvMenu root)
MENU_SESSION_KEY
key.
Overridden to use the faces context to access the session.savePopupMenuModelInSession
in class IlvPopupMenuServletSupport
request
- The Http request.root
- The root menu of the menu model.protected IlvMenu getPopupMenuFromSession(javax.servlet.http.HttpServletRequest request)
MENU_SESSION_KEY
key.
Overridden to use the faces context to access the session.getPopupMenuFromSession
in class IlvPopupMenuServletSupport
request
- The Http request.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.