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
<?> boolean
void
selectionActionFinished
(boolean autoSelection, GuiSwingTableColumnSet.TableSelectionChange change) the finisher for the action: the table implements the method in order to refresh selected rows.void
the 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:
getTargetName
in interfaceGuiSwingTableColumnSet.TableSelectionSource
-
isSelectionEmpty
public boolean isSelectionEmpty()- Specified by:
isSelectionEmpty
in interfaceGuiSwingTableColumnSet.TableSelectionSource
-
getSelectedItems
- Specified by:
getSelectedItems
in interfaceGuiSwingTableColumnSet.TableSelectionSource
-
selectionActionFinished
public void selectionActionFinished(boolean autoSelection, GuiSwingTableColumnSet.TableSelectionChange change) Description copied from interface:GuiSwingTableColumnSet.TableSelectionSource
the 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:
selectionActionFinished
in 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.TableSelectionSource
the preparation for the action: the table stops editing- Specified by:
selectionActionPrepare
in interfaceGuiSwingTableColumnSet.TableSelectionSource
-