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

    Fields
    Modifier and Type
    Field
    Description
    protected 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 boolean
     
     
    protected com.google.gwt.dom.client.Element
     

    Fields inherited from class com.google.gwt.user.client.ui.UIObject

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    MenuItemWidget(JmixSideMenuWidget menu, String id, com.vaadin.client.ui.Icon icon, String styleName, String caption, boolean captionAsHtml)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    void
     
    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
     
    void
     
     
     
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • id

      protected String id
    • icon

      protected com.vaadin.client.ui.Icon icon
    • caption

      protected String caption
    • description

      protected String description
    • focused

      protected boolean focused
    • selected

      protected boolean selected
    • badgeElement

      protected com.google.gwt.dom.client.SpanElement badgeElement
    • captionElement

      protected com.google.gwt.dom.client.SpanElement captionElement
    • thumbnailElement

      protected com.google.gwt.dom.client.Element thumbnailElement
  • 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

    • setSubMenu

      public void setSubMenu(JmixSideMenuWidget.MenuContainerWidget subMenu)
    • setBadgeText

      public void setBadgeText(String badgeText)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • setJTestId

      public void setJTestId(@Nullable String jTestId)
    • getId

      public String getId()
    • onClick

      public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
      Specified by:
      onClick in interface com.google.gwt.event.dom.client.ClickHandler
    • expand

      public void expand()
    • collapse

      public void collapse()
    • expandOrTrigger

      public void expandOrTrigger()