Package org.patternfly.component.drawer
Class DrawerPanel
- java.lang.Object
-
- org.patternfly.component.SubComponent<E,B>
-
- org.patternfly.component.drawer.DrawerPanel
-
- All Implemented Interfaces:
Attachable,Container<HTMLDivElement,DrawerPanel>,Finder<HTMLDivElement>,HasElement<HTMLDivElement,DrawerPanel>,HasHTMLElement<HTMLDivElement,DrawerPanel>,IsElement<HTMLDivElement>,TypedBuilder<HTMLDivElement,DrawerPanel>
public class DrawerPanel extends SubComponent<E,B> implements Attachable
The sliding panel in aDrawercomponent. Elements should not be added directly to this subcomponent, but instead nested inside aDrawerPanelBodyorDrawerPanelHead.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DrawerPaneladdBody(DrawerPanelBody body)DrawerPaneladdHead(DrawerPanelHead head)DrawerPanelariaResizeLabel(String ariaResizeLabel)voidattach(MutationRecord mutationRecord)DrawerPanelcolor(DrawerColor color)doublecurrentWidth()DrawerPaneldefaultSize(String defaultSize)The starting size of a resizable drawer, in either pixels or percentage.voiddetach(MutationRecord mutationRecord)static DrawerPaneldrawerPanel()DrawerPanelincrement(int increment)The increment amount for keyboard drawer resizing, in pixels.DrawerPanelmaxSize(String maxSize)The maximum size of a drawer, in either pixels or percentage.DrawerPanelminSize(String minSize)The minimum size of a drawer, in either pixels or percentage.DrawerPanelnoBorder()Same as noBorder(true)DrawerPanelnoBorder(boolean noBorder)Adds/removes modifier(noBorder)DrawerPanelonResize(ResizeHandler<DrawerPanel> resizeHandler)DrawerPanelresizable()Makes this drawer panel resizable.DrawerPanelthat()DrawerPanelwidths(Breakpoints<DrawerPanelWidth> widths)Width for drawer panel at various breakpoints.-
Methods inherited from class org.patternfly.component.SubComponent
element
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAll
-
-
-
-
Method Detail
-
drawerPanel
public static DrawerPanel drawerPanel()
-
attach
public void attach(MutationRecord mutationRecord)
- Specified by:
attachin interfaceAttachable
-
detach
public void detach(MutationRecord mutationRecord)
- Specified by:
detachin interfaceAttachable
-
addHead
public DrawerPanel addHead(DrawerPanelHead head)
-
addBody
public DrawerPanel addBody(DrawerPanelBody body)
-
defaultSize
public DrawerPanel defaultSize(String defaultSize)
The starting size of a resizable drawer, in either pixels or percentage.
-
minSize
public DrawerPanel minSize(String minSize)
The minimum size of a drawer, in either pixels or percentage.
-
maxSize
public DrawerPanel maxSize(String maxSize)
The maximum size of a drawer, in either pixels or percentage.
-
color
public DrawerPanel color(DrawerColor color)
-
noBorder
public DrawerPanel noBorder()
Same as noBorder(true)
-
noBorder
public DrawerPanel noBorder(boolean noBorder)
Adds/removes modifier(noBorder)
-
resizable
public DrawerPanel resizable()
Makes this drawer panel resizable. Unlike other flags, this can only be turned on, but not off.
-
increment
public DrawerPanel increment(int increment)
The increment amount for keyboard drawer resizing, in pixels.
-
widths
public DrawerPanel widths(Breakpoints<DrawerPanelWidth> widths)
Width for drawer panel at various breakpoints. Overridden by resizable drawerminSize(String)anddefaultSize(String).
-
that
public DrawerPanel that()
- Specified by:
thatin interfaceTypedBuilder<HTMLDivElement,DrawerPanel>
-
ariaResizeLabel
public DrawerPanel ariaResizeLabel(String ariaResizeLabel)
-
onResize
public DrawerPanel onResize(ResizeHandler<DrawerPanel> resizeHandler)
-
currentWidth
public double currentWidth()
-
-