|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<OperatorValueType>
com.smartgwt.client.types.OperatorValueType
public enum OperatorValueType
Indicates the kind of value expected in a Criterion
that uses this operator.
Enum Constant Summary | |
---|---|
CRITERIA
Criterion.criteria should be an Array of criteria (used for logical operators like "and") |
|
CUSTOM
Criterion.value should contain a value which is not necessarily the same type as the field (used for regexp and similar operators). |
|
FIELD_NAME
Criterion.value should be the name of another field in the record |
|
FIELD_TYPE
Criterion.value should contain a value of the same type as the field. |
|
NONE
no Criterion.value or other setting required (used for operators like isNull) |
|
VALUE_RANGE
Criterion.start Criterion.start and Criterion.end should
contain start and end values, both of the same type as the field. |
|
VALUE_SET
Criterion.value should contain an Array of valid field values. |
Method Summary | |
---|---|
String |
getValue()
|
static OperatorValueType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static OperatorValueType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final OperatorValueType FIELD_TYPE
Criterion.value
should contain a value of the same type as the field.
public static final OperatorValueType FIELD_NAME
Criterion.value
should be the name of another field in the record
public static final OperatorValueType NONE
Criterion.value
or other setting required (used for operators like isNull)
public static final OperatorValueType CRITERIA
Criterion.criteria
should be an Array of criteria (used for logical operators like "and")
public static final OperatorValueType VALUE_RANGE
Criterion.start
Criterion.start and Criterion.end
should
contain start and end values, both of the same type as the field.
public static final OperatorValueType VALUE_SET
Criterion.value
should contain an Array of valid field values.
public static final OperatorValueType CUSTOM
Criterion.value
should contain a value which is not necessarily the same type as the field (used for regexp and similar operators).
OperatorOperator.editorType can be specified as a FormItem to use to enter a value for the criterion.
Method Detail |
---|
public static OperatorValueType[] values()
for (OperatorValueType c : OperatorValueType.values()) System.out.println(c);
public static OperatorValueType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String getValue()
getValue
in interface ValueEnum
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |