javax.beans.binding
Enum Binding.UpdateStrategy

java.lang.Object
  extended by java.lang.Enum<Binding.UpdateStrategy>
      extended by javax.beans.binding.Binding.UpdateStrategy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Binding.UpdateStrategy>
Enclosing class:
Binding

public static enum Binding.UpdateStrategy
extends java.lang.Enum<Binding.UpdateStrategy>

Enumeration of the possible ways the source and target properties can be kept in sync.


Enum Constant Summary
READ_FROM_SOURCE
          Enumeration value indicating the target property should be kept in sync with the source.
READ_ONCE
          Enumeration value indicating the target property should only be set from the source value once, when the Binding is created.
READ_WRITE
          Enumeration value indicating the source and target property should be kept in sync at all times.
 
Method Summary
static Binding.UpdateStrategy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Binding.UpdateStrategy[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

READ_FROM_SOURCE

public static final Binding.UpdateStrategy READ_FROM_SOURCE
Enumeration value indicating the target property should be kept in sync with the source. Changes to the target property are not propaged to the source.


READ_ONCE

public static final Binding.UpdateStrategy READ_ONCE
Enumeration value indicating the target property should only be set from the source value once, when the Binding is created. Subsequent changes to the source or target are not propagated to the target or source.


READ_WRITE

public static final Binding.UpdateStrategy READ_WRITE
Enumeration value indicating the source and target property should be kept in sync at all times. This is the default update strategy for Binding.

Method Detail

values

public static final Binding.UpdateStrategy[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Binding.UpdateStrategy c : Binding.UpdateStrategy.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Binding.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 name