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
    • addCreateElemProp

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

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

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

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

      public MoveDownElementToolItemProperties<V> addMoveDownElemProp()
      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
    • addSelectFromTableProp

      public void addSelectFromTableProp(SelectElementsFromTableToolItemProperties<V> selectFromTableProp)
      Adds a select elements from table tool item to the toolbar.
      Parameters:
      selectFromTableProp - the pre-configured SelectElementsFromTableToolItemProperties 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()
    • setShowTextAndIcon

      public void setShowTextAndIcon(boolean showTextAndIcon)