public abstract class AbstractActionsHolderComponent<T extends com.vaadin.ui.AbstractComponent & com.vaadin.event.Action.ShortcutNotifier> extends AbstractComponent<T> implements SecuredActionsHolder
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
HasContextHelp.ContextHelpIconClickEvent
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<Action,JmixButton> |
actionButtons |
protected java.util.List<Action> |
actionList |
protected java.util.function.Consumer<java.beans.PropertyChangeEvent> |
actionPropertyChangeListener |
protected ActionsPermissions |
actionsPermissions |
protected com.vaadin.ui.VerticalLayout |
contextMenuPopup |
protected ShortcutsDelegate<com.vaadin.event.ShortcutListener> |
shortcutsDelegate |
protected boolean |
showIconsForPopupMenuActions |
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Modifier | Constructor and Description |
---|---|
protected |
AbstractActionsHolderComponent() |
Modifier and Type | Method and Description |
---|---|
protected void |
actionPropertyChanged(java.beans.PropertyChangeEvent evt) |
void |
addAction(Action action)
Add an action to the component
|
void |
addAction(Action action,
int index)
Add an action to the component with index.
|
protected void |
attachAction(Action action) |
protected void |
beforeContextMenuButtonHandlerPerformed() |
protected abstract JmixButton |
createContextMenuButton() |
protected com.vaadin.ui.VerticalLayout |
createContextMenuPopup() |
protected ShortcutsDelegate<com.vaadin.event.ShortcutListener> |
createShortcutsDelegate() |
Action |
getAction(java.lang.String id) |
java.util.Collection<Action> |
getActions() |
ActionsPermissions |
getActionsPermissions() |
protected void |
initContextMenuButton(JmixButton contextMenuButton,
Action action) |
protected void |
initContextMenuPopup(com.vaadin.ui.VerticalLayout contextMenuPopup) |
void |
removeAction(Action action)
Remove the action from the component
|
void |
removeAction(java.lang.String id)
Remove the action by its ID.
|
void |
removeAllActions()
Remove all actions from the component
|
protected void |
setContextMenuButtonAction(JmixButton button,
Action action) |
protected void |
setContextMenuButtonCaption(JmixButton button,
java.lang.String caption,
KeyCombination shortcutCombination) |
protected void |
setContextMenuButtonIcon(JmixButton button,
java.lang.String icon) |
void |
setThemeConstantsManager(ThemeConstantsManager themeConstantsManager) |
addAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, 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, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setParent, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getActionNN, getSubPart
addStyleName, 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, withUnwrappedComposition
protected java.util.List<Action> actionList
protected java.util.Map<Action,JmixButton> actionButtons
protected com.vaadin.ui.VerticalLayout contextMenuPopup
protected ShortcutsDelegate<com.vaadin.event.ShortcutListener> shortcutsDelegate
protected ActionsPermissions actionsPermissions
protected boolean showIconsForPopupMenuActions
protected java.util.function.Consumer<java.beans.PropertyChangeEvent> actionPropertyChangeListener
protected com.vaadin.ui.VerticalLayout createContextMenuPopup()
protected void initContextMenuPopup(com.vaadin.ui.VerticalLayout contextMenuPopup)
protected ShortcutsDelegate<com.vaadin.event.ShortcutListener> createShortcutsDelegate()
protected void actionPropertyChanged(java.beans.PropertyChangeEvent evt)
protected void setContextMenuButtonCaption(JmixButton button, @Nullable java.lang.String caption, @Nullable KeyCombination shortcutCombination)
protected void setContextMenuButtonIcon(JmixButton button, @Nullable java.lang.String icon)
protected void setContextMenuButtonAction(JmixButton button, Action action)
protected void beforeContextMenuButtonHandlerPerformed()
@Autowired public void setThemeConstantsManager(ThemeConstantsManager themeConstantsManager)
public void addAction(Action action)
ActionsHolder
addAction
in interface ActionsHolder
public void addAction(Action action, int index)
ActionsHolder
addAction
in interface ActionsHolder
protected void initContextMenuButton(JmixButton contextMenuButton, Action action)
protected void attachAction(Action action)
protected abstract JmixButton createContextMenuButton()
public void removeAction(Action action)
ActionsHolder
removeAction
in interface ActionsHolder
public void removeAction(java.lang.String id)
ActionsHolder
removeAction
in interface ActionsHolder
public void removeAllActions()
ActionsHolder
removeAllActions
in interface ActionsHolder
public java.util.Collection<Action> getActions()
getActions
in interface ActionsHolder
@Nullable public Action getAction(java.lang.String id)
getAction
in interface ActionsHolder
public ActionsPermissions getActionsPermissions()
getActionsPermissions
in interface SecuredActionsHolder