org.apache.myfaces.trinidad.component
Class UIXSelectMany
java.lang.Object
javax.faces.component.UIComponent
org.apache.myfaces.trinidad.component.UIXComponent
org.apache.myfaces.trinidad.component.UIXComponentBase
org.apache.myfaces.trinidad.component.UIXValue
org.apache.myfaces.trinidad.component.UIXEditableValue
org.apache.myfaces.trinidad.component.UIXSelectMany
- All Implemented Interfaces:
- javax.faces.component.EditableValueHolder, javax.faces.component.StateHolder, javax.faces.component.ValueHolder
- Direct Known Subclasses:
- CoreSelectManyCheckbox, CoreSelectManyListbox, CoreSelectManyShuttle, UIXSelectOrder
public class UIXSelectMany
- extends UIXEditableValue
UIXSelectMany is a base abstraction for
components that allow selection of multiple of a
series of selectItem controls, where order
is not relevant.
selectOne controls may contain any number of
<f:selectItem>, <f:selectItems>, or
<tr:selectItem> components.
Events:
Type |
Phases |
Description |
javax.faces.event.ValueChangeEvent |
Apply Request Values |
The valueChange event is delivered when the value
attribute is changed. |
org.apache.myfaces.trinidad.event.AttributeChangeEvent |
Apply Request Values |
Event delivered to describe an attribute change. Attribute change events are not delivered for any programmatic change to a property. They are only delivered when a renderer changes a property without the application's specific request. An example of an attribute change events might include the width of a column that supported client-side resizing. |
Fields inherited from class javax.faces.component.UIComponent |
bindings |
Constructor Summary |
|
UIXSelectMany()
Construct an instance of the UIXSelectMany. |
protected |
UIXSelectMany(java.lang.String rendererType)
Construct an instance of the UIXSelectMany. |
Method Summary |
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()
|
java.lang.String |
getFamily()
|
protected java.lang.String |
getRequiredMessageKey()
|
protected boolean |
isEmpty(java.lang.Object value)
Return true if the value is empty. |
protected void |
validateValue(javax.faces.context.FacesContext context,
java.lang.Object newValue)
Compares two values, disregarding the order of the elements. |
Methods inherited from class org.apache.myfaces.trinidad.component.UIXEditableValue |
addValidator, addValueChangeListener, broadcast, getConvertedValue, getRequiredMessageDetail, getSubmittedValue, getValidator, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, setImmediate, setLocalValueSet, setRequired, setRequiredMessageDetail, setSubmittedValue, setValid, setValidator, setValueChangeListener, updateModel, validate |
Methods inherited from class org.apache.myfaces.trinidad.component.UIXComponentBase |
adaptMethodBinding, addAttributeChange, addAttributeChangeListener, addFacesListener, broadcastToMethodBinding, broadcastToMethodExpression, createFacesBean, decode, decodeChildren, decodeChildrenImpl, encodeAll, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributeChangeListener, getAttributeChangeListeners, getAttributes, getBooleanProperty, getChildCount, getChildren, getClientId, getFacesBean, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacetNames, getFacets, getFacetsAndChildren, getId, getIntProperty, getLifecycleRenderer, getParent, getProperty, getPropertyKey, getRenderer, getRendererType, getRendersChildren, getValueBinding, getValueExpression, isRendered, isTransient, markInitialState, processRestoreState, processSaveState, queueEvent, removeAttributeChangeListener, removeFacesListener, restoreState, saveState, setAttributeChangeListener, setAttributeChangeListener, setBooleanProperty, setId, setIntProperty, setParent, setProperty, setRendered, setRendererType, setTransient, setValueBinding, setValueExpression, toString, updateChildren, updateChildrenImpl, validateChildren, validateChildrenImpl |
Methods inherited from class javax.faces.component.UIComponent |
getContainerClientId, invokeOnComponent |
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 |
TYPE
public static final FacesBean.Type TYPE
COMPONENT_FAMILY
public static final java.lang.String COMPONENT_FAMILY
- See Also:
- Constant Field Values
COMPONENT_TYPE
public static final java.lang.String COMPONENT_TYPE
- See Also:
- Constant Field Values
REQUIRED_MESSAGE_ID
public static final java.lang.String REQUIRED_MESSAGE_ID
- See Also:
- Constant Field Values
UNSUPPORTED_MODEL_TYPE_MESSAGE_ID
public static final java.lang.String UNSUPPORTED_MODEL_TYPE_MESSAGE_ID
- See Also:
- Constant Field Values
UIXSelectMany
public UIXSelectMany()
- Construct an instance of the UIXSelectMany.
UIXSelectMany
protected UIXSelectMany(java.lang.String rendererType)
- Construct an instance of the UIXSelectMany.
validateValue
protected void validateValue(javax.faces.context.FacesContext context,
java.lang.Object newValue)
- Compares two values, disregarding the order of the elements.
- Overrides:
validateValue
in class UIXEditableValue
isEmpty
protected boolean isEmpty(java.lang.Object value)
- Description copied from class:
UIXEditableValue
Return true
if the value is empty.
- Overrides:
isEmpty
in class UIXEditableValue
getRequiredMessageKey
protected java.lang.String getRequiredMessageKey()
- Overrides:
getRequiredMessageKey
in class UIXEditableValue
compareValues
protected boolean compareValues(java.lang.Object previous,
java.lang.Object value)
- Description copied from class:
UIXEditableValue
Return true
if the new value is different from the
previous value.
- Overrides:
compareValues
in class UIXEditableValue
- Parameters:
previous
- old value of this component (if any)value
- new value of this component (if any)
- Returns:
- true if the values are different
getFamily
public java.lang.String getFamily()
- Overrides:
getFamily
in class UIXEditableValue
getBeanType
protected FacesBean.Type getBeanType()
- Overrides:
getBeanType
in class UIXEditableValue
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.