org.viewaframework.model
Enum ViewModelStrategy

java.lang.Object
  extended by java.lang.Enum<ViewModelStrategy>
      extended by org.viewaframework.model.ViewModelStrategy
All Implemented Interfaces:
Serializable, Comparable<ViewModelStrategy>

public enum ViewModelStrategy
extends Enum<ViewModelStrategy>

A placeholder for various types of strategies for updating binding values and properties

Since:
1.0
Author:
Mario Garcia

Enum Constant Summary
ON_FOCUS_GAINED
           
ON_FOCUS_LOST
           
ON_MOUSE_CLICK
           
ON_MOUSE_OVER
           
ON_MOUSE_RELEASE
           
ON_RELEASE
           
ON_TYPE
           
 
Method Summary
static ViewModelStrategy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ViewModelStrategy[] 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

ON_TYPE

public static final ViewModelStrategy ON_TYPE

ON_FOCUS_LOST

public static final ViewModelStrategy ON_FOCUS_LOST

ON_FOCUS_GAINED

public static final ViewModelStrategy ON_FOCUS_GAINED

ON_MOUSE_OVER

public static final ViewModelStrategy ON_MOUSE_OVER

ON_MOUSE_CLICK

public static final ViewModelStrategy ON_MOUSE_CLICK

ON_MOUSE_RELEASE

public static final ViewModelStrategy ON_MOUSE_RELEASE

ON_RELEASE

public static final ViewModelStrategy ON_RELEASE
Method Detail

values

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

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

valueOf

public static ViewModelStrategy valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2010. All Rights Reserved.