public class IlvGanttTableSelectionSupport extends IlvGanttComponentSelectionSupport
IlvSelectionSupport implementation dedicated
to the Gantt table.IlvSelectionSupport.IlvSelectionResponseHIERARCHY_CHART_KEY, LAST_SELECTED_OBJECT_KEY, VIEW_BBOX_KEYREQUEST_TYPE| Constructor and Description |
|---|
IlvGanttTableSelectionSupport(IlvGanttServletSupport support)
Creates an
IlvGanttTableSelectionSupport 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 List |
getAdditionalProperties(IlvSelectionSupport.IlvSelectionResponse response,
Object object)
Returns additional information about a selected object.
|
void |
imageModeActionPerformed(ServerActionEvent event)
Handles
imageModeAction server actions. |
protected void |
initializeResponseProperties(IlvSelectionSupport.IlvSelectionResponse response,
javax.servlet.http.HttpServletRequest request)
To retrieve the Gantt chart from the response object:
IlvHierarchyChart chart = (IlvHierarchyChart) response.getProperty(GANTT_CHART_KEY); |
void |
moveSelectionActionPerformed(ServerActionEvent event)
Handles
moveSelection server actions. |
void |
selectObjectActionPerformed(ServerActionEvent event)
Handles
selectObject server actions. |
doPostSetProperties, getSupport, installListeners, removeListenersdoGetUpdatedCapabilities, getLastSelectedObject, handleRequest, isResizable, setAdditionalProperties, setLastSelectedObjectpublic IlvGanttTableSelectionSupport(IlvGanttServletSupport support)
IlvGanttTableSelectionSupport instance.support - The image servlet support.protected void initializeResponseProperties(IlvSelectionSupport.IlvSelectionResponse response, javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
IlvHierarchyChart chart = (IlvHierarchyChart) response.getProperty(GANTT_CHART_KEY);initializeResponseProperties in class IlvSelectionSupportresponse - The selection response object.request - The HTTP request.javax.servlet.ServletExceptionprotected 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 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 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 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.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 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 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.
public void imageModeActionPerformed(ServerActionEvent event) throws javax.servlet.ServletException
imageModeAction server actions.
Sets the rendering of the selection in images of the components produced by
the servlet. In image mode selected objects are rendered as selected,
otherwise selected objects are rendered as unselected, the rendering of the
selection being handled by the client.imageModeActionPerformed in class IlvGanttComponentSelectionSupportevent - The event which triggered the action to set the image mode.javax.servlet.ServletExceptionpublic void selectObjectActionPerformed(ServerActionEvent event) throws javax.servlet.ServletException
selectObject server actions.selectObjectActionPerformed in class IlvGanttComponentSelectionSupportevent - The event which triggered the action.javax.servlet.ServletExceptionpublic void moveSelectionActionPerformed(ServerActionEvent event) throws javax.servlet.ServletException
moveSelection server actions.moveSelectionActionPerformed in class IlvGanttComponentSelectionSupportevent - The event which triggered the action.javax.servlet.ServletException© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.