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
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a copy element tool item to the toolbar.Adds a create element tool item to the toolbar.voidaddCustomToolItem(ToolItemProperties<?> customToolItems) Adds a custom tool item to the toolbar.Adds a move element down tool item to the toolbar.Adds a move element up tool item to the toolbar.Adds a refresh tool item to the toolbar.Adds a remove element tool item to the toolbar.voidaddSelectFromTableProp(SelectElementsFromTableToolItemProperties<V> selectFromTableProp) Adds a select elements from table tool item to the toolbar.Returns the list of all tool item properties configured for this toolbar.booleanChecks if the toolbar contains any tool items.booleanvoidsetShowTextAndIcon(boolean showTextAndIcon)
-
Field Details
-
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
Adds a create element tool item to the toolbar.- Returns:
- a CreateElementToolItemProperties instance for configuration
-
addRemoveElemProp
Adds a remove element tool item to the toolbar.- Returns:
- a RemoveElementToolItemProperties instance for configuration
-
addCopyElemProp
Adds a copy element tool item to the toolbar.- Returns:
- a CopyElementToolItemProperties instance for configuration
-
addMoveUpElemProp
Adds a move element up tool item to the toolbar.- Returns:
- a MoveUpElementToolItemProperties instance for configuration
-
addMoveDownElemProp
Adds a move element down tool item to the toolbar.- Returns:
- a MoveDownElementToolItemProperties instance for configuration
-
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
Adds a custom tool item to the toolbar.- Parameters:
customToolItems- the pre-configured TableCustomToolItemProperties instance
-
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)
-