|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.refractions.udig.ui.graphics.TableUtils
public class TableUtils
Utility class for dealing with the resizing of table columns.
| Field Summary | |
|---|---|
static int |
MODE_AUTO
Columns are automatically sized, and adjusted to fit into the TableSettings bounds. |
static int |
MODE_JUMP
We start off with MODE_AUTO, but switch to MODE_LAZY when the user modifies a column size (listener required). |
static int |
MODE_LAZY
The columns are left as is unless they exceed the bounds set by the TableSettings. |
| Constructor Summary | |
|---|---|
TableUtils()
|
|
| Method Summary | |
|---|---|
static void |
resizeColumns(Table table,
TableSettings settings,
int mode)
Given a table, this method resizes the columns as specified. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MODE_LAZY
public static final int MODE_AUTO
public static final int MODE_JUMP
| Constructor Detail |
|---|
public TableUtils()
| Method Detail |
|---|
public static void resizeColumns(Table table,
TableSettings settings,
int mode)
table - settings - the configured settings for the table (column min, max, etc)mode - one of MODE_AUTO, MODE_LAZY , MODE_JUMP
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||