Class TabbedViewsContainerAction<A extends TabbedViewsContainerAction<A>>
java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
io.jmix.flowui.kit.action.BaseAction
io.jmix.flowui.action.ObservableBaseAction<A>
io.jmix.tabbedmode.action.tabsheet.TabbedViewsContainerAction<A>
- Type Parameters:
A- action type
- All Implemented Interfaces:
TargetAction<TabbedViewsContainer<?>>,Action,HasShortcutCombination
- Direct Known Subclasses:
AbstractCloseTabsAction
public abstract class TabbedViewsContainerAction<A extends TabbedViewsContainerAction<A>>
extends ObservableBaseAction<A>
implements TargetAction<TabbedViewsContainer<?>>
Base class for actions that work with
TabbedViewsContainer.-
Field Summary
FieldsFields inherited from class io.jmix.flowui.action.ObservableBaseAction
uiObservationSupportFields 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 TypeMethodDescriptionvoidactionPerform(com.vaadin.flow.component.Component trigger) Executes action logic.protected voidattachListeners(TabbedViewsContainer<?> target) protected voidprotected voiddetachListeners(TabbedViewsContainer<?> target) abstract voidexecute(com.vaadin.flow.component.Component trigger) protected com.vaadin.flow.component.tabs.Tabprotected com.vaadin.flow.component.tabs.TabfindTab(com.vaadin.flow.component.Component trigger) protected voidprotected booleanvoidsetTarget(TabbedViewsContainer<?> target) withIcon(com.vaadin.flow.component.icon.Icon icon) Deprecated, for removal: This API element is subject to removal in a future version.withTarget(TabbedViewsContainer<?> target) Methods inherited from class io.jmix.flowui.action.ObservableBaseAction
getUiObservationSupport, withDescription, withEnabled, withHandler, withIcon, withShortcutCombination, withText, withVariant, withVisibleMethods inherited from class io.jmix.flowui.kit.action.BaseAction
addActionPerformedListener, refreshState, setEnabled, setEnabledInternal, setVisible, setVisibleInternal, withIcon, withTitleMethods inherited from class io.jmix.flowui.kit.action.AbstractAction
addPropertyChangeListener, firePropertyChange, getDescription, getEventBus, getIcon, getIconComponent, getId, getShortcutCombination, getText, getVariant, hasListener, isEnabled, isVisible, setDescription, setIcon, setIconComponent, 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, getIconComponent, getId, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setIconComponent, setText, setVariant, setVisibleMethods inherited from interface io.jmix.flowui.kit.component.HasShortcutCombination
getShortcutCombination, setShortcutCombination
-
Field Details
-
target
-
-
Constructor Details
-
TabbedViewsContainerAction
-
-
Method Details
-
initAction
protected void initAction() -
getTarget
- Specified by:
getTargetin interfaceTargetAction<A extends TabbedViewsContainerAction<A>>
-
setTarget
- Specified by:
setTargetin interfaceTargetAction<A extends TabbedViewsContainerAction<A>>
-
detachListeners
-
attachListeners
-
withTarget
-
withIcon
@Deprecated(since="2.8", forRemoval=true) public A withIcon(@Nullable com.vaadin.flow.component.icon.Icon icon) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:BaseActionSets the icon property value of an action. May be used by components to initialize their appearance.- Overrides:
withIconin classObservableBaseAction<A extends TabbedViewsContainerAction<A>>- Parameters:
icon- icon to set ornullto remove- Returns:
- this object
-
actionPerform
public void actionPerform(com.vaadin.flow.component.Component trigger) Description copied from interface:ActionExecutes action logic.- Specified by:
actionPerformin interfaceAction- Overrides:
actionPerformin classObservableBaseAction<A extends TabbedViewsContainerAction<A>>- Parameters:
trigger-Componentthat triggered this action
-
execute
public abstract void execute(@Nullable com.vaadin.flow.component.Component trigger) -
findTab
@Nullable protected com.vaadin.flow.component.tabs.Tab findTab(@Nullable com.vaadin.flow.component.Component trigger) -
isApplicable
protected boolean isApplicable()- Overrides:
isApplicablein classBaseAction
-
findActionTab
@Nullable protected com.vaadin.flow.component.tabs.Tab findActionTab() -
checkTarget
protected void checkTarget()
-