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(javax.servlet.http.HttpServletRequest request)
Returns the
IlvChart instance used to render the image. |
protected Object |
getGraphicComponent(javax.servlet.http.HttpServletRequest request)
Returns the
IlvChart instance used to render the image. |
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
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(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
IlvChart
instance used to render the image.getGraphicComponent
in class IlvPopupMenuServletSupport
request
- The HTTP request.javax.servlet.ServletException
protected IlvChart getChart(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
IlvChart
instance used to render the image.getGraphicComponent(HttpServletRequest request)
method and casts the returned value to IlvChart
.javax.servlet.ServletException
protected Object getSelectedObject(javax.servlet.http.HttpServletRequest request, int x, int y) throws javax.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.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 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 Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.