Package org.zkoss.stateless.sul
Enum IGrid.Autosort
- java.lang.Object
-
- java.lang.Enum<IGrid.Autosort>
-
- org.zkoss.stateless.sul.IGrid.Autosort
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IGrid.Autosort>
- Enclosing interface:
- IGrid
public static enum IGrid.Autosort extends java.lang.Enum<IGrid.Autosort>
Specifies whether to sort the model when the following cases:- With
ListModelcase andIColumn.withSortDirection(String)is set. IColumn.withSortDirection(String)is called.- Model receives
ListDataEventandIColumn.withSortDirection(String)is set.
IGNORE_CHANGE.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENABLEEnables the auto-sort facility.IGNORE_CHANGEIgnores to sort when theListDataEventis sent.NONEDisables the auto-sort facility.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IGrid.AutosortvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static IGrid.Autosort[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENABLE
public static final IGrid.Autosort ENABLE
Enables the auto-sort facility.
-
NONE
public static final IGrid.Autosort NONE
Disables the auto-sort facility.
-
IGNORE_CHANGE
public static final IGrid.Autosort IGNORE_CHANGE
Ignores to sort when theListDataEventis sent.
-
-
Method Detail
-
values
public static IGrid.Autosort[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IGrid.Autosort c : IGrid.Autosort.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IGrid.Autosort 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 namejava.lang.NullPointerException- if the argument is null
-
-