Package org.patternfly.component.menu
Class SingleSelect
- java.lang.Object
-
- org.patternfly.component.ComponentDelegate<HTMLElement,B>
-
- org.patternfly.component.menu.SingleSelect
-
- All Implemented Interfaces:
Attachable,Finder<HTMLElement>,HasElement<HTMLElement,SingleSelect>,HasHTMLElement<HTMLElement,SingleSelect>,IsElement<HTMLElement>,TypedBuilder<HTMLElement,SingleSelect>,Component,Expandable<HTMLElement,SingleSelect>,Modifiers.Disabled<HTMLElement,SingleSelect>
public class SingleSelect extends ComponentDelegate<HTMLElement,B>
A select list enables users to select one or more items from a list. Use a select list when options are dynamic or variable.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SingleSelectadd(Menu menu)BaddMenu(Menu menu)BariaLabel(String label)voidattach(MutationRecord mutationRecord)voidcollapse(boolean fireEvent)voiddetach(MutationRecord mutationRecord)Bdisabled(boolean disabled)voidexpand(boolean fireEvent)Bflip(boolean flip)booleanisDisabled()Menumenu()MenuTogglemenuToggle()BonToggle(ToggleHandler<B> toggleHandler)Bplacement(Placement placement)static SingleSelectsingleSelect(String text)static SingleSelectsingleSelect(MenuToggle menuToggle)SingleSelectthat()BzIndex(int zIndex)-
Methods inherited from class org.patternfly.component.ComponentDelegate
componentType, element
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.patternfly.component.Expandable
collapse, expand, expanded, toggle, toggle
-
Methods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, classList, classList, css, id, id, innerHtml, on, run, textContent, textNode, toggle, toggle, toggle, uniqueId
-
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, title
-
Methods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled
-
-
-
-
Method Detail
-
singleSelect
public static SingleSelect singleSelect(String text)
-
singleSelect
public static SingleSelect singleSelect(MenuToggle menuToggle)
-
add
public SingleSelect add(Menu menu)
-
that
public SingleSelect that()
-
attach
public void attach(MutationRecord mutationRecord)
- Specified by:
attachin interfaceAttachable
-
detach
public void detach(MutationRecord mutationRecord)
- Specified by:
detachin interfaceAttachable
-
disabled
public B disabled(boolean disabled)
- Specified by:
disabledin interfaceModifiers.Disabled<HTMLElement,B extends TypedBuilder<HTMLElement,B>>
-
isDisabled
public boolean isDisabled()
- Specified by:
isDisabledin interfaceModifiers.Disabled<HTMLElement,B extends TypedBuilder<HTMLElement,B>>
-
flip
public B flip(boolean flip)
-
zIndex
public B zIndex(int zIndex)
-
onToggle
public B onToggle(ToggleHandler<B> toggleHandler)
-
collapse
public void collapse(boolean fireEvent)
- Specified by:
collapsein interfaceExpandable<HTMLElement,B extends TypedBuilder<HTMLElement,B>>
-
expand
public void expand(boolean fireEvent)
- Specified by:
expandin interfaceExpandable<HTMLElement,B extends TypedBuilder<HTMLElement,B>>
-
menuToggle
public MenuToggle menuToggle()
-
menu
public Menu menu()
-
-