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.voidaddSelectElementsFromTableProp(SelectElementsFromTableToolItemProperties<V> selectElementsFromTableProp) Adds a select elements from table tool item to the toolbar.voidaddSelectObjectsFromTableProp(SelectObjectsFromTableToolItemProperties<V, ?> selectObjectsFromTableProp) Adds a select objects 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.booleanvoidshowTextAndIcon(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
-
addCreateElementProp
Adds a create element tool item to the toolbar.- Returns:
- a CreateElementToolItemProperties instance for configuration
-
addRemoveElementProp
Adds a remove element tool item to the toolbar.- Returns:
- a RemoveElementToolItemProperties instance for configuration
-
addCopyElementProp
Adds a copy element tool item to the toolbar.- Returns:
- a CopyElementToolItemProperties instance for configuration
-
addMoveUpElementProp
Adds a move element up tool item to the toolbar.- Returns:
- a MoveUpElementToolItemProperties instance for configuration
-
addMoveDownElementProp
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
-
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
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() -
showTextAndIcon
public void showTextAndIcon(boolean showTextAndIcon)
-