public abstract class UIOrderingList extends UIOrderingBaseComponent
Modifier and Type | Class and Description |
---|---|
protected static class |
UIOrderingList.SubmittedValue |
static class |
UIOrderingList.ValueHolder |
UIOrderingBaseComponent.DataAdder, UIOrderingBaseComponent.ItemState, UIOrderingBaseComponent.UpdateModelCommand
Modifier and Type | Field and Description |
---|---|
protected UIOrderingBaseComponent.UpdateModelCommand |
updateActiveItemCommand |
protected UIOrderingBaseComponent.UpdateModelCommand |
updateSelectionCommand |
protected UIOrderingBaseComponent.UpdateModelCommand |
updateValueCommand |
isColumn
Constructor and Description |
---|
UIOrderingList() |
Modifier and Type | Method and Description |
---|---|
void |
addValueChangeListener(javax.faces.event.ValueChangeListener listener) |
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 org.ajax4jsf.model.ExtendedDataModel |
createDataModel() |
java.lang.Object |
getActiveItem() |
abstract java.lang.String |
getControlsType() |
abstract javax.faces.convert.Converter |
getConverter() |
UIOrderingBaseComponent.ItemState |
getItemState() |
java.lang.Object |
getLocalValue() |
java.util.Set |
getSelection() |
java.lang.Object |
getSubmittedValue() |
java.lang.Object |
getValue() |
abstract javax.faces.el.MethodBinding |
getValueChangeListener() |
javax.faces.event.ValueChangeListener[] |
getValueChangeListeners() |
abstract boolean |
isImmediate() |
abstract boolean |
isRequired() |
abstract boolean |
isValid() |
void |
processDecodes(javax.faces.context.FacesContext context)
Specialized decode behavior on top of that provided by the
superclass.
|
protected void |
processDecodes(javax.faces.context.FacesContext faces,
java.lang.Object argument) |
void |
processUpdates(javax.faces.context.FacesContext context)
In addition to the standard
processUpdates behavior
inherited from UIComponentBase , calls
updateModel() . |
void |
processValidators(javax.faces.context.FacesContext context)
In addition to the standard
processValidators behavior
inherited from UIComponentBase , calls validate()
if the immediate property is false (which is the
default); if the component is invalid afterwards, calls
FacesContext.renderResponse() . |
void |
removeValueChangeListener(javax.faces.event.ValueChangeListener listener) |
protected void |
resetDataModel() |
protected void |
restoreIterationState(java.lang.Object object) |
void |
restoreState(javax.faces.context.FacesContext faces,
java.lang.Object object) |
protected java.lang.Object |
saveIterationState() |
java.lang.Object |
saveState(javax.faces.context.FacesContext faces) |
void |
setActiveItem(java.lang.Object activeItem) |
abstract void |
setControlsType(java.lang.String type) |
abstract void |
setConverter(javax.faces.convert.Converter converter) |
abstract void |
setImmediate(boolean immediate) |
abstract void |
setRequired(boolean required) |
void |
setSelection(java.util.Set selection) |
void |
setSubmittedString(java.util.Map submittedString,
java.util.Set selection,
java.lang.Object activeItem) |
void |
setSubmittedValue(java.lang.Object object) |
abstract void |
setValid(boolean valid) |
void |
setValue(java.lang.Object value) |
abstract void |
setValueChangeListener(javax.faces.el.MethodBinding valueChangeMethod) |
void |
updateModel(javax.faces.context.FacesContext context)
Perform the following algorithm to update the model dataMap
associated with this
UIInput , if any, as appropriate. |
void |
validate(javax.faces.context.FacesContext context)
Perform the following algorithm to validate the local value of
this
UIInput . |
protected void |
validateValue(javax.faces.context.FacesContext context,
java.lang.Object newValue) |
addConversionErrorMessage, addValidator, columns, compareValues, createComponentState, createContainer, createDataModel, dataChildren, decode, executeValidate, fixedChildren, getConverterForValue, getRequiredMessage, getValidator, getValidators, isEmpty, isFastOrderControlsVisible, isLocalValueSet, isOrderControlsVisible, isSuitableValue, removeValidator, requiredInvalidate, setFastOrderControlsVisible, setLocalValueSet, setOrderControlsVisible, setRequiredMessage, setValidator, updateModel
addAjaxKeyEvent, addRequestKey, beforeRenderResponse, broadcastLocal, captureOrigValue, captureOrigValue, clearRequestKeysSet, containsRequestKey, encodeAjaxChild, encodeBegin, extractKeySegment, getAjaxKeys, getAllAjaxKeys, getBaseClientId, getChildrenRenderer, getChildState, getClientId, getComponentState, getEncodedIds, getExtendedDataModel, getRowCount, getRowData, getRowIndex, getRowKey, getRowKeyConverter, getRowKeyVar, getStateVar, invocableChildren, invokeOnComponent, isRowAvailable, iterate, keepSaved, processUpdates, processValidators, queueEvent, removeRequestKey, resetComponent, restoreChildState, restoreOrigValue, restoreOrigValue, saveChildState, setAjaxKeys, setComponentState, setExtendedDataModel, setId, setParent, setRowIndex, setRowKey, setRowKey, setRowKeyConverter, setRowKeyVar, setStateVar, setupVariable, walk
getDataModel, getFamily, getFirst, getFooter, getHeader, getRows, getVar, setDataModel, setFirst, setFooter, setHeader, setRows, setValueBinding, setValueExpression, setVar
addFacesListener, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setRendered, setRendererType, setTransient
protected final UIOrderingBaseComponent.UpdateModelCommand updateActiveItemCommand
protected final UIOrderingBaseComponent.UpdateModelCommand updateSelectionCommand
protected final UIOrderingBaseComponent.UpdateModelCommand updateValueCommand
protected void processDecodes(javax.faces.context.FacesContext faces, java.lang.Object argument)
processDecodes
in class org.ajax4jsf.component.UIDataAdaptor
protected org.ajax4jsf.model.ExtendedDataModel createDataModel()
createDataModel
in class org.ajax4jsf.component.UIDataAdaptor
public void addValueChangeListener(javax.faces.event.ValueChangeListener listener)
public abstract javax.faces.el.MethodBinding getValueChangeListener()
public javax.faces.event.ValueChangeListener[] getValueChangeListeners()
public abstract boolean isImmediate()
public abstract boolean isRequired()
public abstract boolean isValid()
public void removeValueChangeListener(javax.faces.event.ValueChangeListener listener)
public void setSubmittedString(java.util.Map submittedString, java.util.Set selection, java.lang.Object activeItem)
public java.lang.Object getSubmittedValue()
public void setSubmittedValue(java.lang.Object object)
protected java.lang.Object saveIterationState()
protected void restoreIterationState(java.lang.Object object)
public abstract void setImmediate(boolean immediate)
public abstract void setRequired(boolean required)
public abstract void setValid(boolean valid)
public abstract void setValueChangeListener(javax.faces.el.MethodBinding valueChangeMethod)
public abstract javax.faces.convert.Converter getConverter()
public abstract void setConverter(javax.faces.convert.Converter converter)
public void processDecodes(javax.faces.context.FacesContext context)
Specialized decode behavior on top of that provided by the
superclass. In addition to the standard
processDecodes
behavior inherited from UIComponentBase
, calls validate()
if the the
immediate
property is true; if the component is
invalid afterwards or a RuntimeException
is thrown,
calls FacesContext.renderResponse()
.
public void processValidators(javax.faces.context.FacesContext context)
In addition to the standard processValidators
behavior
inherited from UIComponentBase
, calls validate()
if the immediate
property is false (which is the
default); if the component is invalid afterwards, calls
FacesContext.renderResponse()
.
If a RuntimeException
is thrown during
validation processing, calls FacesContext.renderResponse()
and re-throw the exception.
public void processUpdates(javax.faces.context.FacesContext context)
In addition to the standard processUpdates
behavior
inherited from UIComponentBase
, calls
updateModel()
.
If the component is invalid afterwards, calls
FacesContext.renderResponse()
.
If a RuntimeException
is thrown during
update processing, calls FacesContext.renderResponse()
and re-throw the exception.
public void broadcast(javax.faces.event.FacesEvent event) throws javax.faces.event.AbortProcessingException
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).
broadcast
in class org.ajax4jsf.component.UIDataAdaptor
event
- FacesEvent
to be broadcastjavax.faces.event.AbortProcessingException
- Signal the JavaServer Faces
implementation that no further processing on the current event
should be performedjava.lang.IllegalArgumentException
- if the implementation class
of this FacesEvent
is not supported by this componentjava.lang.NullPointerException
- if event
is
null
public void updateModel(javax.faces.context.FacesContext context)
Perform the following algorithm to update the model dataMap
associated with this UIInput
, if any, as appropriate.
valid
property of this component is
false
, take no further action.localValueSet
property of this component is
false
, take no further action.ValueBinding
for value
exists,
take no further action.setValue()
method of the ValueBinding
to update the value that the ValueBinding
points at.setValue()
method returns successfully:
UIInput
.localValueSet
property of this
UIInput
to false.setValue()
method call fails:
addMessage()
on the specified FacesContext
instance.valid
property of this UIInput
to false
.updateModel
in class UIOrderingBaseComponent
context
- FacesContext
for the request we are processingjava.lang.NullPointerException
- if context
is null
protected void validateValue(javax.faces.context.FacesContext context, java.lang.Object newValue)
validateValue
in class UIOrderingBaseComponent
public void validate(javax.faces.context.FacesContext context)
Perform the following algorithm to validate the local value of
this UIInput
.
getSubmittedValue()
.
If this returns null, exit without further processing. (This
indicates that no value was submitted for this component.)#getConvertedValue
.validateValue(javax.faces.context.FacesContext, java.lang.Object)
.valid
property of this component is still
true
, retrieve the previous value of the component
(with getValue()
), store the new local value using
setValue()
, and reset the submitted value to
null. If the local value is different from
the previous value of this component, fire a
ValueChangeEvent
to be broadcast to all interested
listeners.Application components implementing UIInput
that wish to
perform validation with logic embedded in the component should perform
their own correctness checks, and then call the
super.validate()
method to perform the standard
processing described above.
validate
in class UIOrderingBaseComponent
context
- The FacesContext
for the current requestjava.lang.NullPointerException
- if context
is nullprotected void resetDataModel()
resetDataModel
in class org.ajax4jsf.component.UIDataAdaptor
public UIOrderingBaseComponent.ItemState getItemState()
getItemState
in class UIOrderingBaseComponent
public abstract java.lang.String getControlsType()
public abstract void setControlsType(java.lang.String type)
public java.util.Set getSelection()
public void setSelection(java.util.Set selection)
public java.lang.Object getActiveItem()
public void setActiveItem(java.lang.Object activeItem)
public void setValue(java.lang.Object value)
setValue
in interface javax.faces.component.ValueHolder
setValue
in class org.ajax4jsf.component.UIDataAdaptor
public java.lang.Object getLocalValue()
public java.lang.Object getValue()
getValue
in interface javax.faces.component.ValueHolder
getValue
in class org.ajax4jsf.component.UIDataAdaptor
public java.lang.Object saveState(javax.faces.context.FacesContext faces)
saveState
in interface javax.faces.component.StateHolder
saveState
in class UIOrderingBaseComponent
public void restoreState(javax.faces.context.FacesContext faces, java.lang.Object object)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class UIOrderingBaseComponent
Copyright © 2013. All Rights Reserved.