|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.component.UIComponent javax.faces.component.UIComponentBase javax.faces.component.UIOutput javax.faces.component.UIInput com.sun.rave.web.ui.component.SelectorBase com.sun.rave.web.ui.component.Selector com.sun.rave.web.ui.component.ListSelectorBase com.sun.rave.web.ui.component.ListSelector
Field Summary | |
static java.lang.String |
LIST_ID
|
protected java.util.ArrayList |
listItems
|
static java.lang.String |
VALUE_ID
|
Fields inherited from class com.sun.rave.web.ui.component.Selector |
valueTypeEvaluator |
Fields inherited from class javax.faces.component.UIInput |
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID |
Constructor Summary | |
ListSelector()
Creates a new instance of ListSelector |
Method Summary | |
void |
checkSelectionModel(javax.faces.context.FacesContext context)
Check that this component has a valuebinding that matches the value of the "multiple" attribute. |
protected ListItem |
createListItem(Option si)
|
javax.faces.component.UIComponent |
getLabelComponent()
|
java.util.Iterator |
getListItems()
Retrieve an Iterator of ListSelector.ListItem, to be used when evaluting the list items. |
java.util.Iterator |
getListItems(javax.faces.context.FacesContext context,
boolean rulerAtEnd)
Retrieve an Iterator of ListSelector.ListItem, to be used by the renderer. |
protected Option[] |
getOptions()
Processes the component's SelectItems. |
java.lang.String |
getPrimaryElementID(javax.faces.context.FacesContext context)
Implement this method so that it returns the DOM ID of the HTML element which should receive focus when the component receives focus, and to which a component label should apply. |
javax.faces.component.UIComponent |
getReadOnlyValueComponent()
Returns a UIComponent used to display the readonly value for this component |
int |
getSeparatorLength()
This method resets the options. |
java.lang.String |
getValueAsReadOnly(javax.faces.context.FacesContext context,
java.lang.String separator)
|
java.lang.String[] |
getValueAsStringArray(javax.faces.context.FacesContext context)
Get the value (the object representing the selection(s)) of this component as a String array. |
boolean |
mainListSubmits()
|
protected void |
markSelectedListItems(java.util.List list,
boolean processed)
Marks options corresponding to objects listed as values of this components as selected. |
protected void |
processOptions(Option[] options)
|
protected void |
processSelections()
Retrieve the current selections and compare them with the list items. |
Methods inherited from class com.sun.rave.web.ui.component.ListSelectorBase |
getFamily, getRows, isLabelOnTop, isSeparators, isVisible, restoreState, saveState, setLabelOnTop, setRows, setSeparators, setVisible |
Methods inherited from class com.sun.rave.web.ui.component.Selector |
compareValues, getConvertedValue, getLabelLevel, getRendersChildren, getValueAsReadOnly, isMultiple, setMultiple, setSelected, toString |
Methods inherited from class com.sun.rave.web.ui.component.SelectorBase |
getItems, getLabel, getOnBlur, getOnChange, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getOnSelect, getSelected, getStyle, getStyleClass, getTabIndex, getToolTip, getValueBinding, isDisabled, isReadOnly, setDisabled, setItems, setLabel, setLabelLevel, setOnBlur, setOnChange, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setOnSelect, setReadOnly, setStyle, setStyleClass, setTabIndex, setToolTip, setValueBinding |
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, validate, validateValue |
Methods inherited from class javax.faces.component.UIOutput |
getConverter, getLocalValue, getValue, setConverter |
Methods inherited from class javax.faces.component.UIComponentBase |
addFacesListener, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.sun.rave.web.ui.component.ListManager |
getRows, getToolTip, isVisible |
Methods inherited from interface javax.faces.component.EditableValueHolder |
addValidator, addValueChangeListener, getSubmittedValue, getValidator, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, removeValidator, removeValueChangeListener, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, setValueChangeListener |
Methods inherited from interface javax.faces.component.ValueHolder |
getConverter, getLocalValue, getValue, setConverter, setValue |
Methods inherited from interface com.sun.rave.web.ui.component.SelectorManager |
getClientId, getOnChange, getStyle, getStyleClass, getTabIndex, isDisabled, isMultiple, isReadOnly |
Field Detail |
protected java.util.ArrayList listItems
public static final java.lang.String VALUE_ID
public static final java.lang.String LIST_ID
Constructor Detail |
public ListSelector()
Method Detail |
public void checkSelectionModel(javax.faces.context.FacesContext context)
context
- The FacesContext of the requestpublic java.util.Iterator getListItems(javax.faces.context.FacesContext context, boolean rulerAtEnd) throws javax.faces.FacesException
getListItems
in interface ListManager
rulerAtEnd
- If this attribute is set to true, the iterator will contain, as the last item, a disabled list option with a blank label whose sole function is to guarantee that the list stays the same size
ListItem
.
javax.faces.FacesException
public java.util.Iterator getListItems() throws javax.faces.FacesException
ListItem
.
javax.faces.FacesException
public int getSeparatorLength()
protected Option[] getOptions()
protected void processOptions(Option[] options)
protected void processSelections()
protected void markSelectedListItems(java.util.List list, boolean processed)
list
- A list representation of the selected valuesprocessed
- If true, compare the values object by
object (this is done if we compare the value of the object with
with the list items). If false, perform a string comparison of
the string representation of the submitted value of the
component with the string representation of the value from the
list items (this is done if we compare the submitted values
with the list items).protected ListItem createListItem(Option si)
public javax.faces.component.UIComponent getLabelComponent()
public javax.faces.component.UIComponent getReadOnlyValueComponent()
ListManager
getReadOnlyValueComponent
in interface ListManager
public java.lang.String[] getValueAsStringArray(javax.faces.context.FacesContext context)
getValueAsStringArray
in interface ListManager
context
- The FacesContext of the request
public java.lang.String getPrimaryElementID(javax.faces.context.FacesContext context)
ComplexComponent
getPrimaryElementID
in interface ComplexComponent
context
- The FacesContext for the request
public java.lang.String getValueAsReadOnly(javax.faces.context.FacesContext context, java.lang.String separator)
public boolean mainListSubmits()
mainListSubmits
in interface ListManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |