ilog.views.faces.interactor
Class IlvInteractor

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
All Implemented Interfaces:
IlvFacesComponent, IlvFacesConstants, IlvFacesInteractor, Serializable, StateHolder
Direct Known Subclasses:
IlvDragRectInteractor, IlvFacesMapInteractor, IlvFacesPanInteractor, IlvFacesSelectInteractor

public class IlvInteractor
extends IlvFacesComponentBase
implements IlvFacesInteractor, IlvFacesConstants

The IlvInteractor is the base class for JViews Faces interactor components. An interactor is an object that is set on a JViews Faces view to make interactions on this view.

Since:
JViews 6.0
See Also:
Serialized Form

Field Summary
 
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
IlvInteractor()
          Creates a new IlvInteractor instance.
 
Method Summary
static String getComponentType()
          Returns the type of this component (its class name).
 String getCursor()
          Returns the mouse cursor to be displayed when using this interactor.
 String getFamily()
          Returns the identifier of the component family to which this component belongs.
 String getMenuModelId()
          Sets the model ID used in menu generation.
 String getMessage()
          Returns the message displayed by the message box attached to the view (if any) to which this interactor is attached.
 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 setCursor(String cursor)
          Sets the mouse cursor to be displayed when using this interactor.
 void setMenuModelId(String modelId)
          Returns the model ID used in menu generation.
 void setMessage(String message)
          Sets the message displayed when using this interactor.
 void updateModel(FacesContext ctx)
          Handles the "Update Model Values" phase of the JSF life cycle.
 
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, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvInteractor

public IlvInteractor()
Creates a new IlvInteractor 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.

Specified by:
getFamily in class UIComponent
Returns:
The family to which this component belongs.

getComponentType

public static String getComponentType()
Returns the type of this component (its class name).

Returns:
The component type.

getCursor

public String getCursor()
Returns the mouse cursor to be displayed when using this interactor.

Specified by:
getCursor in interface IlvFacesInteractor
Returns:
The cursor of the interactor.

getMessage

public String getMessage()
Returns the message displayed by the message box attached to the view (if any) to which this interactor is attached.

Specified by:
getMessage in interface IlvFacesInteractor
Returns:
The message for this interactor.

setCursor

public void setCursor(String cursor)
Sets the mouse cursor to be displayed when using this interactor. The valid values are the ones supported by the target browsers.

Specified by:
setCursor in interface IlvFacesInteractor
Parameters:
cursor - The cursor to set.

setMessage

public void setMessage(String message)
Sets the message displayed when using this interactor. The message will be displayed in the message box attached to the view, if any.

Specified by:
setMessage in interface IlvFacesInteractor
Parameters:
message - The message displayed when using this interactor.

getMenuModelId

public String getMenuModelId()
Sets the model ID used in menu generation.

Specified by:
getMenuModelId in interface IlvFacesInteractor
Returns:
The model ID of this interactor.
Since:
JViews 7.5

setMenuModelId

public void setMenuModelId(String modelId)
Returns the model ID used in menu generation.

Specified by:
setMenuModelId in interface IlvFacesInteractor
Parameters:
modelId - The model ID of this interactor.
Since:
JViews 7.5

updateModel

public void updateModel(FacesContext ctx)
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 IlvFacesComponentBase
Parameters:
ctx - 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 IlvFacesComponentBase
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 IlvFacesComponentBase
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.