Class TableToolBarProperties<V>

java.lang.Object
com.amalgamasimulation.desktop.ui.editor.sections.descriptors.TableToolBarProperties<V>
Type Parameters:
V - the type of elements managed by the table toolbar
Direct Known Subclasses:
EmfTableToolBarProperties

public class TableToolBarProperties<V> extends Object
A builder class for configuring toolbar properties associated with table controls. Provides methods to add various toolbar items for table operations including create, remove, copy, move, refresh, and custom actions. Note: This class is not intended to be used directly by end users. It serves as a configuration class for internal framework components that manage table toolbar functionality.
Author:
Ionov Ivan
  • Field Details

    • toolItems

      protected List<ToolItemProperties<?>> toolItems
    • showTextAndIcon

      protected boolean showTextAndIcon
  • Constructor Details

    • TableToolBarProperties

      public TableToolBarProperties()
  • Method Details

    • isExistToolBar

      public boolean isExistToolBar()
      Checks if the toolbar contains any tool items.
      Returns:
      true if the toolbar has at least one tool item, false otherwise
    • addCreateElementProp

      public CreateElementToolItemProperties<V> addCreateElementProp()
      Adds a create element tool item to the toolbar.
      Returns:
      a CreateElementToolItemProperties instance for configuration
    • addRemoveElementProp

      public RemoveElementToolItemProperties<V> addRemoveElementProp()
      Adds a remove element tool item to the toolbar.
      Returns:
      a RemoveElementToolItemProperties instance for configuration
    • addCopyElementProp

      public CopyElementToolItemProperties<V> addCopyElementProp()
      Adds a copy element tool item to the toolbar.
      Returns:
      a CopyElementToolItemProperties instance for configuration
    • addMoveUpElementProp

      public MoveUpElementToolItemProperties<V> addMoveUpElementProp()
      Adds a move element up tool item to the toolbar.
      Returns:
      a MoveUpElementToolItemProperties instance for configuration
    • addMoveDownElementProp

      public MoveDownElementToolItemProperties<V> addMoveDownElementProp()
      Adds a move element down tool item to the toolbar.
      Returns:
      a MoveDownElementToolItemProperties instance for configuration
    • addRefreshProp

      public RefreshToolItemProperties<V> addRefreshProp()
      Adds a refresh tool item to the toolbar.
      Returns:
      a RefreshToolItemProperties instance for configuration
    • addSelectElementsFromTableProp

      public void addSelectElementsFromTableProp(SelectElementsFromTableToolItemProperties<V> selectElementsFromTableProp)
      Adds a select elements from table tool item to the toolbar.
      Parameters:
      selectElementsFromTableProp - the pre-configured SelectElementsFromTableToolItemProperties instance
    • addSelectObjectsFromTableProp

      public void addSelectObjectsFromTableProp(SelectObjectsFromTableToolItemProperties<V,?> selectObjectsFromTableProp)
      Adds a select objects from table tool item to the toolbar.
      Parameters:
      selectObjectsFromTableProp - the pre-configured SelectObjectsFromTableToolItemProperties instance
    • addCustomToolItem

      public void addCustomToolItem(ToolItemProperties<?> customToolItems)
      Adds a custom tool item to the toolbar.
      Parameters:
      customToolItems - the pre-configured TableCustomToolItemProperties instance
    • getToolItems

      public List<ToolItemProperties<?>> getToolItems()
      Returns the list of all tool item properties configured for this toolbar.
      Returns:
      a List of ToolItemProperties instances
    • isShowTextAndIcon

      public boolean isShowTextAndIcon()
    • showTextAndIcon

      public void showTextAndIcon(boolean showTextAndIcon)