|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.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
com.sun.rave.web.ui.component.DropDownBase
com.sun.rave.web.ui.component.DropDown
public class DropDown
Component that represents a drop down menu.
| Field Summary | |
|---|---|
static java.lang.String |
SUBMIT
|
| Fields inherited from class com.sun.rave.web.ui.component.ListSelector |
|---|
LIST_ID, listItems, 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, UPDATE_MESSAGE_ID |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Constructor Summary | |
|---|---|
DropDown()
|
|
| Method Summary | |
|---|---|
void |
addActionListener(javax.faces.event.ActionListener listener)
Add a new ActionListener to the set of listeners interested
in being notified when ActionEvents occur. |
void |
broadcast(javax.faces.event.FacesEvent event)
In addition to to the default UIComponent.broadcast(javax.faces.event.FacesEvent)
processing, pass the ActionEvent being broadcast to the method
referenced by actionListener (if any), and to the default
ActionListener registered on the Application. |
javax.faces.el.MethodBinding |
getAction()
Method binding representing a method that processes application actions from this component. |
javax.faces.event.ActionListener[] |
getActionListeners()
Return the set of registered ActionListeners for this
ActionSource instance. |
boolean |
getMultiple()
Getter for property multiple |
int |
getRows()
Getter for property Rows. |
void |
processDecodes(javax.faces.context.FacesContext context)
The DropDown needs to override the standard decoding behaviour since it may also be an action source. |
void |
queueEvent(javax.faces.event.FacesEvent e)
Intercept queueEvent and, for ActionEvents, mark
the phaseId for the event to be PhaseId.APPLY_REQUEST_VALUES
if the immediate flag is true,
PhaseId.INVOKE_APPLICATION otherwise. |
void |
removeActionListener(javax.faces.event.ActionListener listener)
Remove an existing ActionListener (if any) from the set of
listeners interested in being notified when ActionEvents
occur. |
void |
setMultiple(boolean multiple)
Setter for property multiple |
void |
setRows(int DisplayRows)
Setter for property Rows. |
void |
validate(javax.faces.context.FacesContext context)
|
| Methods inherited from class com.sun.rave.web.ui.component.DropDownBase |
|---|
getActionListener, getFamily, isForgetValue, isNavigateToValue, isSubmitForm, restoreState, saveState, setAction, setActionListener, setForgetValue, setNavigateToValue, setSubmitForm |
| Methods inherited from class com.sun.rave.web.ui.component.ListSelector |
|---|
checkSelectionModel, createListItem, getLabelComponent, getListItems, getListItems, getOptions, getPrimaryElementID, getReadOnlyValueComponent, getSeparatorLength, getValueAsReadOnly, getValueAsStringArray, mainListSubmits, markSelectedListItems, processOptions, processSelections |
| Methods inherited from class com.sun.rave.web.ui.component.ListSelectorBase |
|---|
isLabelOnTop, isSeparators, isVisible, setLabelOnTop, setSeparators, setVisible |
| Methods inherited from class com.sun.rave.web.ui.component.Selector |
|---|
compareValues, getConvertedValue, getLabelLevel, getRendersChildren, getValueAsReadOnly, isMultiple, 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, decode, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, 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, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient |
| Methods inherited from class javax.faces.component.UIComponent |
|---|
encodeAll, getContainerClientId, getValueExpression, setValueExpression |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.faces.component.ActionSource |
|---|
getActionListener, isImmediate, setAction, setActionListener, setImmediate |
| Methods inherited from interface com.sun.rave.web.ui.component.ListManager |
|---|
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 |
|---|
public static final java.lang.String SUBMIT
| Constructor Detail |
|---|
public DropDown()
| Method Detail |
|---|
public javax.faces.el.MethodBinding getAction()
DropDownBaseMethod binding representing a method that processes application actions from this component. This attribute is only referenced when submitForm is true.
getAction in interface javax.faces.component.ActionSourcegetAction in class DropDownBasepublic int getRows()
getRows in interface ListManagergetRows in class ListSelectorBasepublic void setRows(int DisplayRows)
setRows in class ListSelectorBaseDisplayRows - New value of property DisplayRows.ListSelectorBase.getRows()public boolean getMultiple()
public void setMultiple(boolean multiple)
setMultiple in class Selectormultiple - New value of property multiplepublic void addActionListener(javax.faces.event.ActionListener listener)
Add a new ActionListener to the set of listeners interested
in being notified when ActionEvents occur.
addActionListener in interface javax.faces.component.ActionSourcelistener - The ActionListener to be added
java.lang.NullPointerException - if listener
is nullpublic javax.faces.event.ActionListener[] getActionListeners()
Return the set of registered ActionListeners for this
ActionSource instance. If there are no registered listeners,
a zero-length array is returned.
getActionListeners in interface javax.faces.component.ActionSourcepublic void removeActionListener(javax.faces.event.ActionListener listener)
Remove an existing ActionListener (if any) from the set of
listeners interested in being notified when ActionEvents
occur.
removeActionListener in interface javax.faces.component.ActionSourcelistener - The ActionListener to be removed
java.lang.NullPointerException - if listener
is nullpublic void processDecodes(javax.faces.context.FacesContext context)
The DropDown needs to override the standard decoding behaviour since it may also be an action source. We decode the component w.r.t. the value first, and validate it if the component is immediate. Then we fire an action event.
processDecodes in class javax.faces.component.UIInputjava.lang.NullPointerException
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 ActionEvent being broadcast to the method
referenced by actionListener (if any), and to the default
ActionListener registered on the Application.
broadcast in class javax.faces.component.UIComponentBaseevent - FacesEvent to be broadcast
javax.faces.event.AbortProcessingException - Signal the JavaServer Faces
implementation that no further processing on the current event should be
performed @exception IllegalArgumentException if the implementation class
of this FacesEvent is not supported by this component
java.lang.NullPointerException - if event is
nullpublic void queueEvent(javax.faces.event.FacesEvent e)
Intercept queueEvent and, for ActionEvents, mark
the phaseId for the event to be PhaseId.APPLY_REQUEST_VALUES
if the immediate flag is true,
PhaseId.INVOKE_APPLICATION otherwise.
queueEvent in class javax.faces.component.UIComponentBasepublic void validate(javax.faces.context.FacesContext context)
validate in class javax.faces.component.UIInput
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||