org.netbeans.api.visual 2.21.1

org.netbeans.api.visual.widget
Enum EventProcessingType

java.lang.Object
  extended by java.lang.Enum<EventProcessingType>
      extended by org.netbeans.api.visual.widget.EventProcessingType
All Implemented Interfaces:
Serializable, Comparable<EventProcessingType>

public enum EventProcessingType
extends Enum<EventProcessingType>

The enum represents allowed types of event processing the is used to process the Swing event coming from a view component and that should be delegated to widgets on the scene.


Enum Constant Summary
ALL_WIDGETS
          Means that an event is processed by all widgets in whole scene.
FOCUSED_WIDGET_AND_ITS_CHILDREN
          Means that an event is processed by a focused widget and its children only.
FOCUSED_WIDGET_AND_ITS_CHILDREN_AND_ITS_PARENTS
          Means that an event is processed by a focused widget and its children and its parents only.
FOCUSED_WIDGET_AND_ITS_PARENTS
          Means that an event is processed by a focused widget of a scene and then by its parents only.
 
Method Summary
static EventProcessingType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EventProcessingType[] 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

ALL_WIDGETS

public static final EventProcessingType ALL_WIDGETS
Means that an event is processed by all widgets in whole scene. The order follows the tree hierarchy of a scene.


FOCUSED_WIDGET_AND_ITS_PARENTS

public static final EventProcessingType FOCUSED_WIDGET_AND_ITS_PARENTS
Means that an event is processed by a focused widget of a scene and then by its parents only.


FOCUSED_WIDGET_AND_ITS_CHILDREN

public static final EventProcessingType FOCUSED_WIDGET_AND_ITS_CHILDREN
Means that an event is processed by a focused widget and its children only.


FOCUSED_WIDGET_AND_ITS_CHILDREN_AND_ITS_PARENTS

public static final EventProcessingType FOCUSED_WIDGET_AND_ITS_CHILDREN_AND_ITS_PARENTS
Means that an event is processed by a focused widget and its children and its parents only.

Method Detail

values

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

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

valueOf

public static EventProcessingType 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

org.netbeans.api.visual 2.21.1

Built on February 22 2010.  |  Portions Copyright 1997-2010 Sun Microsystems, Inc. All rights reserved.