Package org.jdesktop.beansbinding
Enum AutoBinding.UpdateStrategy
- java.lang.Object
-
- java.lang.Enum<AutoBinding.UpdateStrategy>
-
- org.jdesktop.beansbinding.AutoBinding.UpdateStrategy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AutoBinding.UpdateStrategy>
- Enclosing class:
- AutoBinding<SS,SV,TS,TV>
public static enum AutoBinding.UpdateStrategy extends java.lang.Enum<AutoBinding.UpdateStrategy>
An enumeration representing the possible update strategies of anAutoBinding
. SeeAutoBinding's
class level documentation for complete details on the sync behavior for each possible update strategy.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description READ
An update strategy where theAutoBinding
tries to keep the target in sync with the source.READ_ONCE
An update strategy where theAutoBinding
tries to sync the target from the source only once, at bind time.READ_WRITE
An update strategy where theAutoBinding
tries to keep both the source and target in sync with each other.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AutoBinding.UpdateStrategy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AutoBinding.UpdateStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
READ_ONCE
public static final AutoBinding.UpdateStrategy READ_ONCE
An update strategy where theAutoBinding
tries to sync the target from the source only once, at bind time.
-
READ
public static final AutoBinding.UpdateStrategy READ
An update strategy where theAutoBinding
tries to keep the target in sync with the source.
-
READ_WRITE
public static final AutoBinding.UpdateStrategy READ_WRITE
An update strategy where theAutoBinding
tries to keep both the source and target in sync with each other.
-
-
Method Detail
-
values
public static AutoBinding.UpdateStrategy[] 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 (AutoBinding.UpdateStrategy c : AutoBinding.UpdateStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AutoBinding.UpdateStrategy 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
-
-