|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.faces.component.UIComponent | +--oracle.adf.view.faces.component.UIXComponent | +--oracle.adf.view.faces.component.UIXComponentBase | +--oracle.adf.view.faces.component.UIXValueComponentBase | +--oracle.adf.view.faces.component.UIXValue | +--oracle.adf.view.faces.component.UIXEditableValueComponentBase
Base class for components that have a value.
Field Summary | |
static PropertyKey |
LOCAL_VALUE_SET_KEY
|
static PropertyKey |
SUBMITTED_VALUE_KEY
|
static FacesBean.Type |
TYPE
|
static PropertyKey |
VALID_KEY
|
static PropertyKey |
VALIDATORS_KEY
|
Fields inherited from class oracle.adf.view.faces.component.UIXValue |
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERTER_KEY, VALUE_KEY |
Fields inherited from class oracle.adf.view.faces.component.UIXComponentBase |
ID_KEY, RENDERED_KEY, RENDERER_TYPE_KEY, TRANSIENT_KEY |
Constructor Summary | |
UIXEditableValueComponentBase(java.lang.String localName)
|
Method Summary | |
void |
addValidator(javax.faces.validator.Validator validator)
|
void |
addValueChangeListener(javax.faces.event.ValueChangeListener listener)
Add a new ValueChangeListener to the set of listeners
interested in being notified when ValueChangeEvent s occur. |
void |
broadcast(javax.faces.event.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 java.lang.Object |
getConvertedValue(javax.faces.context.FacesContext context,
java.lang.Object submittedValue)
|
java.lang.Object |
getSubmittedValue()
Return the submittedValue value of this component. |
javax.faces.validator.Validator[] |
getValidators()
|
javax.faces.event.ValueChangeListener[] |
getValueChangeListeners()
Return the set of registered ValueChangeListener s for this
component. |
boolean |
isLocalValueSet()
|
boolean |
isValid()
|
void |
processDecodes(javax.faces.context.FacesContext context)
In addition to the standard processDecodes behavior
inherited from UIXComponentBase , calls
validate() if the the immediate
property is true. |
void |
processUpdates(javax.faces.context.FacesContext context)
|
void |
processValidators(javax.faces.context.FacesContext context)
|
void |
removeValidator(javax.faces.validator.Validator validator)
|
void |
removeValueChangeListener(javax.faces.event.ValueChangeListener listener)
Remove an existing ValueChangeListener (if any) from the
set of listeners interested in being notified when
ValueChangeEvent s occur. |
void |
setLocalValueSet(boolean localValueSet)
|
void |
setSubmittedValue(java.lang.Object submittedValue)
Set the submittedValue value of this component. |
void |
setValid(boolean valid)
|
void |
updateModel(javax.faces.context.FacesContext context)
|
void |
validate(javax.faces.context.FacesContext context)
|
protected void |
validateValue(javax.faces.context.FacesContext context,
java.lang.Object newValue)
|
Methods inherited from class oracle.adf.view.faces.component.UIXValue |
getBeanType, getConverter, getFamily, getValue, setConverter, setValue |
Methods inherited from class oracle.adf.view.faces.component.UIXValueComponentBase |
getLocalValue |
Methods inherited from class oracle.adf.view.faces.component.UIXComponentBase |
addFacesListener, createFacesBean, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttribute, getAttributes, getBooleanProperty, getChildCount, getChildren, getClientId, getFacesBean, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getIntProperty, getLocalClientId, getParent, getProperty, getPropertyKey, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreState, saveState, setAttribute, setBooleanProperty, setId, setIntProperty, setParent, setProperty, setRendered, setRendererType, setTransient, setValueBinding, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.faces.component.EditableValueHolder |
getValidator, getValueChangeListener, isImmediate, isRequired, setImmediate, setRequired, setValidator, setValueChangeListener |
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 VALID_KEY
public static final PropertyKey LOCAL_VALUE_SET_KEY
public static final PropertyKey SUBMITTED_VALUE_KEY
public static final PropertyKey VALIDATORS_KEY
Constructor Detail |
public UIXEditableValueComponentBase(java.lang.String localName)
Method Detail |
public boolean isValid()
isValid
in interface javax.faces.component.EditableValueHolder
public void setValid(boolean valid)
setValid
in interface javax.faces.component.EditableValueHolder
public boolean isLocalValueSet()
isLocalValueSet
in interface javax.faces.component.EditableValueHolder
public void setLocalValueSet(boolean localValueSet)
setLocalValueSet
in interface javax.faces.component.EditableValueHolder
public java.lang.Object getSubmittedValue()
Return the submittedValue value of this component.
This method should only be used by the decode()
and
validate()
method of this component, or
its corresponding Renderer
.
getSubmittedValue
in interface javax.faces.component.EditableValueHolder
public void setSubmittedValue(java.lang.Object submittedValue)
Set the submittedValue value of this component.
This method should only be used by the decode()
and
validate()
method of this component, or
its corresponding Renderer
.
setSubmittedValue
in interface javax.faces.component.EditableValueHolder
submittedValue
- The new submitted valuepublic void addValueChangeListener(javax.faces.event.ValueChangeListener listener)
Add a new ValueChangeListener
to the set of listeners
interested in being notified when ValueChangeEvent
s occur.
addValueChangeListener
in interface javax.faces.component.EditableValueHolder
listener
- The ValueChangeListener
to be added
java.lang.NullPointerException
- if listener
is null
public javax.faces.event.ValueChangeListener[] getValueChangeListeners()
Return the set of registered ValueChangeListener
s for this
component. If there are no registered listeners,
a zero-length array is returned.
getValueChangeListeners
in interface javax.faces.component.EditableValueHolder
public void removeValueChangeListener(javax.faces.event.ValueChangeListener listener)
Remove an existing ValueChangeListener
(if any) from the
set of listeners interested in being notified when
ValueChangeEvent
s occur.
removeValueChangeListener
in interface javax.faces.component.EditableValueHolder
listener
- The ValueChangeListener
to be removed
java.lang.NullPointerException
- if listener
is null
public void addValidator(javax.faces.validator.Validator validator)
addValidator
in interface javax.faces.component.EditableValueHolder
public javax.faces.validator.Validator[] getValidators()
getValidators
in interface javax.faces.component.EditableValueHolder
public void removeValidator(javax.faces.validator.Validator validator)
removeValidator
in interface javax.faces.component.EditableValueHolder
public void validate(javax.faces.context.FacesContext context)
public void broadcast(javax.faces.event.FacesEvent event) throws javax.faces.event.AbortProcessingException
UIComponent.broadcast(javax.faces.event.FacesEvent)
processing, pass the ValueChangeEvent
being broadcast to the
method referenced by valueChangeListener
(if any).
broadcast
in class UIXComponentBase
event
- FacesEvent
to be broadcast
javax.faces.event.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
null
public void processDecodes(javax.faces.context.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 UIXComponentBase
java.lang.NullPointerException
public void processUpdates(javax.faces.context.FacesContext context)
processUpdates
in class UIXComponentBase
public void processValidators(javax.faces.context.FacesContext context)
processValidators
in class UIXComponentBase
public void updateModel(javax.faces.context.FacesContext context)
protected void validateValue(javax.faces.context.FacesContext context, java.lang.Object newValue)
protected java.lang.Object getConvertedValue(javax.faces.context.FacesContext context, java.lang.Object submittedValue) throws javax.faces.convert.ConverterException
javax.faces.convert.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)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |