Package io.jmix.ui.widget
Class JmixSideMenu.MenuItem
java.lang.Object
io.jmix.ui.widget.JmixSideMenu.MenuItem
- Direct Known Subclasses:
SideMenuImpl.MenuItemWrapper
- Enclosing class:
- JmixSideMenu
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected boolean
protected List<JmixSideMenu.MenuItem>
protected Consumer<JmixSideMenu.MenuItemTriggeredEvent>
protected String
protected boolean
protected com.vaadin.server.Resource
protected String
protected JmixSideMenu.MenuItem
protected PropertyChangeSupport
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChildItem
(JmixSideMenu.MenuItem menuItem) void
addChildItem
(JmixSideMenu.MenuItem menuItem, int index) void
void
addStyleName
(String style) com.vaadin.server.Resource
getIcon()
boolean
boolean
boolean
boolean
void
removeChildItem
(int index) void
removeChildItem
(JmixSideMenu.MenuItem menuItem) void
void
removeStyleName
(String style) void
setBadgeText
(String badgeText) void
setCaption
(String caption) void
setCaptionAsHtml
(boolean captionAsHtml) void
void
setDescription
(String description) void
setExpanded
(boolean expanded) void
setIcon
(com.vaadin.server.Resource icon) void
setJTestId
(String jTestId) void
setParent
(JmixSideMenu.MenuItem parent) void
setStyleName
(String style) void
setVisible
(boolean visible)
-
Field Details
-
description
-
icon
protected com.vaadin.server.Resource icon -
visible
protected boolean visible -
expanded
protected boolean expanded -
badgeText
-
jTestId
-
styles
-
command
-
children
-
parent
-
propertyChangeSupport
-
Constructor Details
-
MenuItem
public MenuItem() -
MenuItem
-
MenuItem
-
MenuItem
public MenuItem(String caption, @Nullable com.vaadin.server.Resource icon, @Nullable Consumer<JmixSideMenu.MenuItemTriggeredEvent> command)
-
-
Method Details
-
getCaption
-
setCaption
-
getDescription
-
setDescription
-
getIcon
@Nullable public com.vaadin.server.Resource getIcon() -
setIcon
public void setIcon(@Nullable com.vaadin.server.Resource icon) -
isCaptionAsHtml
public boolean isCaptionAsHtml() -
setCaptionAsHtml
public void setCaptionAsHtml(boolean captionAsHtml) -
isVisible
public boolean isVisible() -
setVisible
public void setVisible(boolean visible) -
isExpanded
public boolean isExpanded() -
setExpanded
public void setExpanded(boolean expanded) -
getStyleName
-
setStyleName
-
getJTestId
-
setJTestId
-
getBadgeText
-
setBadgeText
-
getCommand
-
setCommand
-
addChildItem
-
addChildItem
-
removeChildItem
-
removeChildItem
public void removeChildItem(int index) -
getChildren
-
hasChildren
public boolean hasChildren() -
getParent
-
setParent
-
addPropertyChangeListener
-
removePropertyChangeListener
-
removeStyleName
-
addStyleName
-