|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jsh3modtool.gui.imagetable.utils.JTableUtil
public class JTableUtil
Util class for the JTable.
| Nested Class Summary | |
|---|---|
static class |
JTableUtil.Cell
Public internal class for describing a Cell in a Table |
| Constructor Summary | |
|---|---|
JTableUtil()
|
|
| Method Summary | |
|---|---|
static JTableUtil.Cell |
getCell(javax.swing.JTable table,
int x,
int y)
Returns the Cell that spans over the pixel |
static void |
scrollToCenter(javax.swing.JTable table,
int row,
int column)
Scrolls the table (its Viewport) so the indicated cell is in the center Note that the table must be inside a JViewport |
static void |
scrollToCenter(javax.swing.JTable table,
JTableUtil.Cell cell)
Scrolls the table (its Viewport) so the indicated cell is in the center Note that the table must be inside a JViewport |
static void |
scrollToVisible(javax.swing.JTable table,
int row,
int column)
Scrolls the table so the specified cell is visible in the table, Note that the table must be inside a JViewport note this may be anywhere in the visible viewport. |
static void |
scrollToVisible(javax.swing.JTable table,
JTableUtil.Cell cell)
Scrolls the table so the specified cell is visible in the table, Note that the table must be inside a JViewport note this may be anywhere in the visible viewport. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JTableUtil()
| Method Detail |
|---|
public static void scrollToVisible(javax.swing.JTable table,
int row,
int column)
table - the table to scrollrow - the rowcolumn - the column
public static void scrollToVisible(javax.swing.JTable table,
JTableUtil.Cell cell)
table - the table to scrollcell - the cell
public static void scrollToCenter(javax.swing.JTable table,
int row,
int column)
table - the table to scrollrow - the rowcolumn - the column
public static void scrollToCenter(javax.swing.JTable table,
JTableUtil.Cell cell)
table - the table to scrollcell - the cell
public static JTableUtil.Cell getCell(javax.swing.JTable table,
int x,
int y)
table - the tablex - the pixels x valuey - the pixels y value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||