|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
ilog.views.faces.component.IlvFacesComponentBase
ilog.views.faces.interactor.IlvInteractor
ilog.views.faces.dhtml.interactor.IlvFacesSelectInteractor
public class IlvFacesSelectInteractor
This is the base class for interactors that
allow selecting one or several objects on a view, and moving the current selection.
The way the selection is actually managed can be configured using an
IlvFacesSelectionManager.
To perform client-side actions on selection, add a JavaScript handler
through the setOnSelectionChanged(String) method.
A predefined selection variable will be provided to the JavaScript code
in this handler.
The selection is an array of objects.
Each of these selection objects has implements the IlvSelectionRectangle
JavaScript prototype.
| Field Summary | |
|---|---|
static Boolean |
FORCE_UPDATE_DEFAULT_VALUE
Default value of forceUpdateProperties property |
static Boolean |
IMAGE_MODE_DEFAULT_VALUE
Default value of imageMode property |
String |
internalState
|
static Integer |
LINE_WIDTH_DEFAULT_VALUE
Default value of lineWidth property |
static Boolean |
MOVE_ALLOWED_DEFAULT_VALUE
Default value of moveAllowed property |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Constructor Summary | |
|---|---|
IlvFacesSelectInteractor()
Creates a new IlvFacesSelectInteractor instance. |
|
| Method Summary | |
|---|---|
static String |
getComponentType()
Returns the type of this component. |
String |
getFamily()
Returns the identifier of the component family to which this component belongs. |
Color |
getLineColor()
Deprecated. Beginning with JViews 8.0 use IlvFacesSelectionManager.getLineColor() instead. |
int |
getLineWidth()
Deprecated. Beginning with JViews 8.0 use IlvFacesSelectionManager.getLineWidth() instead. |
String |
getOnSelectionChanged()
Returns a JavaScript handler called when the selection has changed. |
boolean |
isForceUpdateProperties()
Deprecated. Beginning with JViews 8.0 use IlvFacesSelectionManager.isForceUpdateProperties() instead. |
boolean |
isImageMode()
Returns the image mode. |
boolean |
isMoveAllowed()
Returns whether allow or forbid to move selection. |
void |
restoreState(FacesContext context,
Object stateObj)
Restores the state of this component from the state parameter. |
Object |
saveState(FacesContext context)
Returns the state of this component. |
void |
setForceUpdateProperties(boolean forceUpdateProperties)
Deprecated. Beginning with JViews 8.0 use IlvFacesSelectionManager.setForceUpdateProperties(boolean) instead. |
void |
setImageMode(boolean imageMode)
Deprecated. Beginning with JViews 8.0 use IlvFacesSelectionManager.setImageMode(boolean) instead. |
void |
setLineColor(Color color)
Deprecated. Beginning with JViews 8.0 use IlvFacesSelectionManager.setLineColor(Color) instead. |
void |
setLineWidth(int lineWidth)
Deprecated. Beginning with JViews 8.0 use IlvFacesSelectionManager.setLineWidth(int) instead. |
void |
setMoveAllowed(boolean moveAllowed)
Sets whether allow or forbid to move selection. |
void |
setOnSelectionChanged(String onSelectionChanged)
Sets a JavaScript handler called when the selection has changed. |
void |
updateModel(FacesContext context)
Handles the "Update Model Values" phase of the JSF life cycle. This method updates the referenced values with the local values of the component if theses values were updated during the "Apply Request Values" phase. |
| Methods inherited from class ilog.views.faces.interactor.IlvInteractor |
|---|
getCursor, getMenuModelId, getMessage, setCursor, setMenuModelId, setMessage |
| Methods inherited from class ilog.views.faces.component.IlvFacesComponentBase |
|---|
clearDecodedPropertyMap, createFacesComponent, getAttributes, getClientId, isDecodedProperty, processUpdates, resetDecodedProperties, setDecodedProperty |
| Methods inherited from class javax.faces.component.UIComponent |
|---|
encodeAll, getContainerClientId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Integer LINE_WIDTH_DEFAULT_VALUE
public static final Boolean MOVE_ALLOWED_DEFAULT_VALUE
public static final Boolean IMAGE_MODE_DEFAULT_VALUE
public static final Boolean FORCE_UPDATE_DEFAULT_VALUE
public String internalState
| Constructor Detail |
|---|
public IlvFacesSelectInteractor()
IlvFacesSelectInteractor instance.
| Method Detail |
|---|
public String getFamily()
rendererType
property, may be used to select the appropriate renderer for this component
instance.
getFamily in class IlvInteractorpublic static String getComponentType()
public Color getLineColor()
IlvFacesSelectionManager.getLineColor() instead.
public void setLineColor(Color color)
IlvFacesSelectionManager.setLineColor(Color) instead.
color - The color to set.public int getLineWidth()
IlvFacesSelectionManager.getLineWidth() instead.
public void setLineWidth(int lineWidth)
IlvFacesSelectionManager.setLineWidth(int) instead.
lineWidth - The lineWidth to set.public boolean isMoveAllowed()
true if the selection can be moved, false otherwise.public void setMoveAllowed(boolean moveAllowed)
moveAllowed - true if the selection can be moved, false otherwise.public boolean isImageMode()
In image mode the image is refreshed on each selection.
In regular mode, only the selected object(s) bounding box is queried and rectangle are dynamically displayed on top of the view.
Note that the client-side listeners on selection and additionalinformation on selected objects are available in image mode if and only if the forceUpdateProperties property is set to true. In regular mode no special configuration is needed.
true is the image mode is set, false otherwise.IlvFacesSelectionManager.isImageMode() instead.public void setImageMode(boolean imageMode)
IlvFacesSelectionManager.setImageMode(boolean) instead.
In image mode the image is refreshed on each selection.
In regular mode, only the selected object(s) bounding box is queried and rectangle are dynamically displayed on top of the view.
Note that the client-side listeners on selection and additionalinformation on selected objects are available in image mode if and only if the forceUpdateProperties property is set to true. In regular mode no special configuration is needed.
imageMode - true is the image mode is set, false otherwise.public boolean isForceUpdateProperties()
IlvFacesSelectionManager.isForceUpdateProperties() instead.
true to force an additional request in image mode, false otherwise.
trueto force the query of the current selection, falseotherwise.public void setForceUpdateProperties(boolean forceUpdateProperties)
IlvFacesSelectionManager.setForceUpdateProperties(boolean) instead.
forceUpdateProperties - true to force a additional request in image mode, false otherwise.public String getOnSelectionChanged()
The handler must be a function with one parameter which is the selection list.
To use this handler the interactor must be in regular mode or the forceUpdateProperties
must be set if the interactor is in image mode. See the user manual for further information.
public void setOnSelectionChanged(String onSelectionChanged)
The handler must be a function with one parameter which is the selection list.
To use this handler the interactor must be in regular mode or the forceUpdateProperties
must be set if the interactor is in image mode. See the user manual for further information.
onSelectionChanged - The JavaScript handler on a new selection.public void updateModel(FacesContext context)
updateModel in class IlvInteractorcontext - The current faces context.public Object saveState(FacesContext context)
state of this component.
saveState in interface IlvFacesComponentsaveState in interface StateHoldersaveState in class IlvInteractorcontext - The current faces context.
state of this component.
public void restoreState(FacesContext context,
Object stateObj)
state parameter.
restoreState in interface IlvFacesComponentrestoreState in interface StateHolderrestoreState in class IlvInteractorcontext - The current faces context.stateObj - The previously saved state of this component.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||