com.levigo.util.swing.action
Enum Context.Ancestors

java.lang.Object
  extended by java.lang.Enum<Context.Ancestors>
      extended by com.levigo.util.swing.action.Context.Ancestors
All Implemented Interfaces:
Serializable, Comparable<Context.Ancestors>
Enclosing class:
Context

public static enum Context.Ancestors
extends Enum<Context.Ancestors>

Enum used to determine whether the aggregated view includes elements of ancestor (parent, grand-parent etc.) contexts.


Enum Constant Summary
ALL
          Elements from all ancestors are included.
NONE
          No elements from ancestor contexts are included.
PARENT
          Elements from the direct parent context are included.
PARENT_WITH_AGGREGATION
          Elements from the direct parent context are included.
 
Method Summary
static Context.Ancestors valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Context.Ancestors[] 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

NONE

public static final Context.Ancestors NONE
No elements from ancestor contexts are included.


ALL

public static final Context.Ancestors ALL
Elements from all ancestors are included. This doesn't however, encompass elements from ancestor's child contexts (e.g. siblings).


PARENT

public static final Context.Ancestors PARENT
Elements from the direct parent context are included. This doesn't however, encompass elements from the parent's child contexts (e.g. siblings).


PARENT_WITH_AGGREGATION

public static final Context.Ancestors PARENT_WITH_AGGREGATION
Elements from the direct parent context are included. If the parent has some form of aggregation, those ancestors or descendants (e.g. siblings, nephews) are included as well.

Method Detail

values

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

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

valueOf

public static Context.Ancestors 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 © 1995-2020 levigo holding gmbh. All Rights Reserved.