public class IltFacesGraphSelectionSupport extends IlvSelectionSupport
This class describes the servlet support for selection requests in a graph view (either Network or Equipment).
IlvSelectionSupportIlvSelectionSupport.IlvSelectionResponseREQUEST_TYPE| Constructor and Description |
|---|
IltFacesGraphSelectionSupport(IltFacesGraphServletSupport support)
Creates an
IltFacesGraphSelectionSupport instance. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGetDeselectAll(javax.servlet.http.HttpServletRequest request,
IlvSelectionSupport.IlvSelectionResponse response)
Attempts to deselect all the objects that are currently selected.
|
protected void |
doGetSelectAll(javax.servlet.http.HttpServletRequest request,
IlvSelectionSupport.IlvSelectionResponse response)
Attempts to select all the selectable objects.
|
protected void |
doGetSelectOne(javax.servlet.http.HttpServletRequest request,
IlvSelectionSupport.IlvSelectionResponse response,
int x,
int y)
Clears the current selections and attempts to select the object at a given position
If a selectable object is found with the specified position, it is selected.
|
protected void |
doGetSelectOneById(javax.servlet.http.HttpServletRequest request,
IlvSelectionSupport.IlvSelectionResponse response,
String id)
Clears the current selections and attempts to select the object with the specified identifier.
|
protected void |
doGetSelectOneMultiple(javax.servlet.http.HttpServletRequest request,
IlvSelectionSupport.IlvSelectionResponse response,
int x,
int y)
Attempts to extend the selection with the object at a given position, if
any.
|
protected void |
doGetSelectOneMultipleById(javax.servlet.http.HttpServletRequest request,
IlvSelectionSupport.IlvSelectionResponse response,
String id)
Attempts to extend the selection with the object with the specified identifier,
if any.
|
protected void |
doGetUpdateAll(javax.servlet.http.HttpServletRequest request,
IlvSelectionSupport.IlvSelectionResponse response)
Resynchronizes the selection on the client from the server-side state of
selection.
|
protected void |
doGetUpdatedCapabilities(javax.servlet.http.HttpServletRequest request,
IlvSelectionSupport.IlvSelectionResponse response)
Updates the capabilities that have changed.
|
protected List |
getAdditionalProperties(IlvSelectionSupport.IlvSelectionResponse response,
Object object)
Returns additional information about a selected object.
|
IltFacesGraphServletSupport |
getServletSupport()
Accesses the image servlet support.
|
boolean |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles a selection request.
|
protected void |
initializeResponseProperties(IlvSelectionSupport.IlvSelectionResponse response,
javax.servlet.http.HttpServletRequest request)
This method is overridden to add the graph view to the response
properties.
|
void |
installListeners()
Installs the server listeners required by this selection support.
|
void |
removeListeners()
Removes the server listeners installed by
installListeners()
method. |
doPostSetProperties, getLastSelectedObject, isResizable, setAdditionalProperties, setLastSelectedObjectpublic IltFacesGraphSelectionSupport(IltFacesGraphServletSupport support)
IltFacesGraphSelectionSupport instance.support - The image servlet support.public IltFacesGraphServletSupport getServletSupport()
IltFacesGraphServletSupport).public boolean handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
IlvSelectionSupporthandleRequest in class IlvSelectionSupportrequest - The HTTP servlet request.response - The HTTP servlet response.false if the request is not recognized by this
servlet.IOExceptionjavax.servlet.ServletExceptionpublic void installListeners()
Installs the server listeners required by this selection support.
Three listeners are mandatory to fully support the selection functionalities:
installListeners in class IlvSelectionSupportIlvSelectionSupport.installListeners()public void removeListeners()
installListeners()
method.removeListeners in class IlvSelectionSupportIlvSelectionSupport.removeListeners()protected void initializeResponseProperties(IlvSelectionSupport.IlvSelectionResponse response, javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
This method is overridden to add the graph view to the response properties.
To retrieve it from the response object, use:
IlpGraphView view = (IlpGraphView)response.getProperty(GRAPH_KEY);
initializeResponseProperties in class IlvSelectionSupportresponse - The selection response object.request - The HTTP request.javax.servlet.ServletExceptionprotected List getAdditionalProperties(IlvSelectionSupport.IlvSelectionResponse response, Object object)
getAdditionalProperties in class IlvSelectionSupportresponse - The selection response object.object - The object selected or deselected.String, an
array, a List or Map.
List and arrays are rendered as JSON arrays on the
client and Map are rendered as JSON objects on the
client.
Note that the two first objects must be:
ID -- A unique identifier of the selected object.Movable -- true if this object is
movable, false otherwise.Type -- the type of the selected object.
protected void doGetUpdateAll(javax.servlet.http.HttpServletRequest request,
IlvSelectionSupport.IlvSelectionResponse response)
throws IOException,
javax.servlet.ServletException
doGetUpdateAll in class IlvSelectionSupportrequest - The HTTP request.response - The response object.IOExceptionjavax.servlet.ServletExceptionprotected void doGetSelectOne(javax.servlet.http.HttpServletRequest request,
IlvSelectionSupport.IlvSelectionResponse response,
int x,
int y)
throws IOException,
javax.servlet.ServletException
doGetSelectOne in class IlvSelectionSupportrequest - The HTTP request.response - The response object.x - The x coordinate of the point in view coordinates.y - The y coordinate of the point in view coordinatesIOExceptionjavax.servlet.ServletExceptionprotected void doGetSelectOneMultiple(javax.servlet.http.HttpServletRequest request,
IlvSelectionSupport.IlvSelectionResponse response,
int x,
int y)
throws IOException,
javax.servlet.ServletException
doGetSelectOneMultiple in class IlvSelectionSupportrequest - The HTTP request.response - The response object.x - The x coordinate of the point in view coordinates.y - The y coordinate of the point in view coordinates.IOExceptionjavax.servlet.ServletExceptionprotected void doGetUpdatedCapabilities(javax.servlet.http.HttpServletRequest request,
IlvSelectionSupport.IlvSelectionResponse response)
throws javax.servlet.ServletException
doGetUpdatedCapabilities in class IlvSelectionSupportrequest - The HTTP request.response - The response object.javax.servlet.ServletExceptionprotected void doGetDeselectAll(javax.servlet.http.HttpServletRequest request,
IlvSelectionSupport.IlvSelectionResponse response)
throws IOException,
javax.servlet.ServletException
doGetDeselectAll in class IlvSelectionSupportrequest - The HTTP request.response - The response object.IOExceptionjavax.servlet.ServletExceptionprotected void doGetSelectAll(javax.servlet.http.HttpServletRequest request,
IlvSelectionSupport.IlvSelectionResponse response)
throws IOException,
javax.servlet.ServletException
doGetSelectAll in class IlvSelectionSupportrequest - The HTTP request.response - The response object.IOExceptionjavax.servlet.ServletExceptionprotected void doGetSelectOneById(javax.servlet.http.HttpServletRequest request,
IlvSelectionSupport.IlvSelectionResponse response,
String id)
throws IOException,
javax.servlet.ServletException
doGetSelectOneById in class IlvSelectionSupportrequest - The HTTP request.response - The response object.id - The identifier of the object to select.IOExceptionjavax.servlet.ServletExceptionprotected void doGetSelectOneMultipleById(javax.servlet.http.HttpServletRequest request,
IlvSelectionSupport.IlvSelectionResponse response,
String id)
throws IOException,
javax.servlet.ServletException
doGetSelectOneMultipleById in class IlvSelectionSupportrequest - The HTTP request.response - The response object.id - The identifier of the object to select.IOExceptionjavax.servlet.ServletException© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.