|
||||||||||
| 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
javax.faces.component.UIOutput
javax.faces.component.UIInput
ilog.views.faces.dhtml.interactor.IlvObjectSelectInteractor
public abstract class IlvObjectSelectInteractor
This class defines an interactor that allows you to select a model object from a view.
Each subclass must register an objectSelectedFinder that will
set the value from the JViews Faces View and the parameters passed from the renderer.
| Field Summary | |
|---|---|
static Boolean |
AUTO_SUBMIT_DEFAULT_VALUE
Default value of autoSubmit property |
static Integer |
INVOCATION_CONTEXT_DEFAULT_VALUE
Default value of invocationContext property (JSF_CONTEXT). |
| Fields inherited from class javax.faces.component.UIInput |
|---|
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID |
| Constructor Summary | |
|---|---|
IlvObjectSelectInteractor()
Creates a new IlvObjectSelectInteractor instance. |
|
| Method Summary | |
|---|---|
void |
clearDecodedPropertyMap()
Clears the decoded properties. |
Map |
getAttributes()
Return a mutable Map representing the attributes
(and properties, see below) associated with this UIComponent,
keyed by attribute name (which must be a String). |
String |
getCursor()
Returns the mouse cursor to be displayed when using this interactor. |
int |
getInvocationContext()
Returns the invocation context of the valueChangeListener. |
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. |
IlvObjectSelectedFinder |
getObjectSelectedFinder()
Returns the object selected finder instance. |
IlvBasicView |
getView()
Returns the view component associated with this component. |
String |
getViewId()
Returns the ID of the view linked to this component. |
boolean |
isAutoSubmit()
Returns the auto submit mode. |
boolean |
isDecodedProperty(String property)
Returns true if the specified property was decoded during the "Apply
Request Value" phase of the JSF lifecycle, false otherwise. |
void |
resetDecodedProperties()
Resets the decoded properties of this component. |
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 |
setAutoSubmit(boolean autoSubmit)
Sets the auto submit mode. |
void |
setCursor(String cursor)
Sets the mouse cursor to be displayed when using this interactor. |
void |
setDecodedProperty(String property)
Sets the property to decoded, which means that the property value was
updated from the request during the "Apply Request Value" phase of the JSF
life cycle. |
void |
setInvocationContext(int invocationContext)
Sets the invocation context of the valueChangeListener. |
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 |
setObjectSelectedFinder(IlvObjectSelectedFinder objectSelectFinder)
Sets the object selected finder instance. |
void |
setView(IlvBasicView view)
Sets the view component associated with this component. |
void |
setViewId(String viewId)
Sets the ID of the view linked to this component. |
void |
updateModel(FacesContext context)
This method updates the referenced values with the local values of the component if these values were updated from the client. |
void |
validate(FacesContext context)
Overrides UIInput.validate(FacesContext) to launch an event event if
UIInput.getSubmittedValue() returns null. |
| Methods inherited from class javax.faces.component.UIInput |
|---|
addValidator, addValueChangeListener, broadcast, compareValues, decode, getConvertedValue, getFamily, getSubmittedValue, getValidator, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, setValue, setValueChangeListener, validateValue |
| Methods inherited from class javax.faces.component.UIOutput |
|---|
getConverter, getLocalValue, getValue, setConverter |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, encodeBegin, encodeChildren, encodeEnd, findComponent, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, 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 |
| Methods inherited from interface javax.faces.component.ValueHolder |
|---|
getConverter, getLocalValue, getValue, setConverter |
| Field Detail |
|---|
public static final Boolean AUTO_SUBMIT_DEFAULT_VALUE
autoSubmit property
public static final Integer INVOCATION_CONTEXT_DEFAULT_VALUE
| Constructor Detail |
|---|
public IlvObjectSelectInteractor()
IlvObjectSelectInteractor instance.
| Method Detail |
|---|
public Map getAttributes()
Return a mutable Map representing the attributes
(and properties, see below) associated with this UIComponent,
keyed by attribute name (which must be a String). The returned
implementation must support all of the standard and optional
Map methods, plus support the following additional
requirements:
Map implementation must implement
the java.io.Serializable interface.null key or value must
throw a NullPointerException.ClassCastException.UIComponent's implementation class, the following
methods will have special behavior:
containsKey - Return false.get() - If the property is readable, call
the getter method and return the returned value (wrapping
primitive values in their corresponding wrapper classes);
otherwise throw IllegalArgumentException.put() - If the property is writable, call
the setter method to set the corresponding value (unwrapping
primitive values in their corresponding wrapper classes).
If the property is not writeable, or an attempt is made to
set a property of primitive type to null,
throw IllegalArgumentException.remove - Throw
IllegalArgumentException.
getAttributes in class UIComponentBasepublic boolean isAutoSubmit()
true, this interactor will submit the
enclosing form on a click event. The auto submit mode is set to true by
default.
public void setAutoSubmit(boolean autoSubmit)
true, this interactor will submit the
enclosing form on a click event. The auto submit mode is set to true by
default.
autoSubmit - The auto submit to set.public IlvBasicView getView()
getView in interface IlvViewHelperpublic String getViewId()
getViewId in interface IlvViewHelperpublic void setView(IlvBasicView view)
setView in interface IlvViewHelperview - The view component associated with this component.public void setViewId(String viewId)
setViewId in interface IlvViewHelperviewId - The ID of the view.public void clearDecodedPropertyMap()
clearDecodedPropertyMap in interface IlvFacesComponentpublic IlvObjectSelectedFinder getObjectSelectedFinder()
public void setObjectSelectedFinder(IlvObjectSelectedFinder objectSelectFinder)
objectSelectFinder - The finder to attach to this interactor.public boolean isDecodedProperty(String property)
true if the specified property was decoded during the "Apply
Request Value" phase of the JSF lifecycle, false otherwise.
isDecodedProperty in interface IlvFacesComponentproperty - The property to test.
true if the property was decoded, false otherwise.public void resetDecodedProperties()
resetDecodedProperties in interface IlvFacesComponentpublic void setDecodedProperty(String property)
decoded, which means that the property value was
updated from the request during the "Apply Request Value" phase of the JSF
life cycle. This method must be called by renderers only during the execution of their decode
method.
setDecodedProperty in interface IlvFacesComponentproperty - The property to set to decoded.public String getCursor()
cursor to be displayed when using this interactor.
getCursor in interface IlvFacesInteractorcursor of the interactor.public String getMessage()
message displayed by the message box attached to the view (if
any) to which this interactor is attached.
getMessage in interface IlvFacesInteractormessage for this interactor.public void setCursor(String cursor)
cursor to be displayed when using this interactor.
Valid values are the values supported by the target browsers.
setCursor in interface IlvFacesInteractorcursor - The cursor to set.public void setMessage(String message)
message displayed when using this interactor. The message will be
displayed in the message box attached to the view, if any.
setMessage in interface IlvFacesInteractormessage - The message displayed when using this interactor.public int getInvocationContext()
valueChangeListener.
IlvDHTMLConstants.JSF_CONTEXT and
IlvDHTMLConstants.IMAGE_SERVLET_CONTEXT:JSF_CONTEXT: the value change listener is invoked in the JSF lifecycle.IMAGE_SERVLET_CONTEXT: the value change listener is invoked in the image generating servlet, just before the image generation.
In this mode there are some limitations: you can only access to the graphic component that generates the image and not
on the JSF components that are not refreshed. Use the JSF_CONTEXT mode in this case.
public void setInvocationContext(int invocationContext)
valueChangeListener.
IlvDHTMLConstants.JSF_CONTEXT and
IlvDHTMLConstants.IMAGE_SERVLET_CONTEXT:JSF_CONTEXT: the value change listener is invoked in the JSF lifecycle.IMAGE_SERVLET_CONTEXT: the value change listener is invoked in the image generating servlet, just before the image generation.
In this mode there are some limitations: you can only access to the graphic component that generates the image and not
on the JSF components that are not refreshed. Use the JSF_CONTEXT mode in this case.
invocationContext - The invocation context.public String getMenuModelId()
getMenuModelId in interface IlvFacesInteractorpublic void setMenuModelId(String modelId)
setMenuModelId in interface IlvFacesInteractormodelId - The model ID of this interactor.public void validate(FacesContext context)
UIInput.validate(FacesContext) to launch an event event if
UIInput.getSubmittedValue() returns null.
validate in class UIInputpublic void updateModel(FacesContext context)
updateModel in interface IlvViewHelperupdateModel in class UIInputcontext - The current faces context.public Object saveState(FacesContext context)
state of this component.
saveState in interface IlvFacesComponentsaveState in interface IlvViewHelpersaveState in interface StateHoldersaveState in class UIInputcontext - The current faces context.
state of this component.
public void restoreState(FacesContext context,
Object stateObj)
state parameter.
restoreState in interface IlvFacesComponentrestoreState in interface IlvViewHelperrestoreState in interface StateHolderrestoreState in class UIInputcontext - 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 | |||||||||