org.tentackle.ui
Class ValueEvent

java.lang.Object
  extended by java.util.EventObject
      extended by java.awt.AWTEvent
          extended by org.tentackle.ui.ValueEvent
All Implemented Interfaces:
Serializable

public class ValueEvent
extends AWTEvent

Value event to implement the data binding between FormComponents and the application's data.

Author:
harald
See Also:
Serialized Form

Field Summary
static int FORMFIELD_EVENT
          default event id
static int GET
          action code to get values (update the data)
static int SET
          action code to set values (update the view)
 
Fields inherited from class java.awt.AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ValueEvent(Object source, int action)
          Creates a ValueEvent with the default event ID FORMFIELD_EVENT.
ValueEvent(Object source, int id, int action)
          Creates a ValueEvent.
 
Method Summary
 int getAction()
          Gets the action code.
 
Methods inherited from class java.awt.AWTEvent
consume, getID, isConsumed, paramString, setSource, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FORMFIELD_EVENT

public static final int FORMFIELD_EVENT
default event id

See Also:
Constant Field Values

SET

public static final int SET
action code to set values (update the view)

See Also:
Constant Field Values

GET

public static final int GET
action code to get values (update the data)

See Also:
Constant Field Values
Constructor Detail

ValueEvent

public ValueEvent(Object source,
                  int id,
                  int action)
Creates a ValueEvent.

Parameters:
source - the source object
id - the event ID
action - the action code

ValueEvent

public ValueEvent(Object source,
                  int action)
Creates a ValueEvent with the default event ID FORMFIELD_EVENT.

Parameters:
source - the source object
action - the action code
Method Detail

getAction

public int getAction()
Gets the action code.

Returns:
one of SET or GET


Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de