public class IlvChartPopupMenuSupport extends IlvPopupMenuServletSupport
MENU_SESSION_KEY, REQUEST_TYPE, SERVLET_ACTION_NAME
Constructor and Description |
---|
IlvChartPopupMenuSupport(IlvChartServletSupport support)
Creates an
IlvChartPopupMenuSupport . |
Modifier and Type | Method and Description |
---|---|
protected IlvChartDataPicker |
createDataPicker(int x,
int y)
Creates the data picker used to retrieve the selected object on the view.
|
protected IlvChartServerAction |
createListener()
Returns the server action listener that manages
the actions that come from the pop-up menu.
|
protected IlvChart |
getChart(jakarta.servlet.http.HttpServletRequest request)
Returns the
IlvChart instance used to render the image. |
protected Object |
getGraphicComponent(jakarta.servlet.http.HttpServletRequest request)
Returns the
IlvChart instance used to render the image. |
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
IlvDisplayPoint instance selected when user triggered the
pop-up menu. |
protected IlvChartServletSupport |
getSupport()
Returns the image servlet support.
|
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, createMenu, getMenuEncoder, getMenuFactory, getPopupMenuFromSession, getServletContext, handleRequest, prepareComponent, savePopupMenuModelInSession, setMenuFactory, setServletContext
public IlvChartPopupMenuSupport(IlvChartServletSupport support)
IlvChartPopupMenuSupport
.support
- The standard servlet support.protected Object getGraphicComponent(jakarta.servlet.http.HttpServletRequest request) throws jakarta.servlet.ServletException
IlvChart
instance used to render the image.getGraphicComponent
in class IlvPopupMenuServletSupport
request
- The HTTP request.jakarta.servlet.ServletException
protected IlvChart getChart(jakarta.servlet.http.HttpServletRequest request) throws jakarta.servlet.ServletException
IlvChart
instance used to render the image.getGraphicComponent(HttpServletRequest request)
method and casts the returned value to IlvChart
.jakarta.servlet.ServletException
protected Object getSelectedObject(jakarta.servlet.http.HttpServletRequest request, int x, int y) throws jakarta.servlet.ServletException
IlvDisplayPoint
instance selected when user triggered the
pop-up menu. The point is retrieved according to the mode specified by the client.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 IlvChartDataPicker createDataPicker(int x, int y)
x
- The x coordinate of the clicked point.y
- The y coordinate of the clicked point.protected IlvChartServletSupport getSupport()
protected IlvChartServerAction createListener()
By default this method returns a new instance of
IlvPopupChartServerAction
.
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.