public class DrawerImpl extends CssLayoutImpl implements Drawer, org.springframework.beans.factory.InitializingBean
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
HasContextHelp.ContextHelpIconClickEvent
LayoutClickNotifier.LayoutClickEvent
Modifier and Type | Field and Description |
---|---|
protected boolean |
collapsed |
protected static java.lang.String |
COLLAPSED_SYLENAME |
protected static java.lang.String |
DRAWER_STYLENAME |
protected static java.lang.String |
EXPAND_ON_HOVER_SYLENAME |
protected boolean |
expandOnHover |
layoutClickRegistration, ownComponents, shortcuts
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Constructor and Description |
---|
DrawerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
collapse()
Collapses the drawer.
|
void |
expand()
Expands the drawer.
|
protected void |
initComponent(com.vaadin.ui.CssLayout component) |
boolean |
isCollapsed() |
boolean |
isExpandOnHover() |
void |
setExpandOnHover(boolean expandOnHover)
Sets a mode when drawer is expanded on hover.
|
void |
toggle()
Toggles the drawer.
|
createComponent, isRequiredIndicatorVisible, setRequiredIndicatorVisible
add, add, addLayoutClickListener, addShortcutAction, attached, detached, findChildComponent, getComponent, getComponent, getComponents, getDescription, getOwnComponent, getOwnComponents, getOwnComponentsStream, indexOf, internalRemoveLayoutClickListener, remove, removeAll, removeShortcutAction, setDescription, setFrame
addAttachListener, addDetachListener, addStyleName, assignDebugId, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescriptionAsHtml, setEnabled, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setParent, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, getComponent, getComponentNN, indexOf
add, add, remove, remove, removeAll
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
focusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStream
getFrame, setFrame
getIcon, setIcon, setIconFromSet
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
addLayoutClickListener
addShortcutAction, removeShortcutAction
isCaptionAsHtml, setCaptionAsHtml
getCaption, setCaption
getDescription, setDescription
isDescriptionAsHtml, setDescriptionAsHtml
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
protected static final java.lang.String DRAWER_STYLENAME
protected static final java.lang.String COLLAPSED_SYLENAME
protected static final java.lang.String EXPAND_ON_HOVER_SYLENAME
protected boolean collapsed
protected boolean expandOnHover
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
protected void initComponent(com.vaadin.ui.CssLayout component)
public void collapse()
Drawer
public void expand()
Drawer
public boolean isExpandOnHover()
isExpandOnHover
in interface Drawer
public void setExpandOnHover(boolean expandOnHover)
Drawer
false
by default.setExpandOnHover
in interface Drawer
expandOnHover
- a boolean value specifying if drawer should be expanded on hover.public void toggle()
Drawer
public boolean isCollapsed()
isCollapsed
in interface Drawer