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(jakarta.servlet.http.HttpServletRequest request,
IlvMenuFactory factory,
Object graphicObject,
Object selectedObject,
String menuModelId)
Calls the menu factory to return the menu model.
|
protected IlvPopupMenuEncoder |
getMenuEncoder(jakarta.servlet.http.HttpServletRequest request)
Returns the menu encoder responsible for encoding the root
IlvMenu
into a code comprehensible for the client. |
protected IlvMenu |
getPopupMenuFromSession(jakarta.servlet.http.HttpServletRequest request)
Retrieve menu model stored in the session with the
MENU_SESSION_KEY key. |
protected Object |
getSelectedObject(jakarta.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(jakarta.servlet.http.HttpServletRequest request,
IlvMenu root)
Saves the generated menu in session using the
MENU_SESSION_KEY key. |
getChart, getGraphicComponent, getMenuModelId, installListeners, removeListenerscreateMenu, getMenuFactory, getServletContext, handleRequest, prepareComponent, setMenuFactory, setServletContextpublic IlvFacesGanttPopupSupport(IlvGanttServletSupport support)
IlvFacesGanttPopupSupport.support - The servlet supportprotected Object getSelectedObject(jakarta.servlet.http.HttpServletRequest request, int x, int y) throws jakarta.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 IlvGanttPopupMenuSupportrequest - The HTTP request.x - x coordinate in image view coordinate system.y - y coordinate in image view coordinate system.jakarta.servlet.ServletExceptionIlvPopupMenuServletSupport.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(jakarta.servlet.http.HttpServletRequest request) throws jakarta.servlet.ServletException
IlvMenu
into a code comprehensible for the client.IlvPopupMenuEncoder instance.getMenuEncoder in class IlvPopupMenuServletSupportrequest - The HTTP request.jakarta.servlet.ServletExceptionprotected IlvServerAction createListener()
IlvFacesGanttPopupMenuAction which can handle pop-up menu actions.createListener in class IlvGanttPopupMenuSupportprotected void savePopupMenuModelInSession(jakarta.servlet.http.HttpServletRequest request,
IlvMenu root)
MENU_SESSION_KEY key.
Overridden to use the faces context to access the session.savePopupMenuModelInSession in class IlvPopupMenuServletSupportrequest - The Http request.root - The root menu of the menu model.protected IlvMenu getPopupMenuFromSession(jakarta.servlet.http.HttpServletRequest request)
MENU_SESSION_KEY key.
Overridden to use the faces context to access the session.getPopupMenuFromSession in class IlvPopupMenuServletSupportrequest - The Http request.protected IlvMenu createMenu(jakarta.servlet.http.HttpServletRequest request, IlvMenuFactory factory, Object graphicObject, Object selectedObject, String menuModelId) throws jakarta.servlet.ServletException
createMenu in class IlvGanttPopupMenuSupportrequest - The HTTP servlet request.factory - The menu factory.graphicObject - The graphic component.selectedObject - The selected object.menuModelId - The menu model ID.jakarta.servlet.ServletException© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.