public static class IlvSelectionSupport.IlvSelectionResponse extends Object
IlvSelectionResponse
provides the context for handling a
selection request. It also stores the changes of the selection to be
reflected on the client side selection.Constructor and Description |
---|
IlvSelectionResponse(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response)
Creates a new
IlvSelectionResponse instance. |
Modifier and Type | Method and Description |
---|---|
void |
addAllToSelection(List<Object[]> list)
Adds several selections to the client's selection.
|
void |
addToSelection(Rectangle bbox,
List<?> properties)
Adds a selection to the client's selection.
|
void |
addToSelection(Rectangle bbox,
List<?> properties,
Point2D.Double[] points)
Adds a selection to the client's selection.
|
void |
addUpdatedCapability(String name,
double value)
Adds an updated capability to be processed by the client.
|
void |
addUpdatedCapability(String name,
float value)
Adds an updated capability to be processed by the client.
|
void |
addUpdatedCapability(String name,
int value)
Adds an updated capability to be processed by the client.
|
void |
addUpdatedCapability(String name,
Object value)
Adds an updated capability to be processed by the client.
|
void |
addUpdatedCapability(String name,
String value)
Adds an updated capability to be processed by the client.
|
void |
addUpdatedCapability(String name,
String value,
boolean isString)
Deprecated.
Beginning with Perforce JViews 8.1 use
addUpdatedCapability(String, Object)
instead. |
List<Object[]> |
getAddList()
Returns the list of selections to be added to the client side selection.
|
jakarta.servlet.http.HttpServletRequest |
getHttpRequest()
Returns the servlet request.
|
jakarta.servlet.http.HttpServletResponse |
getHttpResponse()
Returns the servlet response.
|
Object |
getProperty(String name)
Returns a property previously stored with
putProperty() method. |
List<Object[]> |
getRemoveList()
Returns the list of selections to be removed from the client side
selection.
|
Map<String,Object> |
getUpdatedCapablities()
Returns the updated capabilities.
|
boolean |
isImageRefresh()
Returns
true when the image must refreshed after selection. |
boolean |
isNoSelection()
Returns
true if no object was selected by the current
selection request; false otherwise. |
boolean |
isRemoveAll()
Returns
true if the client must clear the current
selection. |
void |
putProperty(String name,
Object value)
Adds a property to the response.
|
void |
removeAllFromSelection(List<Object[]> list)
Removes several selections from the client's selection.
|
void |
removeAllToSelection(List<Object[]> list)
Deprecated.
Beginning with Perforce JViews 8.0 use
removeAllFromSelection(List) instead. |
void |
removeFromSelection(Rectangle bbox,
List<?> properties)
Removes a selection from the client side selection.
|
void |
removeFromSelection(Rectangle bbox,
List<?> properties,
Point2D.Double[] points)
Removes a selection from the client side selection.
|
void |
removeToSelection(Rectangle bbox,
List<?> properties)
Deprecated.
Beginning with Perforce JViews 8.0, use
removeFromSelection(Rectangle, List) instead. |
void |
setImageRefresh(boolean imageRefresh)
Sets the image refresh flag.
|
void |
setNoSelection(boolean noSelection)
Sets the no selection result.
|
void |
setRemoveAll(boolean removeAll)
Sets the remove flag.
|
public IlvSelectionResponse(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
IlvSelectionResponse
instance.request
- The HTTP servlet request.response
- The HTTP servlet response.public jakarta.servlet.http.HttpServletRequest getHttpRequest()
public jakarta.servlet.http.HttpServletResponse getHttpResponse()
public void putProperty(String name, Object value)
name
- The name of the property.value
- The value of the property.public Object getProperty(String name)
putProperty()
method.name
- The name of the property.null
if not found.public boolean isNoSelection()
true
if no object was selected by the current
selection request; false
otherwise.public void setNoSelection(boolean noSelection)
true
if no object was
selected by the current selection request; false
otherwise.noSelection
- true
if no object was selected,
false
otherwise.public boolean isRemoveAll()
true
if the client must clear the current
selection.
This action will be executed before the process of the
addition and deletion of selections.public void setRemoveAll(boolean removeAll)
Set it to true
when the client must clear the current
selection.
The client handles this instruction before processing the addition and deletion of selections.
removeAll
- true
to instruct the client to clear the
selection, false
otherwise.public boolean isImageRefresh()
true
when the image must refreshed after selection.public void setImageRefresh(boolean imageRefresh)
true
if the client
must query the image and cancel the client selection.
This action takes precedence over the client selection.
imageRefresh
- true
when the client must query a new
image.public List<Object[]> getAddList()
public List<Object[]> getRemoveList()
public Map<String,Object> getUpdatedCapablities()
public void addToSelection(Rectangle bbox, List<?> properties)
bbox
- The bounding box of the selected object, in image
coordinates.properties
- The additional properties. The first two properties
are mandatory (ID and movable).public void addToSelection(Rectangle bbox, List<?> properties, Point2D.Double[] points)
bbox
- The bounding box of the selected object, in image
coordinates.properties
- The additional properties. The first two properties
are mandatory (ID and movable).points
- The points of link.public void addAllToSelection(List<Object[]> list)
list
- List of selection to be added. Each selection is an array
Object where:
@Deprecated public void removeToSelection(Rectangle bbox, List<?> properties)
removeFromSelection(Rectangle, List)
instead.bbox
- The bounding box of the selected object, in image
coordinates.properties
- The additional properties. The first two properties
are mandatory (ID and movable).public void removeFromSelection(Rectangle bbox, List<?> properties)
bbox
- The bounding box of the selected object, in image
coordinates.properties
- The additional properties. The first two properties
are mandatory (ID and movable).public void removeFromSelection(Rectangle bbox, List<?> properties, Point2D.Double[] points)
bbox
- The bounding box of the selected object, in image
coordinates.properties
- The additional properties. The first two properties
are mandatory (ID and movable).points
- The points of link.@Deprecated public void removeAllToSelection(List<Object[]> list)
removeAllFromSelection(List)
instead.list
- List of array of object where
public void removeAllFromSelection(List<Object[]> list)
list
- List of array of object where
public void addUpdatedCapability(String name, Object value)
name
- The capability name.value
- The capability value.@Deprecated public void addUpdatedCapability(String name, String value, boolean isString)
addUpdatedCapability(String, Object)
instead.name
- The capability name.value
- The capability value.isString
- true
if the capability represents a String.public void addUpdatedCapability(String name, String value)
name
- The capability name.value
- The capability value.public void addUpdatedCapability(String name, int value)
name
- The capability name.value
- The capability value.public void addUpdatedCapability(String name, float value)
name
- The capability name.value
- The capability value.public void addUpdatedCapability(String name, double value)
name
- The capability name.value
- The capability value.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.