T
- The class of the elements in the table.public abstract class JTableSelector<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected JTable |
table
The JTable that contains the selected elements.
|
Modifier | Constructor and Description |
---|---|
protected |
JTableSelector(JTable table)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected abstract int |
getModelIndex(T element)
Gets the model index of an element.
|
void |
setSelected(T[] elements)
Selects some elements.
|
protected JTable table
protected JTableSelector(JTable table)
table
- The JTable that contains the selected transactions.public void setSelected(T[] elements)
elements
- The elements to select. If some elements do not exist in the table, they are ignored.protected abstract int getModelIndex(T element)
element
- an elementCopyright © 2022. All rights reserved.