|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.faces.component.UIComponent
oracle.adf.view.faces.component.UIXComponent
oracle.adf.view.faces.component.UIXComponentBase
oracle.adf.view.faces.component.UIXValue
oracle.adf.view.faces.component.UIXEditableValue
The editableValue web element contains all the shared attributes supported by all ADF Faces components that support the JSF EditableValueHolder interface.
| Type | Phases | Description |
|---|---|---|
javax.faces.event.ValueChangeEvent |
Process Validations Apply Request Values |
Event delivered when a new value is entered by a user. |
| Field Summary | |
static java.lang.String |
COMPONENT_FAMILY
|
static java.lang.String |
COMPONENT_TYPE
|
static java.lang.String |
CONVERSION_MESSAGE_ID
|
static PropertyKey |
IMMEDIATE_KEY
|
static PropertyKey |
LOCAL_VALUE_SET_KEY
|
static PropertyKey |
REQUIRED_KEY
|
static PropertyKey |
REQUIRED_MESSAGE_DETAIL_KEY
|
static java.lang.String |
REQUIRED_MESSAGE_ID
|
static PropertyKey |
SUBMITTED_VALUE_KEY
|
static FacesBean.Type |
TYPE
|
static PropertyKey |
VALID_KEY
|
static PropertyKey |
VALIDATOR_KEY
|
static PropertyKey |
VALIDATORS_KEY
|
static PropertyKey |
VALUE_CHANGE_LISTENER_KEY
|
| Fields inherited from class oracle.adf.view.faces.component.UIXValue |
CONVERTER_KEY, VALUE_KEY |
| Fields inherited from class oracle.adf.view.faces.component.UIXComponentBase |
BINDING_KEY, ID_KEY, RENDERED_KEY, RENDERER_TYPE_KEY, TRANSIENT_KEY |
| Constructor Summary | |
protected |
UIXEditableValue()
Construct an instance of the UIXEditableValue |
protected |
UIXEditableValue(java.lang.String rendererType)
Construct an instance of the UIXEditableValue. |
| Method Summary | |
void |
addValidator(Validator validator)
|
void |
addValueChangeListener(ValueChangeListener listener)
Add a new ValueChangeListener to the set of listeners
interested in being notified when ValueChangeEvents occur. |
void |
broadcast(FacesEvent event)
In addition to to the default UIComponent.broadcast(javax.faces.event.FacesEvent)
processing, pass the ValueChangeEvent being broadcast to the
method referenced by valueChangeListener (if any). |
protected boolean |
compareValues(java.lang.Object previous,
java.lang.Object value)
Return true if the new value is different from the
previous value. |
protected FacesBean.Type |
getBeanType()
|
protected java.lang.Object |
getConvertedValue(FacesContext context,
java.lang.Object submittedValue)
|
java.lang.String |
getFamily()
|
java.lang.String |
getRequiredMessageDetail()
Gets the message to be displayed, if 'required' validation fails. |
protected java.lang.String |
getRequiredMessageKey()
|
java.lang.Object |
getSubmittedValue()
Gets the current submitted value. |
MethodBinding |
getValidator()
Gets a method reference to a validator method |
Validator[] |
getValidators()
|
MethodBinding |
getValueChangeListener()
Gets a method reference to an value change listener |
ValueChangeListener[] |
getValueChangeListeners()
Return the set of registered ValueChangeListeners for this
component. |
protected boolean |
isEmpty(java.lang.Object value)
Return true if the value is empty. |
boolean |
isImmediate()
Gets whether the value is converted and validated immediately in the Apply Request Values phase, or in the Process Validators phase. |
boolean |
isLocalValueSet()
Gets whether a local value is currently set. |
boolean |
isRequired()
Gets whether a non-null, non-empty value must be entered. |
boolean |
isValid()
Gets whether the component's value is currently valid |
void |
processDecodes(FacesContext context)
In addition to the standard processDecodes behavior
inherited from UIXComponentBase, calls
validate() if the the immediate
property is true. |
void |
processUpdates(FacesContext context)
|
void |
processValidators(FacesContext context)
|
void |
removeValidator(Validator validator)
|
void |
removeValueChangeListener(ValueChangeListener listener)
Remove an existing ValueChangeListener (if any) from the
set of listeners interested in being notified when
ValueChangeEvents occur. |
void |
resetValue()
Convenience method to reset this component's value to an uninitialized state, by resetting the local value and submitted values to null (ensuring that isLocalValueSet()
is false), and setting "valid" to true. |
void |
setImmediate(boolean immediate)
Sets whether the value is converted and validated immediately in the Apply Request Values phase, or in the Process Validators phase. |
void |
setLocalValueSet(boolean localValueSet)
Sets whether a local value is currently set. |
void |
setRequired(boolean required)
Sets whether a non-null, non-empty value must be entered. |
void |
setRequiredMessageDetail(java.lang.String requiredMessageDetail)
Sets the message to be displayed, if 'required' validation fails. |
void |
setSubmittedValue(java.lang.Object submittedValue)
Sets the current submitted value. |
void |
setValid(boolean valid)
Sets whether the component's value is currently valid |
void |
setValidator(MethodBinding validator)
Sets a method reference to a validator method |
void |
setValueChangeListener(MethodBinding valueChangeListener)
Sets a method reference to an value change listener |
void |
updateModel(FacesContext context)
|
void |
validate(FacesContext context)
|
protected void |
validateValue(FacesContext context,
java.lang.Object newValue)
|
| Methods inherited from class oracle.adf.view.faces.component.UIXValue |
getConverter, getLocalValue, getValue, setConverter, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.faces.component.ValueHolder |
getConverter, getLocalValue, getValue, setConverter, setValue |
| Field Detail |
public static final FacesBean.Type TYPE
public static final PropertyKey IMMEDIATE_KEY
public static final PropertyKey VALID_KEY
public static final PropertyKey REQUIRED_KEY
public static final PropertyKey LOCAL_VALUE_SET_KEY
public static final PropertyKey SUBMITTED_VALUE_KEY
public static final PropertyKey VALIDATOR_KEY
public static final PropertyKey VALUE_CHANGE_LISTENER_KEY
public static final PropertyKey REQUIRED_MESSAGE_DETAIL_KEY
public static final java.lang.String COMPONENT_FAMILY
public static final java.lang.String COMPONENT_TYPE
public static final PropertyKey VALIDATORS_KEY
public static final java.lang.String REQUIRED_MESSAGE_ID
public static final java.lang.String CONVERSION_MESSAGE_ID
| Constructor Detail |
protected UIXEditableValue(java.lang.String rendererType)
protected UIXEditableValue()
| Method Detail |
public void resetValue()
isLocalValueSet()
is false), and setting "valid" to true.
public void addValueChangeListener(ValueChangeListener listener)
Add a new ValueChangeListener to the set of listeners
interested in being notified when ValueChangeEvents occur.
addValueChangeListener in interface EditableValueHolderlistener - The ValueChangeListener to be added
java.lang.NullPointerException - if listener
is nullpublic ValueChangeListener[] getValueChangeListeners()
Return the set of registered ValueChangeListeners for this
component. If there are no registered listeners,
a zero-length array is returned.
getValueChangeListeners in interface EditableValueHolderpublic void removeValueChangeListener(ValueChangeListener listener)
Remove an existing ValueChangeListener (if any) from the
set of listeners interested in being notified when
ValueChangeEvents occur.
removeValueChangeListener in interface EditableValueHolderlistener - The ValueChangeListener to be removed
java.lang.NullPointerException - if listener
is nullpublic void addValidator(Validator validator)
addValidator in interface EditableValueHolderpublic Validator[] getValidators()
getValidators in interface EditableValueHolderpublic void removeValidator(Validator validator)
removeValidator in interface EditableValueHolderpublic void validate(FacesContext context)
public void broadcast(FacesEvent event)
throws AbortProcessingException
UIComponent.broadcast(javax.faces.event.FacesEvent)
processing, pass the ValueChangeEvent being broadcast to the
method referenced by valueChangeListener (if any).
broadcast in class UIXComponentBaseevent - FacesEvent to be broadcast
AbortProcessingException - Signal the JavaServer Faces
implementation that no further processing on the current event
should be performed
java.lang.IllegalArgumentException - if the implementation class
of this FacesEvent is not supported by this component
java.lang.NullPointerException - if event is
nullpublic void processDecodes(FacesContext context)
processDecodes behavior
inherited from UIXComponentBase, calls
validate() if the the immediate
property is true. Iif the component is invalid afterwards or
a RuntimeException is thrown, calls
FacesContext.renderResponse().
processDecodes in class UIXComponentBasejava.lang.NullPointerExceptionpublic void processUpdates(FacesContext context)
processUpdates in class UIXComponentBasepublic void processValidators(FacesContext context)
processValidators in class UIXComponentBasepublic void updateModel(FacesContext context)
protected void validateValue(FacesContext context,
java.lang.Object newValue)
protected java.lang.String getRequiredMessageKey()
protected java.lang.Object getConvertedValue(FacesContext context,
java.lang.Object submittedValue)
throws ConverterException
ConverterException
protected boolean compareValues(java.lang.Object previous,
java.lang.Object value)
Return true if the new value is different from the
previous value.
previous - old value of this component (if any)value - new value of this component (if any)protected boolean isEmpty(java.lang.Object value)
Return true if the value is empty.
public final boolean isImmediate()
isImmediate in interface EditableValueHolderpublic final void setImmediate(boolean immediate)
setImmediate in interface EditableValueHolderpublic final boolean isValid()
isValid in interface EditableValueHolderpublic final void setValid(boolean valid)
setValid in interface EditableValueHolderpublic final boolean isRequired()
isRequired in interface EditableValueHolderpublic final void setRequired(boolean required)
setRequired in interface EditableValueHolderpublic final boolean isLocalValueSet()
isLocalValueSet in interface EditableValueHolderpublic final void setLocalValueSet(boolean localValueSet)
setLocalValueSet in interface EditableValueHolderpublic final java.lang.Object getSubmittedValue()
getSubmittedValue in interface EditableValueHolderpublic final void setSubmittedValue(java.lang.Object submittedValue)
setSubmittedValue in interface EditableValueHolderpublic final MethodBinding getValidator()
getValidator in interface EditableValueHolderpublic final void setValidator(MethodBinding validator)
setValidator in interface EditableValueHolderpublic final MethodBinding getValueChangeListener()
getValueChangeListener in interface EditableValueHolderpublic final void setValueChangeListener(MethodBinding valueChangeListener)
setValueChangeListener in interface EditableValueHolderpublic final java.lang.String getRequiredMessageDetail()
Parameters:
public final void setRequiredMessageDetail(java.lang.String requiredMessageDetail)
Parameters:
public java.lang.String getFamily()
getFamily in class UIXValueprotected FacesBean.Type getBeanType()
getBeanType in class UIXValue
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||