|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.util.servlet.IlvSelectionSupport.IlvSelectionResponse
public static class IlvSelectionSupport.IlvSelectionResponse
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 Summary | |
|---|---|
IlvSelectionSupport.IlvSelectionResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates a new IlvSelectionResponse instance. |
|
| Method Summary | |
|---|---|
void |
addAllToSelection(List list)
Adds several selections to the client's selection. |
void |
addToSelection(Rectangle bbox,
List properties)
Adds a selection to the client's selection. |
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 ILOG JViews 8.1 use addUpdatedCapability(String, Object)
instead. |
List |
getAddList()
Returns the list of selections to be added to the client side selection. |
javax.servlet.http.HttpServletRequest |
getHttpRequest()
Returns the servlet request. |
javax.servlet.http.HttpServletResponse |
getHttpResponse()
Returns the servlet response. |
Object |
getProperty(String name)
Returns a property previously stored with putProperty() method. |
List |
getRemoveList()
Returns the list of selections to be removed from the client side selection. |
Map |
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 list)
Removes several selections from the client's selection. |
void |
removeAllToSelection(List list)
Deprecated. Beginning with ILOG JViews 8.0 use removeAllFromSelection(List) instead. |
void |
removeFromSelection(Rectangle bbox,
List properties)
Removes a selection from the client side selection. |
void |
removeToSelection(Rectangle bbox,
List properties)
Deprecated. Beginning with ILOG 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvSelectionSupport.IlvSelectionResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
IlvSelectionResponse instance.
request - The HTTP servlet request.response - The HTTP servlet response.| Method Detail |
|---|
public javax.servlet.http.HttpServletRequest getHttpRequest()
public javax.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 getAddList()
public List getRemoveList()
public Map 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 addAllToSelection(List list)
list - List of selection to be added. Each selection is an array
Object where:
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 removeAllToSelection(List list)
removeAllFromSelection(List) instead.
list - List of array of object where
public void removeAllFromSelection(List list)
list - List of array of object where
public void addUpdatedCapability(String name,
Object value)
name - The capability name.value - The capability value.
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.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||