|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.javatools.ui.table.TableHelper
public class TableHelper
A class of static helper methods for dealing with JTables.
Constructor Summary | |
---|---|
TableHelper()
|
Method Summary | |
---|---|
static int |
getCellWidth(javax.swing.JTable table,
java.lang.Object value,
int row,
int col)
Return the preferred size of a table cell |
static void |
setVisibleRows(javax.swing.JTable table,
javax.swing.JScrollPane sp,
int rows)
Set the preferred size of the scrollpane to the desired number of visible table rows. |
static void |
sizeColumnToContents(javax.swing.JTable table,
int col,
int sampleSize)
Size one column of a table to be just large enough to fully display its current contents. |
static void |
sizeTableToContents(javax.swing.JTable table)
Size all the columns of a table to be just large enough to fully display their current contents. |
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 void setVisibleRows(javax.swing.JTable table, javax.swing.JScrollPane sp, int rows)
public static void sizeTableToContents(javax.swing.JTable table)
table
- public static void sizeColumnToContents(javax.swing.JTable table, int col, int sampleSize)
table
- public static int getCellWidth(javax.swing.JTable table, java.lang.Object value, int row, int col)
table
- value
- row
- col
-
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |