ilog.tgo.faces.graph.dhtml.interactor
Class IltFacesClientSelectInteractor

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by ilog.views.faces.component.IlvFacesComponentBase
              extended by ilog.views.faces.interactor.IlvInteractor
                  extended by ilog.views.faces.dhtml.interactor.IlvFacesSelectInteractor
                      extended by ilog.tgo.faces.graph.dhtml.interactor.IltFacesClientSelectInteractor
All Implemented Interfaces:
IltFacesJTGOConstants, IlvFacesComponent, IlvDHTMLConstants, IlvFacesConstants, IlvFacesInteractor, Serializable, StateHolder

public class IltFacesClientSelectInteractor
extends IlvFacesSelectInteractor
implements IltFacesJTGOConstants

The IltFacesClientSelectInteractor component implements an interactor that allows the selection and movement of objects in a network or equipment view.

This class is intended to minimize server-side image requests by dynamically displaying a rectangular selection border around the selected objects in the client-side.

Since:
JViews 7.5
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ilog.views.faces.dhtml.interactor.IlvFacesSelectInteractor
FORCE_UPDATE_DEFAULT_VALUE, IMAGE_MODE_DEFAULT_VALUE, internalState, LINE_WIDTH_DEFAULT_VALUE, MOVE_ALLOWED_DEFAULT_VALUE
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Fields inherited from interface ilog.tgo.faces.IltFacesJTGOConstants
CONTEXT, DATA_SOURCE, DATA_SOURCE_ID, DEFAULT_STYLE_SHEET, EQUIPMENT, NETWORK, OBJECT_ACTION_MB, PROPERTY_ACCESSOR, STYLE_SHEETS
 
Fields inherited from interface ilog.views.faces.dhtml.IlvDHTMLConstants
AUTO_SUBMIT, BACKGROUND_COLOR, CAPABILITIES_LOADED_HANDLER, COMPONENT, DO_ACTION_ON_BG_DESELECT, ERROR_MESSAGE, GENERATE_IMAGE_MAP, IMAGE_FORMAT, IMAGE_LOADED_HANDLER, IMAGE_MAP_GENERATOR, IMAGE_MAP_GENERATOR_CLASS, IMAGE_MAP_VISIBLE, IMAGE_SERVLET_CONTEXT, INVOCATION_CONTEXT, JSF_CONTEXT, ON_CLICK, ON_SELECTION_CHANGED, PORTLET_CONTEXT_KEY, PORTLET_SESSION_KEY, REPLACE_PATTERN, RESIZABLE, SESSION_EXP_HANDLER, SUBMITTED_VALUE, WAITING_IMAGE
 
Fields inherited from interface ilog.views.faces.IlvFacesConstants
BUTTON_GROUP_ID, BUTTON_TYPE, CHARTS_BUNDLE, CORE_BUNDLE, CURSOR, DATA, DECODED_PROPERTY, DEFAULT_LINE_COLOR, DELETION_ALLOWED, DIAGRAMMER_BUNDLE, ENABLED, FILL_ON, FORCE_UPDATE_PROPERTIES, FRAMEWORK_BUNDLE, GANTT_BUNDLE, HEIGHT, IMAGE, IMAGE_MODE, INFO_PROVIDER_MB, INT_NOT_DEFINED, ITEM_DISABLED_STYLE_CLASS, ITEM_HIGHLIGHTED_STYLE_CLASS, ITEM_STYLE_CLASS, LINE_COLOR, LINE_WIDTH, MAPS_BUNDLE, MENU_MODEL_ID, MESSAGE, MESSAGE_BOX, MESSAGE_BOX_ID, MOVE_ALLOWED, OBJECT_FINDER, PARAM_COMPID, PARAM_DATA, PARAM_KEY, PARAM_NAMESPACE, PARAM_RESOURCE, PARAM_SERVICE, PARAM_TYPE, POPUP_MENU, POPUP_MENU_FACTORY, POPUP_MENU_FACTORY_CLASS, PORTLET_NAMESPACE, PROJECT, RESOURCES_PATH, RESOURCES_PATH_PREFIX, ROLLOVER_IMAGE, SELECTED, SELECTED_IMAGE, SERVICE_FORWARD, SERVICE_FORWARD_INT, SERVLET, SERVLET_CLASS, SERVLET_URL, STYLE, STYLE_CLASS, TGO_BUNDLE, TITLE, TOGGLE, VALUE, VIEW, VIEW_ID, WIDTH
 
Constructor Summary
IltFacesClientSelectInteractor()
          Creates a new IltFacesClientSelectInteractor instance.
 
Method Summary
static String getComponentType()
          Returns the component type identifier for this component.
 String getFamily()
          Returns the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate renderer for this component instance.
 MethodBinding getInfoProviderMethodBinding()
          Deprecated. since JViews 8.0. For alternatives see IltFacesGraphViewSelectionManager.getInfoProviderMethodBinding().
 MethodBinding getObjectActionMethodBinding()
          Accesses the objectActionMethodBinding property.
 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 setInfoProviderMethodBinding(MethodBinding methodBinding)
          Deprecated. since JViews 8.0. For alternatives see IltFacesGraphViewSelectionManager.setInfoProviderMethodBinding(MethodBinding)().
 void setObjectActionMethodBinding(MethodBinding methodBinding)
          Sets the objectActionMethodBinding property.
 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.dhtml.interactor.IlvFacesSelectInteractor
getLineColor, getLineWidth, getOnSelectionChanged, isForceUpdateProperties, isImageMode, isMoveAllowed, setForceUpdateProperties, setImageMode, setLineColor, setLineWidth, setMoveAllowed, setOnSelectionChanged
 
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.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, getValueExpression, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, setValueExpression
 
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
 

Constructor Detail

IltFacesClientSelectInteractor

public IltFacesClientSelectInteractor()
Creates a new IltFacesClientSelectInteractor instance.

Method Detail

getFamily

public String getFamily()
Returns the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate renderer for this component instance.

Overrides:
getFamily in class IlvFacesSelectInteractor
Returns:
The family to which this component belongs.

getComponentType

public static String getComponentType()
Returns the component type identifier for this component.

Returns:
The component type identifier for this component.

getInfoProviderMethodBinding

public MethodBinding getInfoProviderMethodBinding()
Deprecated. since JViews 8.0. For alternatives see IltFacesGraphViewSelectionManager.getInfoProviderMethodBinding().

Accesses the infoProviderMethodBinding property. The returned method binding respects the signature:

 List method_name(IlpGraphView view, IlpRepresentationObject obj)
 
It returns a list of additional properties associated to the currently selected object. A valid item for this list is a String or a List itself.

Returns:
The binding to a method that will provide the additional information for the selected object.
Deprecated Since:
JViews 8.0

setInfoProviderMethodBinding

public void setInfoProviderMethodBinding(MethodBinding methodBinding)
Deprecated. since JViews 8.0. For alternatives see IltFacesGraphViewSelectionManager.setInfoProviderMethodBinding(MethodBinding)().

Sets the infoProviderMethodBinding property. The given method binding respects the signature:

 List method_name(IlpGraphView view, IlpRepresentationObject obj)
 
It returns a list of additional properties associated to the currently selected object. A valid item for this list is a String or a List itself.

Parameters:
methodBinding - The binding to a method that will provide the additional information for the selected object.
Deprecated Since:
JViews 8.0

getObjectActionMethodBinding

public MethodBinding getObjectActionMethodBinding()
Accesses the objectActionMethodBinding property. The returned method binding respects the signature:
 boolean method_name(IlpGraphView view, int xPos, int yPos)
 
If the method returns true, no selection will be processed and a new image will be generated.

Returns:
The binding to a method that will perform object actions based on a given (x,y) coordinate.

setObjectActionMethodBinding

public void setObjectActionMethodBinding(MethodBinding methodBinding)
Sets the objectActionMethodBinding property. The given method binding should respect the following signature:
 boolean method_name(IlpGraphView view, int xPos, int yPos)
 

Parameters:
methodBinding - The binding to a method that will perform object actions based on a given (x,y) coordinate.

updateModel

public 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.

Overrides:
updateModel in class IlvFacesSelectInteractor
Parameters:
context - The current faces context.

saveState

public Object saveState(FacesContext context)
Returns the state of this component.

Specified by:
saveState in interface IlvFacesComponent
Specified by:
saveState in interface StateHolder
Overrides:
saveState in class IlvFacesSelectInteractor
Parameters:
context - The current faces context.
Returns:
The state of this component.

restoreState

public void restoreState(FacesContext context,
                         Object stateObj)
Restores the state of this component from the state parameter.

Specified by:
restoreState in interface IlvFacesComponent
Specified by:
restoreState in interface StateHolder
Overrides:
restoreState in class IlvFacesSelectInteractor
Parameters:
context - The current faces context.
stateObj - The previously saved state of this component.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.