sub_arctic.input
Class work_event

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--java.awt.AWTEvent
              |
              +--sub_arctic.input.work_event

public class work_event
extends java.awt.AWTEvent

This is a subtype of the AWTEvent class which we use to force ourselves to be synchronized with the event dispatch process. This event is sent to a component and it eventually ends up being dispatched by the event handling code of subarctic.

See Also:
Serialized Form

Field Summary
protected  java.lang.Object _obj
          The object to pass to the work proc when it runs.
protected  work_proc _proc
          The work to do.
 
Fields inherited from class java.awt.AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
work_event(java.lang.Object source, int type, work_proc p, java.lang.Object o)
          Create a new work_event with a given work_proc and parameter.
 
Method Summary
 java.lang.Object obj()
          Retrieve the object to be passed to the work proc when it runs.
 work_proc proc()
          Retrieve the work proc from this pair.
 
Methods inherited from class java.awt.AWTEvent
consume, getID, isConsumed, paramString, 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

_proc

protected work_proc _proc
The work to do.

_obj

protected java.lang.Object _obj
The object to pass to the work proc when it runs.
Constructor Detail

work_event

public work_event(java.lang.Object source,
                  int type,
                  work_proc p,
                  java.lang.Object o)
Create a new work_event with a given work_proc and parameter.
Parameters:
Object - source the generator of this event
int - type the type of this event (WORK_EVENT)
work_proc - p the work to be performed
Object - o the parameter to pass the work_proc
Method Detail

proc

public work_proc proc()
Retrieve the work proc from this pair.
Returns:
work_proc the work proc object

obj

public java.lang.Object obj()
Retrieve the object to be passed to the work proc when it runs.
Returns:
Object the object which is to be the work proc's parameter.