| java.lang.Object net.refractions.udig.ui.graphics.TableUtils
TableUtils | public class TableUtils (Code) | | Utility class for dealing with the resizing of table columns.
author: chorner since: 1.0.1 |
Field Summary | |
final public static int | MODE_AUTO Columns are automatically sized, and adjusted to fit into the
TableSettings bounds. | final public static int | MODE_JUMP We start off with MODE_AUTO, but switch to MODE_LAZY when the user
modifies a column size (listener required). | final public static int | MODE_LAZY The columns are left as is unless they exceed the bounds set by the
TableSettings. |
MODE_AUTO | final public static int MODE_AUTO(Code) | | Columns are automatically sized, and adjusted to fit into the
TableSettings bounds.
|
MODE_JUMP | final public static int MODE_JUMP(Code) | | We start off with MODE_AUTO, but switch to MODE_LAZY when the user
modifies a column size (listener required).
|
MODE_LAZY | final public static int MODE_LAZY(Code) | | The columns are left as is unless they exceed the bounds set by the
TableSettings.
|
resizeColumns | public static void resizeColumns(Table table, TableSettings settings, int mode)(Code) | | Given a table, this method resizes the columns as specified. Although
automatic column sizing works well under Linux , it
does not work well under Windows and Mac OSX and hence this method is needed (in
particular, an empty column on the right appears under Win).
Parameters: table - Parameters: settings - the configured settings for the table (column min, max, etc) Parameters: mode - one of TableUtils.MODE_AUTO, TableUtils.MODE_LAZY , TableUtils.MODE_JUMP |
resizeColumns | public static void resizeColumns(Tree treeTable, TableSettings settings, int mode)(Code) | | |
|
|