public class CubaSideMenu
extends com.vaadin.ui.AbstractComponent
implements com.vaadin.ui.Component.Focusable
Modifier and Type | Class and Description |
---|---|
static class |
CubaSideMenu.MenuItem |
static class |
CubaSideMenu.MenuItemTriggeredEvent |
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
Modifier and Type | Field and Description |
---|---|
protected java.util.List<CubaSideMenu.MenuItem> |
badgeUpdates |
protected java.util.function.Consumer<CubaSideMenu.MenuItem> |
beforeMenuItemTriggeredHandler |
protected java.beans.PropertyChangeListener |
itemsPropertyChangeListener |
protected static java.lang.String |
MENU_ITEM_BADGE_TEXT |
protected static java.lang.String |
MENU_ITEM_CAPTION |
protected static java.lang.String |
MENU_ITEM_CAPTION_AS_HTML |
protected static java.lang.String |
MENU_ITEM_CHILDREN |
protected static java.lang.String |
MENU_ITEM_COMMAND |
protected static java.lang.String |
MENU_ITEM_CUBA_ID |
protected static java.lang.String |
MENU_ITEM_DESCRIPTION |
protected static java.lang.String |
MENU_ITEM_ENABLED |
protected static java.lang.String |
MENU_ITEM_EXPANDED |
protected static java.lang.String |
MENU_ITEM_ICON |
protected static java.lang.String |
MENU_ITEM_ID |
protected static java.lang.String |
MENU_ITEM_STYLE_NAME |
protected static java.lang.String |
MENU_ITEM_VISIBLE |
protected java.util.Set<java.lang.String> |
menuIconResourceKeys |
protected com.vaadin.server.KeyMapper<com.vaadin.server.Resource> |
menuIconsKeyMapper |
protected com.vaadin.server.KeyMapper<CubaSideMenu.MenuItem> |
menuItemIdMapper |
protected java.util.List<CubaSideMenu.MenuItem> |
menuItems |
protected boolean |
selectedChanged |
protected CubaSideMenu.MenuItem |
selectedItem |
protected boolean |
structureChanged |
Constructor and Description |
---|
CubaSideMenu() |
Modifier and Type | Method and Description |
---|---|
void |
addMenuItem(CubaSideMenu.MenuItem menuItem) |
void |
addMenuItem(CubaSideMenu.MenuItem menuItem,
int index) |
protected void |
addPropertyChangeListenerRecursive(CubaSideMenu.MenuItem menuItem,
java.beans.PropertyChangeListener itemsPropertyChangeListener) |
void |
beforeClientResponse(boolean initial) |
void |
focus() |
java.util.function.Consumer<CubaSideMenu.MenuItem> |
getBeforeMenuItemTriggeredHandler() |
java.util.List<CubaSideMenu.MenuItem> |
getMenuItems() |
CubaSideMenu.MenuItem |
getSelectedItem() |
protected com.haulmont.cuba.web.widgets.client.verticalmenu.CubaSideMenuState |
getState() |
protected com.haulmont.cuba.web.widgets.client.verticalmenu.CubaSideMenuState |
getState(boolean markAsDirty) |
int |
getTabIndex() |
boolean |
hasMenuItems() |
boolean |
isSelectOnClick() |
boolean |
isShowSingleExpandedMenu() |
protected void |
markMenuStructureAsDirty() |
protected void |
menuItemPropertyChanged(java.beans.PropertyChangeEvent event) |
void |
removeMenuItem(CubaSideMenu.MenuItem menuItem) |
void |
removeMenuItem(int index) |
protected void |
removePropertyChangeListenerRecursive(CubaSideMenu.MenuItem menuItem,
java.beans.PropertyChangeListener itemsPropertyChangeListener) |
void |
setBeforeMenuItemTriggeredHandler(java.util.function.Consumer<CubaSideMenu.MenuItem> beforeMenuItemTriggeredHandler) |
void |
setSelectedItem(CubaSideMenu.MenuItem selectedItem) |
void |
setSelectOnClick(boolean selectOnClick) |
void |
setShowSingleExpandedMenu(boolean singleExpandedMenu) |
void |
setTabIndex(int tabIndex) |
protected elemental.json.JsonArray |
toJson(java.util.List<CubaSideMenu.MenuItem> menuItems) |
addContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, attach, detach, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, getActionManager, getCaption, getComponentError, getComponentErrorProvider, getContextHelpText, getCubaId, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getRequiredError, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isContextHelpTextHtmlEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, readDesign, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setComponentErrorProvider, setContextHelpText, setContextHelpTextHtmlEnabled, setCubaId, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredError, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthFull, setWidthUndefined, writeDesign
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, addStyleNames, attach, getCaption, getCubaId, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setCubaId, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
protected static final java.lang.String MENU_ITEM_ID
protected static final java.lang.String MENU_ITEM_CAPTION
protected static final java.lang.String MENU_ITEM_DESCRIPTION
protected static final java.lang.String MENU_ITEM_STYLE_NAME
protected static final java.lang.String MENU_ITEM_VISIBLE
protected static final java.lang.String MENU_ITEM_ENABLED
protected static final java.lang.String MENU_ITEM_EXPANDED
protected static final java.lang.String MENU_ITEM_CAPTION_AS_HTML
protected static final java.lang.String MENU_ITEM_CUBA_ID
protected static final java.lang.String MENU_ITEM_ICON
protected static final java.lang.String MENU_ITEM_BADGE_TEXT
protected static final java.lang.String MENU_ITEM_CHILDREN
protected static final java.lang.String MENU_ITEM_COMMAND
protected java.util.List<CubaSideMenu.MenuItem> menuItems
protected CubaSideMenu.MenuItem selectedItem
protected boolean structureChanged
protected boolean selectedChanged
protected com.vaadin.server.KeyMapper<CubaSideMenu.MenuItem> menuItemIdMapper
protected com.vaadin.server.KeyMapper<com.vaadin.server.Resource> menuIconsKeyMapper
protected java.util.Set<java.lang.String> menuIconResourceKeys
protected java.util.List<CubaSideMenu.MenuItem> badgeUpdates
protected java.beans.PropertyChangeListener itemsPropertyChangeListener
protected java.util.function.Consumer<CubaSideMenu.MenuItem> beforeMenuItemTriggeredHandler
public java.util.function.Consumer<CubaSideMenu.MenuItem> getBeforeMenuItemTriggeredHandler()
public void setBeforeMenuItemTriggeredHandler(java.util.function.Consumer<CubaSideMenu.MenuItem> beforeMenuItemTriggeredHandler)
protected com.haulmont.cuba.web.widgets.client.verticalmenu.CubaSideMenuState getState()
getState
in class com.vaadin.ui.AbstractComponent
protected com.haulmont.cuba.web.widgets.client.verticalmenu.CubaSideMenuState getState(boolean markAsDirty)
getState
in class com.vaadin.ui.AbstractComponent
public void beforeClientResponse(boolean initial)
beforeClientResponse
in interface com.vaadin.server.ClientConnector
beforeClientResponse
in class com.vaadin.ui.AbstractComponent
public void focus()
focus
in interface com.vaadin.ui.Component.Focusable
focus
in class com.vaadin.ui.AbstractComponent
public int getTabIndex()
getTabIndex
in interface com.vaadin.ui.Component.Focusable
public void setTabIndex(int tabIndex)
setTabIndex
in interface com.vaadin.ui.Component.Focusable
public boolean isSelectOnClick()
public void setSelectOnClick(boolean selectOnClick)
public void setShowSingleExpandedMenu(boolean singleExpandedMenu)
public boolean isShowSingleExpandedMenu()
public CubaSideMenu.MenuItem getSelectedItem()
public void setSelectedItem(CubaSideMenu.MenuItem selectedItem)
public void addMenuItem(CubaSideMenu.MenuItem menuItem)
public void addMenuItem(CubaSideMenu.MenuItem menuItem, int index)
public void removeMenuItem(CubaSideMenu.MenuItem menuItem)
public void removeMenuItem(int index)
public java.util.List<CubaSideMenu.MenuItem> getMenuItems()
public boolean hasMenuItems()
protected elemental.json.JsonArray toJson(java.util.List<CubaSideMenu.MenuItem> menuItems)
protected void menuItemPropertyChanged(java.beans.PropertyChangeEvent event)
protected void markMenuStructureAsDirty()
protected void addPropertyChangeListenerRecursive(CubaSideMenu.MenuItem menuItem, java.beans.PropertyChangeListener itemsPropertyChangeListener)
protected void removePropertyChangeListenerRecursive(CubaSideMenu.MenuItem menuItem, java.beans.PropertyChangeListener itemsPropertyChangeListener)