org.diylc.core
Enum VisibilityPolicy

java.lang.Object
  extended by java.lang.Enum<VisibilityPolicy>
      extended by org.diylc.core.VisibilityPolicy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<VisibilityPolicy>

public enum VisibilityPolicy
extends java.lang.Enum<VisibilityPolicy>

Enumerates control point visibility policies.

Author:
Branislav Stojkovic

Enum Constant Summary
ALWAYS
          Control point should be rendered all the time.
NEVER
          Control point should not be rendered regardless of component selection.
WHEN_SELECTED
          Control point should be rendered only when the component is selected.
 
Method Summary
static VisibilityPolicy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static VisibilityPolicy[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALWAYS

public static final VisibilityPolicy ALWAYS
Control point should be rendered all the time.


WHEN_SELECTED

public static final VisibilityPolicy WHEN_SELECTED
Control point should be rendered only when the component is selected.


NEVER

public static final VisibilityPolicy NEVER
Control point should not be rendered regardless of component selection.

Method Detail

values

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

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

valueOf

public static VisibilityPolicy 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
java.lang.NullPointerException - if the argument is null