public enum TableLayout extends java.lang.Enum<TableLayout>
| Enum Constant and Description |
|---|
FROZEN_RESIZABLE
A table layout that supports frozen headers + frozen columns and
resizable columns.
|
OPTIMIZED
A table layout that strives to be rendered fast.
|
| Modifier and Type | Method and Description |
|---|---|
static TableLayout |
get(TableBean<?> table)
Returns the layout used for the table
|
java.lang.String |
getIdentifier() |
static TableLayout |
getSystemDefault() |
static boolean |
isTableLayoutChangeable(TableBean<?> table)
Returns true if the user is allowed to change the layout
|
static TableLayout |
parse(java.lang.String s)
Safe parse of a string into a
TableLayout value. |
static boolean |
set(TableBean<?> table,
TableLayout layout)
Sets the layout for the given table
|
static void |
setTableLayoutChangeable(TableBean<?> table,
boolean allow)
Sets whether or not the user is allowed to change the layout.
|
java.lang.String |
toString() |
static TableLayout |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TableLayout[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TableLayout FROZEN_RESIZABLE
public static final TableLayout OPTIMIZED
public static TableLayout[] values()
for (TableLayout c : TableLayout.values()) System.out.println(c);
public static TableLayout valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
toString in class java.lang.Enum<TableLayout>public java.lang.String getIdentifier()
public static TableLayout getSystemDefault()
TableLayout.public static TableLayout parse(java.lang.String s)
TableLayout value. If the given
string doesn't match a valid table-layout, the default system table
layout will be returned.s - The string to parseTableLayout (never null).public static TableLayout get(TableBean<?> table)
table - The TableBean to get the layout forTableLayout specified. If none is set, the default
layout will be returned.public static boolean set(TableBean<?> table, TableLayout layout)
table - layout - public static void setTableLayoutChangeable(TableBean<?> table, boolean allow)
table - The TableBeanallow - True for allowCopyright ? Technia AB. All Rights Reserved.