Interface ActionsHolder

All Superinterfaces:
Component, HasSubParts
All Known Subinterfaces:
DataGrid<E>, DialogWindow, EntityComboBox<V>, EntityPicker<V>, EntitySuggestionField<V>, Filter, Fragment, FragmentImplementation, Frame, GroupTable<E>, ListComponent<E>, PopupButton, RootWindow, SecuredActionsHolder, Table<E>, TabWindow, TagPicker<V>, Tree<E>, TreeDataGrid<E>, TreeTable<E>, ValuePicker<V>, ValuesPicker<V>, Window, WindowImplementation
All Known Implementing Classes:
AbstractActionsHolderComponent, AbstractDataGrid, AbstractTable, DataGridImpl, DialogWindowImpl, EntityComboBoxImpl, EntityPickerImpl, EntitySuggestionFieldImpl, FilterImpl, FragmentImpl, GroupTableImpl, PopupButtonImpl, RelatedEntitiesImpl, RootWindowImpl, SearchFieldImpl, TableImpl, TabWindowImpl, TagPickerImpl, TreeDataGridImpl, TreeImpl, TreeTableImpl, ValuePickerImpl, ValuesPickerImpl, WindowImpl

public interface ActionsHolder extends Component, HasSubParts
A component containing Actions.
  • Method Details

    • addAction

      void addAction(Action action)
      Add an action to the component
    • addAction

      void addAction(Action action, int index)
      Add an action to the component with index.
    • removeAction

      void removeAction(Action action)
      Remove the action from the component
    • removeAction

      void removeAction(String id)
      Remove the action by its ID. If there is no action with that ID, nothing happens.
    • removeAllActions

      void removeAllActions()
      Remove all actions from the component
    • getActions

      Collection<Action> getActions()
      Returns:
      unmodifiable collection of actions
    • getAction

      @Nullable Action getAction(String id)
      Returns:
      an action by its ID, or null if not found
    • getActionNN

      default Action getActionNN(String id)
      Returns:
      an action by its ID
      Throws:
      IllegalArgumentException - if not found
    • getSubPart

      @Nullable default Object getSubPart(String name)
      Specified by:
      getSubPart in interface HasSubParts