com.infragistics.faces.input.component
Class BaseSelectItemList

java.lang.Object
  extended byjavax.faces.component.UIComponent
      extended byjavax.faces.component.UIComponentBase
          extended byjavax.faces.component.UIOutput
              extended byjavax.faces.component.UIInput
                  extended bycom.infragistics.faces.input.component.BaseInput
                      extended bycom.infragistics.faces.input.component.BaseSelectItemList
All Implemented Interfaces:
javax.faces.component.EditableValueHolder, javax.faces.component.StateHolder, javax.faces.component.ValueHolder
Direct Known Subclasses:
CheckBoxList, DropDownList, RadioButtonList

public class BaseSelectItemList
extends BaseInput


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
static java.lang.String RENDERER_TYPE
           
 
Fields inherited from class javax.faces.component.UIInput
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID
 
Constructor Summary
BaseSelectItemList()
           
 
Method Summary
 void dataBind()
          Binds the component to its data source and evaluate its bindings
 javax.faces.model.DataModel getDataSource()
          Returns the Data source to which this component is bound.
 java.lang.String getFamily()
           
 java.lang.Object[] getSelectedValues()
          Return an array containing the currently selected values.
 javax.faces.model.SelectItem[] getSelectItems()
          Return an array of selectItem contained in this component
 java.lang.String getSmartRefreshIds()
          Returns the Comma-separated list of component IDs to refresh on value change.
 java.lang.Object getValue()
          overridden to provide the optional "alwaysOneValue" semantics
 boolean isSelected(javax.faces.model.SelectItem selectItem)
          Return a flag indicating whether or not the specified SelectItem is currently selected
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setDataSource(javax.faces.model.DataModel dataSource)
          Sets the Data source to which this component is bound.
 void setSelectedValues(java.lang.Object[] values)
          Set the currently selected values.
 void setSmartRefreshIds(java.lang.String smartRefreshIds)
          Sets the Comma-separated list of component IDs to refresh on value change.
 
Methods inherited from class com.infragistics.faces.input.component.BaseInput
getShortcut, getTooltip, isDisabled, isReadOnly, setDisabled, setReadOnly, setShortcut, setTooltip, validate
 
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, broadcast, decode, getSubmittedValue, getValidator, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, setValue, setValueChangeListener, updateModel
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, setConverter
 
Methods inherited from class javax.faces.component.UIComponentBase
encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.faces.component.ValueHolder
getConverter, getLocalValue, setConverter
 

Field Detail

COMPONENT_FAMILY

public static java.lang.String COMPONENT_FAMILY

COMPONENT_TYPE

public static java.lang.String COMPONENT_TYPE

RENDERER_TYPE

public static java.lang.String RENDERER_TYPE
Constructor Detail

BaseSelectItemList

public BaseSelectItemList()
Method Detail

dataBind

public void dataBind()
Binds the component to its data source and evaluate its bindings


getDataSource

public javax.faces.model.DataModel getDataSource()
Returns the Data source to which this component is bound. The data model must be composed of SelectItems

Returns:
javax.faces.model.DataModel

getFamily

public java.lang.String getFamily()
Overrides:
getFamily in class BaseInput

getSelectedValues

public java.lang.Object[] getSelectedValues()
Return an array containing the currently selected values. This method is a typesafe alias to getValue()

Returns:

getSelectItems

public javax.faces.model.SelectItem[] getSelectItems()
Return an array of selectItem contained in this component

Returns:
an array of selectItem or null

getSmartRefreshIds

public java.lang.String getSmartRefreshIds()
Returns the Comma-separated list of component IDs to refresh on value change. Unknown IDs will be silently ignored.

Returns:
java.lang.String

getValue

public java.lang.Object getValue()
overridden to provide the optional "alwaysOneValue" semantics


isSelected

public boolean isSelected(javax.faces.model.SelectItem selectItem)
Return a flag indicating whether or not the specified SelectItem is currently selected

Parameters:
selectItem -
Returns:
boolean

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class BaseInput

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class BaseInput

setDataSource

public void setDataSource(javax.faces.model.DataModel dataSource)
Sets the Data source to which this component is bound. The data model must be composed of SelectItems


setSelectedValues

public void setSelectedValues(java.lang.Object[] values)
Set the currently selected values. This method is a typesafe alias to setValue()

Parameters:
values - The new selected values (if any)

setSmartRefreshIds

public void setSmartRefreshIds(java.lang.String smartRefreshIds)
Sets the Comma-separated list of component IDs to refresh on value change. Unknown IDs will be silently ignored.