Package org.patternfly.component.drawer
Class Drawer
- java.lang.Object
-
- org.patternfly.component.BaseComponentFlat<HTMLElement,Drawer>
-
- org.patternfly.component.drawer.Drawer
-
- All Implemented Interfaces:
Finder<HTMLElement>,HasElement<HTMLElement,Drawer>,HasHTMLElement<HTMLElement,Drawer>,IsElement<HTMLElement>,TypedBuilder<HTMLElement,Drawer>,Component,Expandable<HTMLElement,Drawer>,Modifiers.Inline<HTMLElement,Drawer>
public class Drawer extends BaseComponentFlat<HTMLElement,Drawer> implements Modifiers.Inline<HTMLElement,Drawer>, Expandable<HTMLElement,Drawer>
A drawer is a sliding panel that enters from the right edge of the viewport. It can be configured to either overlay content on a page or create a sidebar by pushing that content to the left.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Draweradd(DrawerContent content)Draweradd(DrawerPanel panel)Draweradd(DrawerSection section)DraweraddContent(DrawerContent content)DraweraddPanel(DrawerPanel panel)DraweraddSection(DrawerSection section)voidcollapse(boolean fireEvent)static Drawerdrawer()voidexpand(boolean fireEvent)Drawerinline(boolean inline)DraweronToggle(ToggleHandler<Drawer> toggleHandler)Drawerposition(Position position)Drawerstatic_()Same as static_(true)Drawerstatic_(boolean static_)Adds/removes modifier(static_)Drawerthat()-
Methods inherited from class org.patternfly.component.BaseComponentFlat
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.Inline
inline
-
-
-
-
Method Detail
-
drawer
public static Drawer drawer()
-
addSection
public Drawer addSection(DrawerSection section)
-
add
public Drawer add(DrawerSection section)
-
addContent
public Drawer addContent(DrawerContent content)
-
add
public Drawer add(DrawerContent content)
-
addPanel
public Drawer addPanel(DrawerPanel panel)
-
add
public Drawer add(DrawerPanel panel)
-
static_
public Drawer static_()
Same as static_(true)
-
static_
public Drawer static_(boolean static_)
Adds/removes modifier(static_)
-
inline
public Drawer inline(boolean inline)
- Specified by:
inlinein interfaceModifiers.Inline<HTMLElement,Drawer>
-
that
public Drawer that()
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,Drawer>
-
onToggle
public Drawer onToggle(ToggleHandler<Drawer> toggleHandler)
-
collapse
public void collapse(boolean fireEvent)
- Specified by:
collapsein interfaceExpandable<HTMLElement,Drawer>
-
expand
public void expand(boolean fireEvent)
- Specified by:
expandin interfaceExpandable<HTMLElement,Drawer>
-
-