public class IlvFacesGanttPopupSupport extends IlvGanttPopupMenuSupport
MENU_SESSION_KEY, REQUEST_TYPE, SERVLET_ACTION_NAME
Constructor and Description |
---|
IlvFacesGanttPopupSupport(IlvGanttServletSupport support)
Creates an new
IlvFacesGanttPopupSupport . |
Modifier and Type | Method and Description |
---|---|
protected IlvServerAction |
createListener()
Returns a new instance of
IlvFacesGanttPopupMenuAction which can handle pop-up menu actions. |
protected IlvMenu |
createMenu(javax.servlet.http.HttpServletRequest request,
IlvMenuFactory factory,
Object graphicObject,
Object selectedObject,
String menuModelId)
Calls the menu factory to return the menu model.
|
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
IlvHierarchyNode selected when the user triggered
the pop-up menu. |
protected Object |
invokeFinder(IlvObjectSelectedFinder baseFinder,
IlvHierarchyChart 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. |
getChart, getGraphicComponent, getMenuModelId, installListeners, removeListeners
createMenu, getMenuFactory, getServletContext, handleRequest, prepareComponent, setMenuFactory, setServletContext
public IlvFacesGanttPopupSupport(IlvGanttServletSupport support)
IlvFacesGanttPopupSupport
.support
- The servlet supportprotected Object getSelectedObject(javax.servlet.http.HttpServletRequest request, int x, int y) throws javax.servlet.ServletException
IlvHierarchyNode
selected when the user triggered
the pop-up menu.
The x coordinate is unused as the y coordinate is sufficient.getSelectedObject
in class IlvGanttPopupMenuSupport
request
- The HTTP request.x
- x coordinate in image view coordinate system.y
- y coordinate in image view coordinate system.javax.servlet.ServletException
IlvPopupMenuServletSupport.getGraphicComponent(HttpServletRequest)
protected Object invokeFinder(IlvObjectSelectedFinder baseFinder, IlvHierarchyChart 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 IlvServerAction createListener()
IlvFacesGanttPopupMenuAction
which can handle pop-up menu actions.createListener
in class IlvGanttPopupMenuSupport
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.protected IlvMenu createMenu(javax.servlet.http.HttpServletRequest request, IlvMenuFactory factory, Object graphicObject, Object selectedObject, String menuModelId) throws javax.servlet.ServletException
createMenu
in class IlvGanttPopupMenuSupport
request
- The HTTP servlet request.factory
- The menu factory.graphicObject
- The graphic component.selectedObject
- The selected object.menuModelId
- The menu model ID.javax.servlet.ServletException
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.