javax.swing.binding
Enum SwingBindingSupport.TextChangeStrategy

java.lang.Object
  extended by java.lang.Enum<SwingBindingSupport.TextChangeStrategy>
      extended by javax.swing.binding.SwingBindingSupport.TextChangeStrategy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SwingBindingSupport.TextChangeStrategy>
Enclosing class:
SwingBindingSupport

public static enum SwingBindingSupport.TextChangeStrategy
extends java.lang.Enum<SwingBindingSupport.TextChangeStrategy>

An enumeration of the possible values for the TextChangeStrategyParameter of text components.


Enum Constant Summary
CHANGE_ON_ACTION_OR_FOCUS_LOST
          Indicates the binding target should change when enter is pressed, or the text component loses focus.
CHANGE_ON_FOCUS_LOST
          Indicates the binding target should change when focus leaves the text component.
CHANGE_ON_TYPE
          Indicates the binding target should change as text is input.
 
Method Summary
static SwingBindingSupport.TextChangeStrategy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SwingBindingSupport.TextChangeStrategy[] 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

CHANGE_ON_TYPE

public static final SwingBindingSupport.TextChangeStrategy CHANGE_ON_TYPE
Indicates the binding target should change as text is input.


CHANGE_ON_ACTION_OR_FOCUS_LOST

public static final SwingBindingSupport.TextChangeStrategy CHANGE_ON_ACTION_OR_FOCUS_LOST
Indicates the binding target should change when enter is pressed, or the text component loses focus.


CHANGE_ON_FOCUS_LOST

public static final SwingBindingSupport.TextChangeStrategy CHANGE_ON_FOCUS_LOST
Indicates the binding target should change when focus leaves the text component.

Method Detail

values

public static final SwingBindingSupport.TextChangeStrategy[] 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(SwingBindingSupport.TextChangeStrategy c : SwingBindingSupport.TextChangeStrategy.values())
        System.out.println(c);

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

valueOf

public static SwingBindingSupport.TextChangeStrategy 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