Skip navigation links
org.apache.myfaces.trinidad.component.core.input
Class CoreSelectItem
java.lang.Object
javax.faces.component.UIComponent
org.apache.myfaces.trinidad.component.UIXComponent
org.apache.myfaces.trinidad.component.UIXComponentBase
org.apache.myfaces.trinidad.component.UIXSelectItem
org.apache.myfaces.trinidad.component.core.input.CoreSelectItem
- All Implemented Interfaces:
- javax.faces.component.StateHolder
-
public class CoreSelectItem
- extends UIXSelectItem
The selectItem tag represents a single item that the user may select from a list, choice, radio, or shuttle Trinidad control. It may be used in place of the JSF selectItem or selectItems tags, but is very similar (largely not requiring "item" in front of its attributes.)
Events:
| Type |
Phases |
Description |
org.apache.myfaces.trinidad.event.AttributeChangeEvent |
Invoke Application
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 |
|
CoreSelectItem()
Construct an instance of the CoreSelectItem. |
protected |
CoreSelectItem(java.lang.String rendererType)
Construct an instance of the CoreSelectItem. |
| Method Summary |
protected FacesBean.Type |
getBeanType()
|
java.lang.String |
getFamily()
|
java.lang.String |
getLabel()
Gets the user-visible text of the item |
java.lang.String |
getLongDesc()
Gets the description associated with this option. |
java.lang.String |
getShortDesc()
Gets The short description of the bean. |
boolean |
isDisabled()
Gets whether the item is disabled. |
void |
setDisabled(boolean disabled)
Sets whether the item is disabled. |
void |
setLabel(java.lang.String label)
Sets the user-visible text of the item |
void |
setLongDesc(java.lang.String longDesc)
Sets the description associated with this option. |
void |
setShortDesc(java.lang.String shortDesc)
Sets The short description of the bean. |
| Methods inherited from class org.apache.myfaces.trinidad.component.UIXComponentBase |
adaptMethodBinding, addAttributeChange, addAttributeChangeListener, addComponentChange, addComponentChange, addComponentChangeFilter, addFacesListener, broadcast, broadcastToMethodBinding, broadcastToMethodExpression, createFacesBean, decode, decodeChildren, decodeChildrenImpl, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributeChangeListener, getAttributeChangeListeners, getAttributes, getBooleanProperty, getChildCount, getChildren, getClientId, getComponentChangeFilters, getContainerClientId, getFacesBean, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacetNames, getFacets, getFacetsAndChildren, getId, getIntProperty, getLifecycleRenderer, getParent, getProperty, getPropertyKey, getRenderedFacetsAndChildren, getRenderer, getRendererType, getRendersChildren, getValueBinding, getValueExpression, invokeOnChildrenComponents, invokeOnComponent, invokeOnNamingContainerComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeAttributeChangeListener, removeComponentChangeFilter, removeFacesListener, restoreState, satisfiesPartialTrigger, saveState, setAttributeChangeListener, setAttributeChangeListener, setBooleanProperty, setId, setIntProperty, setParent, setProperty, setRendered, setRendererType, setTransient, setValueBinding, setValueExpression, toString, updateChildren, updateChildrenImpl, validateChildren, validateChildrenImpl |
| Methods inherited from class org.apache.myfaces.trinidad.component.UIXComponent |
addPartialTarget, encodeFlattenedChild, encodeFlattenedChildren, getLogicalParent, getLogicalParent, isVisitable, partialEncodeVisit, processFlattenedChildren, processFlattenedChildren, processFlattenedChildren, processFlattenedChildren, setPartialTarget, setUpEncodingContext, setupVisitingContext, tearDownEncodingContext, tearDownVisitingContext, visitTree, visitTree |
| Methods inherited from class javax.faces.component.UIComponent |
encodeAll, getContainerClientId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE
public static final FacesBean.Type TYPE
LABEL_KEY
public static final PropertyKey LABEL_KEY
DISABLED_KEY
public static final PropertyKey DISABLED_KEY
LONG_DESC_KEY
public static final PropertyKey LONG_DESC_KEY
SHORT_DESC_KEY
public static final PropertyKey SHORT_DESC_KEY
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
CoreSelectItem
public CoreSelectItem()
- Construct an instance of the CoreSelectItem.
CoreSelectItem
protected CoreSelectItem(java.lang.String rendererType)
- Construct an instance of the CoreSelectItem.
getLabel
public final java.lang.String getLabel()
- Gets the user-visible text of the item
-
- Returns:
- the new label value
setLabel
public final void setLabel(java.lang.String label)
- Sets the user-visible text of the item
-
- Parameters:
label - the new label value
isDisabled
public final boolean isDisabled()
- Gets whether the item is disabled. By default, no items are disabled.
-
- Returns:
- the new disabled value
setDisabled
public final void setDisabled(boolean disabled)
- Sets whether the item is disabled. By default, no items are disabled.
-
- Parameters:
disabled - the new disabled value
getLongDesc
public final java.lang.String getLongDesc()
- Gets the description associated with this option. This is used in selectManyShuttle and selectOrderShuttle, and ignored otherwise.
-
- Returns:
- the new longDesc value
setLongDesc
public final void setLongDesc(java.lang.String longDesc)
- Sets the description associated with this option. This is used in selectManyShuttle and selectOrderShuttle, and ignored otherwise.
-
- Parameters:
longDesc - the new longDesc value
getShortDesc
public final java.lang.String getShortDesc()
- Gets The short description of the bean. This text is commonly used by user agents to display advisory information about the option.
-
- Returns:
- the new shortDesc value
setShortDesc
public final void setShortDesc(java.lang.String shortDesc)
- Sets The short description of the bean. This text is commonly used by user agents to display advisory information about the option.
-
- Parameters:
shortDesc - the new shortDesc value
getFamily
public java.lang.String getFamily()
-
- Overrides:
getFamily in class UIXSelectItem
getBeanType
protected FacesBean.Type getBeanType()
-
- Overrides:
getBeanType in class UIXSelectItem
Skip navigation links
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.