public class IlvFacesChartPopupSupport extends IlvChartPopupMenuSupport implements IlvChartConstants
MENU_SESSION_KEY, REQUEST_TYPE, SERVLET_ACTION_NAME
AUTO_REFRESH, CHART, DATA_SOURCE, DATA_SOURCE_ID, DATABASE_DRIVER, DATABASE_PASSWORD, DATABASE_QUERY, DATABASE_RESULT_SET, DATABASE_URL, DATABASE_USER, FILENAME, INTERACTOR, INTERACTOR_ID, ITEM_PICKING, KEEP_VISIBLE_WINDOW, LABEL_COLUMN_MAPPING, LAYOUT, LEGEND_LAYOUT, MESSAGEBOX, NEAREST_ITEM_PICKING, NEAREST_POINT_PICKING, OVERVIEW_ACTION_NAME, PAN_ACTION_NAME, PICKING_MODE, REFRESH_DATA, SESSION_ID_PREFIX, STATE_URL, STYLE_SHEET, STYLE_SHEETS, TYPE, UPDATE_INTERVAL, X_COLUMN_MAPPING, X_PAN_ALLOWED, X_ZOOM_ALLOWED, X_ZOOM_FACTOR, Y_COLUMN_MAPPING, Y_PAN_ALLOWED, Y_ZOOM_ALLOWED, Y_ZOOM_FACTOR, ZOOM_ACTION_NAME
Constructor and Description |
---|
IlvFacesChartPopupSupport(IlvChartServletSupport support)
Creates an
IlvFacesChartPopupSupport . |
Modifier and Type | Method and Description |
---|---|
protected IlvChartServerAction |
createListener()
Returns a new instance of
IlvFacesChartPopupAction which can handle pop-up menu actions. |
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
IlvDisplayPoint instance selected when user triggered the
pop-up menu. |
protected void |
savePopupMenuModelInSession(jakarta.servlet.http.HttpServletRequest request,
IlvMenu root)
Saves the generated menu in session using the
MENU_SESSION_KEY key. |
createDataPicker, getChart, getGraphicComponent, getMenuModelId, getSupport, installListeners, removeListeners
createMenu, createMenu, getMenuFactory, getServletContext, handleRequest, prepareComponent, setMenuFactory, setServletContext
public IlvFacesChartPopupSupport(IlvChartServletSupport support)
IlvFacesChartPopupSupport
.support
- The image servlet support.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 IlvChartPopupMenuSupport
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 IlvPopupMenuEncoder getMenuEncoder(jakarta.servlet.http.HttpServletRequest request) throws jakarta.servlet.ServletException
IlvMenu
into a code comprehensible for the client.IlvPopupMenuEncoder
instance.getMenuEncoder
in class IlvPopupMenuServletSupport
request
- The HTTP request.jakarta.servlet.ServletException
protected IlvChartServerAction createListener()
IlvFacesChartPopupAction
which can handle pop-up menu actions.createListener
in class IlvChartPopupMenuSupport
protected 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 IlvPopupMenuServletSupport
request
- 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 IlvPopupMenuServletSupport
request
- The Http request.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.