public class IlvGanttPopupMenuSupport extends IlvPopupMenuServletSupport
MENU_SESSION_KEY, REQUEST_TYPE, SERVLET_ACTION_NAME
Constructor and Description |
---|
IlvGanttPopupMenuSupport(IlvGanttServletSupport support)
Creates an
IlvGanttPopuMenuSupport . |
Modifier and Type | Method and Description |
---|---|
protected IlvServerAction |
createListener()
Returns the server action listener that manages the actions that come from
the pop-up menu.
|
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 IlvHierarchyChart |
getChart(jakarta.servlet.http.HttpServletRequest request)
Returns the chart used for the specified request.
|
protected Object |
getGraphicComponent(jakarta.servlet.http.HttpServletRequest request)
Returns the chart used for the specified request.
|
protected String |
getMenuModelId(jakarta.servlet.http.HttpServletRequest request)
Returns the menu model ID set on the client interactor of the view.
|
protected Object |
getSelectedObject(jakarta.servlet.http.HttpServletRequest request,
int x,
int y)
Returns the
IlvHierarchyNode selected when the user triggered
the pop-up menu. |
void |
installListeners()
Installs the listeners to properly handle the pop-up menu actions.
|
void |
removeListeners()
Removes the listeners previously installed through the
installListeners() method. |
createMenu, getMenuEncoder, getMenuFactory, getPopupMenuFromSession, getServletContext, handleRequest, prepareComponent, savePopupMenuModelInSession, setMenuFactory, setServletContext
public IlvGanttPopupMenuSupport(IlvGanttServletSupport support)
IlvGanttPopuMenuSupport
.support
- The IlvGanttServletSupport
instance.protected Object getGraphicComponent(jakarta.servlet.http.HttpServletRequest request) throws jakarta.servlet.ServletException
IlvGanttServletSupport
instance.getGraphicComponent
in class IlvPopupMenuServletSupport
request
- The HTTP request.jakarta.servlet.ServletException
protected IlvHierarchyChart getChart(jakarta.servlet.http.HttpServletRequest request) throws jakarta.servlet.ServletException
(IlvHierarchyChart)getGraphicComponent(request)
.jakarta.servlet.ServletException
protected 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 IlvPopupMenuServletSupport
request
- The HTTP request.x
- x coordinate in image view coordinate system.y
- y coordinate in image view coordinate system.jakarta.servlet.ServletException
IlvPopupMenuServletSupport.getGraphicComponent(HttpServletRequest)
protected String getMenuModelId(jakarta.servlet.http.HttpServletRequest request) throws jakarta.servlet.ServletException
getMenuModelId
in class IlvPopupMenuServletSupport
request
- The HTTP request.jakarta.servlet.ServletException
protected IlvMenu createMenu(jakarta.servlet.http.HttpServletRequest request, IlvMenuFactory factory, Object graphicObject, Object selectedObject, String menuModelId) throws jakarta.servlet.ServletException
createMenu
in class IlvPopupMenuServletSupport
request
- The HTTP servlet request.factory
- The menu factory.graphicObject
- The graphic component.selectedObject
- The selected object.menuModelId
- The menu model ID.jakarta.servlet.ServletException
protected IlvServerAction createListener()
IlvPopupMenuAction
.
Subclasses may override this method to register a custom listener.
public void installListeners()
installListeners
in class IlvPopupMenuServletSupport
public void removeListeners()
installListeners()
method.removeListeners
in class IlvPopupMenuServletSupport
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.