public class TableRowSelectionHandler extends Object implements RowSelectionHandler
JTable
selection handling.Constructor and Description |
---|
TableRowSelectionHandler(JTable table)
Default implemenation of a
JTable s selection process. |
Modifier and Type | Method and Description |
---|---|
JTable |
getTable() |
void |
selectRow(int row)
A customized selection process for one index to select.
|
void |
selectRowInterval(int row0,
int row1)
A customized selection process for multiple indices to select.
|
void |
selectRows(int... rows)
A customized selection process for multiple indices to select.
|
public JTable getTable()
public void selectRow(int row)
RowSelectionHandler
selectRow
in interface RowSelectionHandler
row
- the rowIndex to select.public void selectRowInterval(int row0, int row1)
RowSelectionHandler
selectRowInterval
in interface RowSelectionHandler
row0
- one end of the interval.row1
- other end of the intervalpublic void selectRows(int... rows)
RowSelectionHandler
selectRows
in interface RowSelectionHandler
rows
- the indices to selectCopyright © 2003–2021 XDEV Software. All rights reserved.