Class CloseOtherTabsAction
java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
io.jmix.flowui.kit.action.BaseAction
io.jmix.tabbedmode.action.tabsheet.TabbedViewsContainerAction<A>
io.jmix.tabbedmode.action.tabsheet.AbstractCloseTabsAction<CloseOtherTabsAction>
io.jmix.tabbedmode.action.tabsheet.CloseOtherTabsAction
- All Implemented Interfaces:
TargetAction<TabbedViewsContainer<?>>,Action,HasShortcutCombination
@ActionType("tabmod_closeOtherTabs")
public class CloseOtherTabsAction
extends AbstractCloseTabsAction<CloseOtherTabsAction>
Closes all tabs except the selected (trigger) tab.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.flow.shared.Registrationstatic final Stringprotected com.vaadin.flow.shared.RegistrationFields inherited from class io.jmix.tabbedmode.action.tabsheet.TabbedViewsContainerAction
targetFields inherited from class io.jmix.flowui.kit.action.BaseAction
enabledExplicitly, visibleExplicitlyFields inherited from class io.jmix.flowui.kit.action.AbstractAction
description, enabled, eventBus, icon, id, shortcutCombination, text, variant, visibleFields inherited from interface io.jmix.flowui.kit.action.Action
PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT_COMBINATION, PROP_TEXT, PROP_VARIANT, PROP_VISIBLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidattachListeners(TabbedViewsContainer<?> target) protected voiddetachListeners(TabbedViewsContainer<?> target) voidexecute(com.vaadin.flow.component.Component trigger) protected booleanprotected voidsetMessages(Messages messages) protected voidsetTabbedModeProperties(TabbedModeProperties properties) Methods inherited from class io.jmix.tabbedmode.action.tabsheet.AbstractCloseTabsAction
asViewStack, closeViewStacks, isApplicableMethods inherited from class io.jmix.tabbedmode.action.tabsheet.TabbedViewsContainerAction
actionPerform, checkTarget, findActionTab, findTab, getTarget, initAction, setTarget, withEnabled, withHandler, withIcon, withIcon, withShortcutCombination, withTarget, withText, withTitle, withVariant, withVisibleMethods inherited from class io.jmix.flowui.kit.action.BaseAction
addActionPerformedListener, refreshState, setEnabled, setEnabledInternal, setVisible, setVisibleInternal, withDescriptionMethods inherited from class io.jmix.flowui.kit.action.AbstractAction
addPropertyChangeListener, firePropertyChange, getDescription, getEventBus, getIcon, getId, getShortcutCombination, getText, getVariant, hasListener, isEnabled, isVisible, setDescription, setIcon, setShortcutCombination, setText, setVariantMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.flowui.kit.action.Action
addPropertyChangeListener, getDescription, getIcon, getId, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setText, setVariant, setVisibleMethods inherited from interface io.jmix.flowui.kit.component.HasShortcutCombination
getShortcutCombination, setShortcutCombination
-
Field Details
-
ID
- See Also:
-
tabsCollectionChangeListener
protected com.vaadin.flow.shared.Registration tabsCollectionChangeListener -
contextMenuTargetListener
protected com.vaadin.flow.shared.Registration contextMenuTargetListener
-
-
Constructor Details
-
CloseOtherTabsAction
public CloseOtherTabsAction() -
CloseOtherTabsAction
-
-
Method Details
-
setMessages
-
setTabbedModeProperties
-
detachListeners
- Overrides:
detachListenersin classTabbedViewsContainerAction<CloseOtherTabsAction>
-
attachListeners
- Overrides:
attachListenersin classTabbedViewsContainerAction<CloseOtherTabsAction>
-
hasCloseableTabs
protected boolean hasCloseableTabs()- Specified by:
hasCloseableTabsin classAbstractCloseTabsAction<CloseOtherTabsAction>
-
execute
public void execute(@Nullable com.vaadin.flow.component.Component trigger) - Specified by:
executein classTabbedViewsContainerAction<CloseOtherTabsAction>
-