|
VLab Common 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.psnc.vlab.util.gui.helper.TableHelper
public abstract class TableHelper
TableHelper
class - set of utility classes for JTable.
Constructor Summary | |
---|---|
TableHelper()
|
Method Summary | |
---|---|
static int |
getModelRowIndex(javax.swing.JTable table,
int rowIndex)
Maps the index of the row in terms of the view to the underlying TableModel. |
static int |
getModelSelectedRow(javax.swing.JTable table)
Maps the index of the row in terms of the view to the underlying TableModel. |
static int[] |
getModelSelectedRows(javax.swing.JTable table)
Maps the indexes of rows in terms of the view to the underlying TableModel. |
static int |
getViewRowIndex(javax.swing.JTable table,
int rowIndex)
Maps the index of the row in terms of the TableModel to the view. |
static int[] |
getViewSelectedRows(javax.swing.JTable table)
Maps the indexes of rows in terms of the model to view. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableHelper()
Method Detail |
---|
public static int getModelSelectedRow(javax.swing.JTable table)
table
- instance of JTable
public static int[] getModelSelectedRows(javax.swing.JTable table)
table
- instance of JTable
public static int[] getViewSelectedRows(javax.swing.JTable table)
table
- instance of JTable
public static int getModelRowIndex(javax.swing.JTable table, int rowIndex)
table
- instance of JTable
rowIndex
- the index of the row in terms of the view
public static int getViewRowIndex(javax.swing.JTable table, int rowIndex)
table
- instance of JTable
rowIndex
- the index of the row in terms of the model
|
VLab Common 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |