Module org.autogui
Package org.autogui.swing
Class GuiSwingViewCollectionTable.TableSelectionSourceForIndices
java.lang.Object
org.autogui.swing.GuiSwingViewCollectionTable.TableSelectionSourceForIndices
- All Implemented Interfaces:
GuiSwingTableColumnSet.TableSelectionSource
- Enclosing class:
GuiSwingViewCollectionTable
public static class GuiSwingViewCollectionTable.TableSelectionSourceForIndices
extends Object
implements GuiSwingTableColumnSet.TableSelectionSource
a table source for obtaining indices instead of row items.
This can be supplied for
GuiSwingTableColumnSetDefault.TableSelectionListAction.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTableSelectionSourceForIndices(GuiSwingViewCollectionTable.CollectionTable table, boolean rowAndColumns) -
Method Summary
Modifier and TypeMethodDescriptionList<?> booleanvoidselectionActionFinished(boolean autoSelection, GuiSwingTableColumnSet.TableSelectionChange change) the finisher for the action: the table implements the method in order to refresh selected rows.voidthe preparation for the action: the table stops editing
-
Field Details
-
table
-
cellTargets
-
rowAndColumns
protected boolean rowAndColumns
-
-
Constructor Details
-
TableSelectionSourceForIndices
public TableSelectionSourceForIndices(GuiSwingViewCollectionTable.CollectionTable table, boolean rowAndColumns)
-
-
Method Details
-
getTargetName
- Specified by:
getTargetNamein interfaceGuiSwingTableColumnSet.TableSelectionSource
-
isSelectionEmpty
public boolean isSelectionEmpty()- Specified by:
isSelectionEmptyin interfaceGuiSwingTableColumnSet.TableSelectionSource
-
getSelectedItems
- Specified by:
getSelectedItemsin interfaceGuiSwingTableColumnSet.TableSelectionSource
-
selectionActionFinished
public void selectionActionFinished(boolean autoSelection, GuiSwingTableColumnSet.TableSelectionChange change) Description copied from interface:GuiSwingTableColumnSet.TableSelectionSourcethe finisher for the action: the table implements the method in order to refresh selected rows. However, naive executions of the action by list selection changes will cause infinite loop. To avoid this, an impl. of the method needs to check the flag and avoid handling list selection events caused by the method.- Specified by:
selectionActionFinishedin interfaceGuiSwingTableColumnSet.TableSelectionSource- Parameters:
autoSelection- true if the action is automatically executed by selection changeschange- specification of selection changes
-
selectionActionPrepare
public void selectionActionPrepare()Description copied from interface:GuiSwingTableColumnSet.TableSelectionSourcethe preparation for the action: the table stops editing- Specified by:
selectionActionPreparein interfaceGuiSwingTableColumnSet.TableSelectionSource
-