Class JmixSideMenuWidget.MenuItemWidget
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
io.jmix.ui.widget.client.verticalmenu.JmixSideMenuWidget.MenuItemWidget
- All Implemented Interfaces:
com.google.gwt.event.dom.client.ClickHandler
,com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.shared.EventHandler
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.IsWidget
- Enclosing class:
- JmixSideMenuWidget
public static class JmixSideMenuWidget.MenuItemWidget
extends com.google.gwt.user.client.ui.Widget
implements com.google.gwt.event.dom.client.ClickHandler
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.google.gwt.dom.client.SpanElement
protected String
protected com.google.gwt.dom.client.SpanElement
protected String
protected boolean
protected com.vaadin.client.ui.Icon
protected String
protected JmixSideMenuWidget
protected boolean
protected JmixSideMenuWidget.MenuContainerWidget
protected com.google.gwt.dom.client.Element
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
ConstructorDescriptionMenuItemWidget
(JmixSideMenuWidget menu, String id, com.vaadin.client.ui.Icon icon, String styleName, String caption, boolean captionAsHtml) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
collapse()
protected com.google.gwt.dom.client.SpanElement
protected com.google.gwt.dom.client.SpanElement
createCaptionElement
(String caption, boolean captionAsHtml) protected com.google.gwt.dom.client.Element
createThumbnailElement
(com.vaadin.client.ui.Icon icon, String caption) void
expand()
void
getId()
protected boolean
void
onClick
(com.google.gwt.event.dom.client.ClickEvent event) void
setBadgeText
(String badgeText) void
setDescription
(String description) void
setFocused
(boolean focused) void
setJTestId
(String jTestId) void
setSelected
(boolean selected) void
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Field Details
-
id
-
icon
protected com.vaadin.client.ui.Icon icon -
description
-
focused
protected boolean focused -
selected
protected boolean selected -
badgeElement
protected com.google.gwt.dom.client.SpanElement badgeElement -
thumbnailElement
protected com.google.gwt.dom.client.Element thumbnailElement -
subMenu
-
Constructor Details
-
Method Details
-
addThumbnail
protected void addThumbnail() -
isRootItem
protected boolean isRootItem() -
createThumbnailElement
protected com.google.gwt.dom.client.Element createThumbnailElement(com.vaadin.client.ui.Icon icon, String caption) -
createCaptionElement
protected com.google.gwt.dom.client.SpanElement createCaptionElement(String caption, boolean captionAsHtml) -
createBadgeElement
protected com.google.gwt.dom.client.SpanElement createBadgeElement() -
setFocused
public void setFocused(boolean focused) -
setSelected
public void setSelected(boolean selected) -
getSubMenu
-
setBadgeText
-
getDescription
-
setDescription
-
setJTestId
-
getId
-
onClick
public void onClick(com.google.gwt.event.dom.client.ClickEvent event) - Specified by:
onClick
in interfacecom.google.gwt.event.dom.client.ClickHandler
-
expand
public void expand() -
collapse
public void collapse() -
expandOrTrigger
public void expandOrTrigger()
-