org.openbp.jaspira.propertybrowser
Class PropertyBrowserEvent

java.lang.Object
  extended by org.openbp.jaspira.propertybrowser.PropertyBrowserEvent

public class PropertyBrowserEvent
extends java.lang.Object

Editing event. Fired whenever an event during editing of a property editor occurs that may require interaction with the component that hosts the editor.

Author:
Heiko Erhardt

Field Summary
static int ELEMENT_COPIED
          An element has been copied
static int ELEMENT_CREATED
          An element has been created
static int ELEMENT_DELETED
          An element has been deleted
static int ELEMENT_PASTED
          An element has been pasted
 int eventType
          Event code (see the constants of this class)
static int FOCUS_GAINED
          Gained editing component focus
static int FOCUS_LOST
          Lost editing component focus
static int KEY
          Key was pressed
 java.awt.event.KeyEvent keyEvent
          Key event associated with the event.
 AbstractNode node
          Node
static int PROPERTY_CHANGED
          A property has been changed
static int PROPERTY_UPDATED
          A property has been updated
 PropertyBrowser propertyBrowser
          Property browser
 PropertyEditor propertyEditor
          Property editor
static int SELECTION_CHANGED
          Gained editing component focus
static int UNDEFINED
          Editing stopped due to user interaction
 
Constructor Summary
PropertyBrowserEvent(int eventType, PropertyBrowser propertyBrowser, AbstractNode node)
          Constructor.
PropertyBrowserEvent(int eventType, PropertyEditor propertyEditor)
          Constructor.
PropertyBrowserEvent(int eventType, PropertyEditor propertyEditor, java.awt.event.KeyEvent keyEvent)
          Constructor.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDEFINED

public static final int UNDEFINED
Editing stopped due to user interaction

See Also:
Constant Field Values

KEY

public static final int KEY
Key was pressed

See Also:
Constant Field Values

SELECTION_CHANGED

public static final int SELECTION_CHANGED
Gained editing component focus

See Also:
Constant Field Values

FOCUS_GAINED

public static final int FOCUS_GAINED
Gained editing component focus

See Also:
Constant Field Values

FOCUS_LOST

public static final int FOCUS_LOST
Lost editing component focus

See Also:
Constant Field Values

PROPERTY_CHANGED

public static final int PROPERTY_CHANGED
A property has been changed

See Also:
Constant Field Values

PROPERTY_UPDATED

public static final int PROPERTY_UPDATED
A property has been updated

See Also:
Constant Field Values

ELEMENT_CREATED

public static final int ELEMENT_CREATED
An element has been created

See Also:
Constant Field Values

ELEMENT_COPIED

public static final int ELEMENT_COPIED
An element has been copied

See Also:
Constant Field Values

ELEMENT_PASTED

public static final int ELEMENT_PASTED
An element has been pasted

See Also:
Constant Field Values

ELEMENT_DELETED

public static final int ELEMENT_DELETED
An element has been deleted

See Also:
Constant Field Values

propertyBrowser

public PropertyBrowser propertyBrowser
Property browser


propertyEditor

public PropertyEditor propertyEditor
Property editor


node

public AbstractNode node
Node


eventType

public int eventType
Event code (see the constants of this class)


keyEvent

public java.awt.event.KeyEvent keyEvent
Key event associated with the event. If a key code is not applicable or the event was caused by e. g. a mouse interaction, the kexEvent will be null.

Constructor Detail

PropertyBrowserEvent

public PropertyBrowserEvent(int eventType,
                            PropertyBrowser propertyBrowser,
                            AbstractNode node)
Constructor.

Parameters:
eventType - Event code (see the constants of this class)
propertyBrowser - Property browser
node - Node

PropertyBrowserEvent

public PropertyBrowserEvent(int eventType,
                            PropertyEditor propertyEditor)
Constructor.

Parameters:
eventType - Event code (see the constants of this class)
propertyEditor - Property editor

PropertyBrowserEvent

public PropertyBrowserEvent(int eventType,
                            PropertyEditor propertyEditor,
                            java.awt.event.KeyEvent keyEvent)
Constructor.

Parameters:
eventType - Event code (see the constants of this class)
propertyEditor - Property editor
keyEvent - Key event that caused the event


Copyright © 2011. All Rights Reserved.