com.google.gwt.widgetideas.table.client
Enum ScrollTable.ResizePolicy
java.lang.Object
java.lang.Enum<ScrollTable.ResizePolicy>
com.google.gwt.widgetideas.table.client.ScrollTable.ResizePolicy
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ScrollTable.ResizePolicy>
- Enclosing class:
- ScrollTable
public static enum ScrollTable.ResizePolicy
- extends java.lang.Enum<ScrollTable.ResizePolicy>
The resize policies of table cells.
- DISABLED - Columns cannot be resized by the user
- UNCONSTRAINED - Columns shrink and expand independently of each other
- FLOW - As one column expands or shrinks, the columns to the right will
do the opposite, trying to maintain the same size. The user can still
expand the grid if there is no more space to take from the columns on the
right.
- FIXED_WIDTH - As one column expands or shrinks, the columns to the
right will do the opposite, trying to maintain the same size. The width of
the grid will remain constant, ignoring column resizing that would result
in the grid growing in size.
- FILL_WIDTH - Same as FIXED_WIDTH, but the grid will always fill the
available width, even if the widget is resized.
- FILL_WIDTH_DISABLED - The grid will always fill the available width,
but the user cannot manually change column widths.
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
DISABLED
public static final ScrollTable.ResizePolicy DISABLED
UNCONSTRAINED
public static final ScrollTable.ResizePolicy UNCONSTRAINED
FLOW
public static final ScrollTable.ResizePolicy FLOW
FIXED_WIDTH
public static final ScrollTable.ResizePolicy FIXED_WIDTH
FILL_WIDTH
public static final ScrollTable.ResizePolicy FILL_WIDTH
FILL_WIDTH_DISABLED
public static final ScrollTable.ResizePolicy FILL_WIDTH_DISABLED
values
public static final ScrollTable.ResizePolicy[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(ScrollTable.ResizePolicy c : ScrollTable.ResizePolicy.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static ScrollTable.ResizePolicy valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name