|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.swing.util.TableUtils
public class TableUtils
Utility methods for use with JTable
.
Constructor Summary | |
---|---|
TableUtils()
|
Method Summary | |
---|---|
static int |
autoResizeTable(javax.swing.JTable table,
boolean includeColumnHeaderWidth)
Resizes the given table so that all of its columns have their preferred width. |
static int |
autoResizeTable(javax.swing.JTable table,
boolean includeColumnHeaderWidth,
int columnPadding)
Resizes the given table so that all of its columns have their preferred width. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableUtils()
Method Detail |
---|
public static int autoResizeTable(javax.swing.JTable table, boolean includeColumnHeaderWidth)
table
- the table to resizeincludeColumnHeaderWidth
- a flag that signals whether the width of the column header
shall be considered as well
public static int autoResizeTable(javax.swing.JTable table, boolean includeColumnHeaderWidth, int columnPadding)
table
- the table to resizeincludeColumnHeaderWidth
- a flag that signals whether the width of the column header
shall be considered as wellcolumnPadding
- a padding added to the preferred column width
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |