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.WrapperHasContextHelp.ContextHelpIconClickEventLayoutClickNotifier.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, shortcutsalignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parentAUTO_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, setRequiredIndicatorVisibleadd, add, addLayoutClickListener, addShortcutAction, attached, detached, findChildComponent, getComponent, getComponent, getComponents, getDescription, getOwnComponent, getOwnComponents, getOwnComponentsStream, indexOf, internalRemoveLayoutClickListener, remove, removeAll, removeShortcutAction, setDescription, setFrameaddAttachListener, 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, withUnwrappedCompositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, getComponent, getComponentNN, indexOfadd, add, remove, remove, removeAlladdStyleName, 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, withUnwrappedCompositionfocusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStreamgetFrame, setFramegetIcon, setIcon, setIconFromSetgetContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledaddLayoutClickListeneraddShortcutAction, removeShortcutActionisCaptionAsHtml, setCaptionAsHtmlgetCaption, setCaptiongetDescription, setDescriptionisDescriptionAsHtml, setDescriptionAsHtmlisHtmlSanitizerEnabled, setHtmlSanitizerEnabledprotected 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.InitializingBeanprotected void initComponent(com.vaadin.ui.CssLayout component)
public void collapse()
Drawerpublic void expand()
Drawerpublic boolean isExpandOnHover()
isExpandOnHover in interface Drawerpublic void setExpandOnHover(boolean expandOnHover)
Drawerfalse by default.setExpandOnHover in interface DrawerexpandOnHover - a boolean value specifying if drawer should be expanded on hover.public void toggle()
Drawerpublic boolean isCollapsed()
isCollapsed in interface Drawer