public enum ModelUpdates extends java.lang.Enum<ModelUpdates> implements ModelUpdate
ModelUpdate
types with special meanings to the framework.Bound
,
CallOnUpdate
Enum Constant and Description |
---|
ALL
This is used to sync all listeners.
|
DATA
You can use this to mean data, as opposed to meta-data.
|
META
This can be used to separate data from meta-data.
|
UNSPECIFIED
This is used for unspecified update types in the default implementations of
BindableModel . |
Modifier and Type | Method and Description |
---|---|
static ModelUpdates |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModelUpdates[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModelUpdates UNSPECIFIED
This is used for unspecified update types in the default implementations of BindableModel
. Listeners that
don't have a specified "on" parameter should react to these model updates.
Note: when bound to a specific ModelUpdate
, a control will not receive updates not sent
specifically to any ModelUpdate
- i.e. default updates. To selectively answer a specific
ModelUpdate
and also still get default notications, add UNSPECIFIED
to the list of
ModelUpdate
s passed to Bound.on()
.
Bound
public static final ModelUpdates ALL
public static final ModelUpdates DATA
public static final ModelUpdates META
public static ModelUpdates[] values()
for (ModelUpdates c : ModelUpdates.values()) System.out.println(c);
public static ModelUpdates 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 null