Package com.smartgwt.client.types
Enum FieldFilterMode
- All Implemented Interfaces:
ValueEnum
,Serializable
,Comparable<FieldFilterMode>
,Constable
Indicates where a given field can be legally filtered. By default, any field where
DataSourceField.canFilter
isn't false
allows
filtering either at the server or at the client
,
according to related settings. This is the recommended behavior, but it can be useful or necessary to limit filtering in some cases.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription- filter on the client where possible and contact the server when necessary- any change to criteria for a field causes cache invalidation and a trip to the server. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
static FieldFilterMode
Returns the enum constant of this type with the specified name.static FieldFilterMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BOTH
- filter on the client where possible and contact the server when necessaryIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "both". -
SERVERONLY
- any change to criteria for a field causes cache invalidation and a trip to the server. This mode is quite useful for cases where client filtering can't replicate server filtering, such as:- search engines that consider something a match based on word roots (like treating "sunken" as a match for "sink")
- server-side formatting, where values are delivered as HTML or even as images, where the value seen in the browser no longer matches the search text
- searching large files where the files won't be delivered to the client
If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "serverOnly".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
-