Represents a single-selection component that is rendered as an HTML select element, showing either all
available options or the specified number of options.
By default, the rendererType property must be set to "jakarta.faces.Listbox". This value
can be changed by calling the setRendererType() method.
| Modifier and Type | Class and Description |
|---|---|
| protected static enum | HtmlSelectOneListbox.
Properties used by this component |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | COMPONENT_TYPE
Hides jakarta. The standard component type for this component. |
| private static final Collection |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the property valueContents: Access key that, when pressed, transfers focus to this element.
Return the value of the |
| public String | getDefaultEventName()
Overrides jakarta. Implements jakarta.
Returns the default event name for this |
| public String | Returns: the property valueContents: Direction indication for text that does not inherit directionality. Valid values are "LTR" (left-to-right) and "RTL" (right-to-left). These attributes are case sensitive when rendering to XHTML, so care must be taken to have the correct case.
Return the value of the |
| public String | Returns: the property valueContents: CSS style class to apply to the rendered label on disabled options.
Return the value of the |
| public String | Returns: the property valueContents: CSS style class to apply to the rendered label on enabled options.
Return the value of the |
| public Collection | getEventNames()
Overrides jakarta. Implements jakarta.
Returns a non-null, unmodifiable |
| public String | Returns: the property valueContents: A localized user presentable name for this component.
Return the value of the |
| public String | Returns: the property valueContents: Code describing the language used in the generated markup for this component.
Return the value of the |
| public String | Returns: the property valueContents: Javascript code executed when this element loses focus.
Return the value of the |
| public String | Returns: the property valueContents: Javascript code executed when this element loses focus and its value has been modified since gaining focus.
Return the value of the |
| public String | Returns: the property valueContents: Javascript code executed when a pointer button is clicked over this element.
Return the value of the |
| public String | Returns: the property valueContents: Javascript code executed when a pointer button is double clicked over this element.
Return the value of the |
| public String | Returns: the property valueContents: Javascript code executed when this element receives focus.
Return the value of the |
| public String | Returns: the property valueContents: Javascript code executed when a key is pressed down over this element.
Return the value of the |
| public String | Returns: the property valueContents: Javascript code executed when a key is pressed and released over this element.
Return the value of the |
| public String | Returns: the property valueContents: Javascript code executed when a key is released over this element.
Return the value of the |
| public String | Returns: the property valueContents: Javascript code executed when a pointer button is pressed down over this element.
Return the value of the |
| public String | Returns: the property valueContents: Javascript code executed when a pointer button is moved within this element.
Return the value of the |
| public String | Returns: the property valueContents: Javascript code executed when a pointer button is moved away from this element.
Return the value of the |
| public String | Returns: the property valueContents: Javascript code executed when a pointer button is moved onto this element.
Return the value of the |
| public String | Returns: the property valueContents: Javascript code executed when a pointer button is released over this element.
Return the value of the |
| public String | Returns: the property valueContents: Per the WAI-ARIA spec and its relationship to HTML5 (Section title ARIA Role Attriubute), every HTML element may have a "role" attribute whose value must be passed through unmodified on the element on which it is declared in the final rendered markup. The attribute, if specified, must have a value that is a string literal that is, or an EL Expression that evaluates to, a set of space-separated tokens representing the various WAI-ARIA roles that the element belongs to. It is the page author's responsibility to ensure that the user agent is capable of correctly interpreting the value of this attribute.
Return the value of the |
| public int | Returns: the property valueContents: Number of available options to be shown at all times. If not specified, all available options are shown.
Return the value of the |
| public String | Returns: the property valueContents: CSS style(s) to be applied when this component is rendered.
Return the value of the |
| public String | Returns: the property valueContents: Space-separated list of CSS style class(es) to be applied when this element is rendered. This value must be passed through as the "class" attribute on generated markup.
Return the value of the |
| public String | Returns: the property valueContents: Position of this element in the tabbing order for the current document. This value must be an integer between 0 and 32767.
Return the value of the |
| public String | Returns: the property valueContents: Advisory title information about markup elements generated for this component.
Return the value of the |
| public boolean | Returns: the property valueContents: Flag indicating that this element must never receive focus or be included in a subsequent submit. A value of false causes no attribute to be rendered, while a value of true causes the attribute to be rendered as disabled="disabled".
Return the value of the |
| public boolean | Returns: the property valueContents: Flag indicating that this component will prohibit changes by the user. The element may receive focus unless it has also been disabled. A value of false causes no attribute to be rendered, while a value of true causes the attribute to be rendered as readonly="readonly".
Return the value of the |
| public void | |
| public void | |
| public void | |
| public void | setDisabledClass(String
the new property value disabledClass)
Set the value of the |
| public void | setEnabledClass(String
the new property value enabledClass)
Set the value of the |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| COMPONENT_TYPE | back to summary |
|---|---|
| public static final String COMPONENT_TYPE Hides jakarta. The standard component type for this component. | |
| EVENT_NAMES | back to summary |
|---|---|
| private static final Collection<String> EVENT_NAMES | |
| HtmlSelectOneListbox | back to summary |
|---|---|
| public HtmlSelectOneListbox() | |
| getAccesskey | back to summary |
|---|---|
| public String getAccesskey()
Return the value of the
| |
| getDefaultEventName | back to summary |
|---|---|
| public String getDefaultEventName() Overrides jakarta. Implements jakarta. Doc from jakarta.
Returns the default event name for this | |
| getDir | back to summary |
|---|---|
| public String getDir()
Return the value of the
| |
| getDisabledClass | back to summary |
|---|---|
| public String getDisabledClass()
Return the value of the
| |
| getEnabledClass | back to summary |
|---|---|
| public String getEnabledClass()
Return the value of the
| |
| getEventNames | back to summary |
|---|---|
| public Collection Overrides jakarta. Implements jakarta. Doc from jakarta.
Returns a non-null, unmodifiable
| |
| getLabel | back to summary |
|---|---|
| public String getLabel()
Return the value of the
| |
| getLang | back to summary |
|---|---|
| public String getLang()
Return the value of the
| |
| getOnblur | back to summary |
|---|---|
| public String getOnblur()
Return the value of the
| |
| getOnchange | back to summary |
|---|---|
| public String getOnchange()
Return the value of the
| |
| getOnclick | back to summary |
|---|---|
| public String getOnclick()
Return the value of the
| |
| getOndblclick | back to summary |
|---|---|
| public String getOndblclick()
Return the value of the
| |
| getOnfocus | back to summary |
|---|---|
| public String getOnfocus()
Return the value of the
| |
| getOnkeydown | back to summary |
|---|---|
| public String getOnkeydown()
Return the value of the
| |
| getOnkeypress | back to summary |
|---|---|
| public String getOnkeypress()
Return the value of the
| |
| getOnkeyup | back to summary |
|---|---|
| public String getOnkeyup()
Return the value of the
| |
| getOnmousedown | back to summary |
|---|---|
| public String getOnmousedown()
Return the value of the
| |
| getOnmousemove | back to summary |
|---|---|
| public String getOnmousemove()
Return the value of the
| |
| getOnmouseout | back to summary |
|---|---|
| public String getOnmouseout()
Return the value of the
| |
| getOnmouseover | back to summary |
|---|---|
| public String getOnmouseover()
Return the value of the
| |
| getOnmouseup | back to summary |
|---|---|
| public String getOnmouseup()
Return the value of the
| |
| getRole | back to summary |
|---|---|
| public String getRole()
Return the value of the
| |
| getSize | back to summary |
|---|---|
| public int getSize()
Return the value of the
| |
| getStyle | back to summary |
|---|---|
| public String getStyle()
Return the value of the
| |
| getStyleClass | back to summary |
|---|---|
| public String getStyleClass()
Return the value of the
| |
| getTabindex | back to summary |
|---|---|
| public String getTabindex()
Return the value of the
| |
| getTitle | back to summary |
|---|---|
| public String getTitle()
Return the value of the
| |
| isDisabled | back to summary |
|---|---|
| public boolean isDisabled()
Return the value of the
| |
| isReadonly | back to summary |
|---|---|
| public boolean isReadonly()
Return the value of the
| |
| setAccesskey | back to summary |
|---|---|
| public void setAccesskey(String accesskey)
Set the value of the
| |
| setDir | back to summary |
|---|---|
| public void setDir(String dir)
Set the value of the
| |
| setDisabled | back to summary |
|---|---|
| public void setDisabled(boolean disabled)
Set the value of the
| |
| setDisabledClass | back to summary |
|---|---|
| public void setDisabledClass(String disabledClass)
Set the value of the
| |
| setEnabledClass | back to summary |
|---|---|
| public void setEnabledClass(String enabledClass)
Set the value of the
| |
| setLabel | back to summary |
|---|---|
| public void setLabel(String label)
Set the value of the
| |
| setLang | back to summary |
|---|---|
| public void setLang(String lang)
Set the value of the
| |
| setOnblur | back to summary |
|---|---|
| public void setOnblur(String onblur)
Set the value of the
| |
| setOnchange | back to summary |
|---|---|
| public void setOnchange(String onchange)
Set the value of the
| |
| setOnclick | back to summary |
|---|---|
| public void setOnclick(String onclick)
Set the value of the
| |
| setOndblclick | back to summary |
|---|---|
| public void setOndblclick(String ondblclick)
Set the value of the
| |
| setOnfocus | back to summary |
|---|---|
| public void setOnfocus(String onfocus)
Set the value of the
| |
| setOnkeydown | back to summary |
|---|---|
| public void setOnkeydown(String onkeydown)
Set the value of the
| |
| setOnkeypress | back to summary |
|---|---|
| public void setOnkeypress(String onkeypress)
Set the value of the
| |
| setOnkeyup | back to summary |
|---|---|
| public void setOnkeyup(String onkeyup)
Set the value of the
| |
| setOnmousedown | back to summary |
|---|---|
| public void setOnmousedown(String onmousedown)
Set the value of the
| |
| setOnmousemove | back to summary |
|---|---|
| public void setOnmousemove(String onmousemove)
Set the value of the
| |
| setOnmouseout | back to summary |
|---|---|
| public void setOnmouseout(String onmouseout)
Set the value of the
| |
| setOnmouseover | back to summary |
|---|---|
| public void setOnmouseover(String onmouseover)
Set the value of the
| |
| setOnmouseup | back to summary |
|---|---|
| public void setOnmouseup(String onmouseup)
Set the value of the
| |
| setReadonly | back to summary |
|---|---|
| public void setReadonly(boolean readonly)
Set the value of the
| |
| setRole | back to summary |
|---|---|
| public void setRole(String role)
Set the value of the
| |
| setSize | back to summary |
|---|---|
| public void setSize(int size)
Set the value of the
| |
| setStyle | back to summary |
|---|---|
| public void setStyle(String style)
Set the value of the
| |
| setStyleClass | back to summary |
|---|---|
| public void setStyleClass(String styleClass)
Set the value of the
| |
| setTabindex | back to summary |
|---|---|
| public void setTabindex(String tabindex)
Set the value of the
| |
| setTitle | back to summary |
|---|---|
| public void setTitle(String title)
Set the value of the
| |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. Returns the name of this enum constant, as contained in the declaration. |
| public static HtmlSelectOneListbox. | |
| public static HtmlSelectOneListbox. |
| accesskey | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| dir | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| disabled | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| disabledClass | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| enabledClass | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| label | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| lang | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| onblur | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| onchange | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| onclick | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| ondblclick | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| onfocus | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| onkeydown | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| onkeypress | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| onkeyup | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| onmousedown | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| onmousemove | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| onmouseout | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| onmouseover | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| onmouseup | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| readonly | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| role | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| size | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| style | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| styleClass | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| tabindex | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| title | back to summary |
|---|---|
| public static final HtmlSelectOneListbox. | |
| toString | back to summary |
|---|---|
| pack-priv String toString | |
| PropertyKeys | back to summary |
|---|---|
| private PropertyKeys(String toString) | |
| PropertyKeys | back to summary |
|---|---|
| private PropertyKeys() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static HtmlSelectOneListbox. | |
| values | back to summary |
|---|---|
| public static HtmlSelectOneListbox. | |