public interface ActionsHolder extends Component, HasSubParts
Action
s.Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProvider, Component.Wrapper
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELS
Modifier and Type | Method and Description |
---|---|
void |
addAction(Action action)
Add an action to the component
|
void |
addAction(Action action,
int index)
Add an action to the component with index.
|
Action |
getAction(java.lang.String id) |
default Action |
getActionNN(java.lang.String id) |
java.util.Collection<Action> |
getActions() |
default java.lang.Object |
getSubPart(java.lang.String name) |
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
|
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, getWidthUnits, isEnabled, isEnabledItself, isEnabledRecursive, isResponsive, isVisible, isVisibleItself, isVisibleRecursive, removeStyleName, requestFocus, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
void addAction(Action action)
void addAction(Action action, int index)
void removeAction(@Nullable Action action)
void removeAction(@Nullable java.lang.String id)
void removeAllActions()
java.util.Collection<Action> getActions()
@Nullable Action getAction(java.lang.String id)
@Nonnull default Action getActionNN(java.lang.String id)
java.lang.IllegalArgumentException
- if not found@Nullable default java.lang.Object getSubPart(java.lang.String name)
getSubPart
in interface HasSubParts