IlvFacesSelectInteractorProxy

IlvObject
  |
  +--IlvPropertyStateManager
       |
       +--IlvFacesProxy
            |
            +--IlvInteractorProxy
                 |
                 +--IlvFacesSelectInteractorProxy
Category:
Framework JSF component
JavaScript File:
IlvFacesSelectInteractorProxy.js
Description:
This class is a base proxy class for interactors that use IlvAbstractSelectionManager class to select and/or move objects.

Since:
JViews 7.5


Constructor Summary
IlvFacesSelectInteractorProxy(clientId, infoProviderMB)

Method Summary
getLineColor()
Returns the color of selection rectangles, if this interactor is not in image mode.
getLineWidth()
Returns the width of selection rectangle lines, if this interactor is not in image mode.
getOnSelectionChanged()
Returns a listener called on a selection change.
isForceUpdateProperties()
Returns true to force a additional request in image mode, false otherwise.
isImageMode()

Returns the image mode.

isMoveAllowed()
Returns whether allow or forbid to move selection.
setForceUpdateProperties(forceUpdateProperties)
Sets this flag to make additional request to query the current selection and additional properties in image mode to enable client-side selection listener.
setImageMode(imageMode)

Sets the image mode.

setLineColor(color)
Sets the color of selection rectangles, if this interactor is not in image mode.
setLineWidth(lineWidth)
Sets the width of selection rectangle lines, if this interactor is not in image mode.
setMoveAllowed(moveAllowed)
Sets whether allow or forbid to move selection.
setOnSelectionChanged(handler)
Sets a listener called on a selection change.

Constructor Detail

IlvFacesSelectInteractorProxy

IlvFacesSelectInteractorProxy(clientId, infoProviderMB)
Creates an instance of IlvFacesSelectInteractorProxy.

Method Detail

getLineColor

getLineColor()
Returns the color of selection rectangles, if this interactor is not in image mode.
Returns:
The color.

getLineWidth

getLineWidth()
Returns the width of selection rectangle lines, if this interactor is not in image mode.
Returns:
The width of the selection rectangles.

getOnSelectionChanged

getOnSelectionChanged()
Returns a listener called on a selection change.

isForceUpdateProperties

isForceUpdateProperties()
Returns true to force a additional request in image mode, false otherwise.

isImageMode

isImageMode()

Returns the image mode.

In image mode the image is refreshed on each selection.

In rectangle 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 additional information on selected objects are available in image mode if and only if the forceUpdateProperties property is set to true. In rectangle mode no special configuration is needed.

Returns:
true if the image mode is set, false otherwise.

isMoveAllowed

isMoveAllowed()
Returns whether allow or forbid to move selection. The server-side selected object must also be movable.
Returns:
true if the move of the selection is allowed, false otherwise.

setForceUpdateProperties

setForceUpdateProperties(forceUpdateProperties)
Sets this flag to make additional request to query the current selection and additional properties in image mode to enable client-side selection listener.
Parameters:
forceUpdateProperties - true to force a additional request in image mode, false otherwise.

setImageMode

setImageMode(imageMode)

Sets the image mode.

In image mode the image is refreshed on each selection.

In rectangle 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 additional information on selected objects are available in image mode if and only if the forceUpdateProperties property is set to true. In rectangle mode no special configuration is needed.

Parameters:
imageMode - true to set the image mode, false otherwise.

setLineColor

setLineColor(color)
Sets the color of selection rectangles, if this interactor is not in image mode.
Parameters:
color - The color to set.

setLineWidth

setLineWidth(lineWidth)
Sets the width of selection rectangle lines, if this interactor is not in image mode.
Parameters:
lineWidth - The width of the selection rectangles.

setMoveAllowed

setMoveAllowed(moveAllowed)
Sets whether allow or forbid to move selection. The server-side selected object must also be movable.
Parameters:
moveAllowed - true if the move of the selection is allowed, false otherwise.

setOnSelectionChanged

setOnSelectionChanged(handler)
Sets a listener called on a selection change.

Inherited Methods from IlvInteractorProxy
getCursor, getMenuModelId, getMessage, setCursor, setMenuModelId, setMessage
Inherited Methods from IlvFacesProxy
getAbsoluteId, getJViewsDHTMLObject, getNodeCoords, getObject, getReferenceNode, setAbsoluteId, setJViewsDHTMLObject, setObject, setReferenceNode, toHTML
Inherited Methods from IlvPropertyStateManager
getClientId, notify
Inherited Methods from IlvObject
callDispose, dispose, getClassName, hashCode, inherits, instanceOf, invoke, registerDispose, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility