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(javax.servlet.http.HttpServletRequest request,
IlvMenuFactory factory,
Object graphicObject,
Object selectedObject,
String menuModelId)
Calls the menu factory to return the menu model.
|
protected IlvHierarchyChart |
getChart(javax.servlet.http.HttpServletRequest request)
Returns the chart used for the specified request.
|
protected Object |
getGraphicComponent(javax.servlet.http.HttpServletRequest request)
Returns the chart used for the specified request.
|
protected String |
getMenuModelId(javax.servlet.http.HttpServletRequest request)
Returns the menu model ID set on the client interactor of the view.
|
protected Object |
getSelectedObject(javax.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(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
IlvGanttServletSupport
instance.getGraphicComponent
in class IlvPopupMenuServletSupport
request
- The HTTP request.javax.servlet.ServletException
protected IlvHierarchyChart getChart(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
(IlvHierarchyChart)getGraphicComponent(request)
.javax.servlet.ServletException
protected 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 IlvPopupMenuServletSupport
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 String getMenuModelId(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
getMenuModelId
in class IlvPopupMenuServletSupport
request
- The HTTP request.javax.servlet.ServletException
protected IlvMenu createMenu(javax.servlet.http.HttpServletRequest request, IlvMenuFactory factory, Object graphicObject, Object selectedObject, String menuModelId) throws javax.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.javax.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 Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.