org.brains2b.coffee.event
Class CoffeeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by java.awt.AWTEvent
          extended by org.brains2b.coffee.event.CoffeeEvent
All Implemented Interfaces:
java.io.Serializable

public class CoffeeEvent
extends java.awt.AWTEvent

Default Event for CoffeeBreak

Defines the default actions for CoffeeBreak

Version:
$Revision: 1.8 $ $Date: 2010/07/05 00:32:15 $
Author:
dennis@brains2b.nl
See Also:
Serialized Form

Field Summary
static int CALCULATE_POSTS
           
static int CHANGE_SERVER
           
static int ENCODE_ARTICLE
           
static int ENCODE_POST
           
static int EXPIRE_SERVER
           
static int FILTER
           
static int GET_ARTICLE
           
static int GET_ARTICLE_LIST
           
static int GET_ARTICLES
           
static int GET_ATTACHMENT
           
static int GET_GROUPLIST
           
static int GET_LIST
           
static int GROUP_ARTICLES
           
static int LIST_ADD
           
static int LIST_REMOVE
           
static int NEWS_GROUP
           
static int NONE
           
static int POST_ARTICLE
           
static int PROCESS
           
static int QUEUE_DOWN
           
static int QUEUE_PAUSE
           
static int QUEUE_REMOVE
           
static int QUEUE_RESUME
           
static int QUEUE_UP
           
static int SAVE
           
static int SAVE_ATTACHMENT
           
static int SAVE_POST
           
static int SUBSCRIPTION_GROUP
           
static int USE
           
static int XML_READ
           
static int XML_READ_CONFIG
           
static int XML_READ_DIRECT
           
static int XML_SAVE
           
static int XML_SAVE_CONFIG
           
static int XML_SAVE_QUIET
           
 
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
CoffeeEvent(CoffeeExchange source, int action, java.lang.Object argument)
          Default Constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          two CoffeeEvents are considered equal if the id, source and argument match
 java.lang.Object getArgument()
          get the argument for this Event
 CoffeeExchange getExchange()
          get the source of this event
 
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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
See Also:
Constant Field Values

CHANGE_SERVER

public static final int CHANGE_SERVER
See Also:
Constant Field Values

XML_READ_DIRECT

public static final int XML_READ_DIRECT
See Also:
Constant Field Values

USE

public static final int USE
See Also:
Constant Field Values

XML_READ

public static final int XML_READ
See Also:
Constant Field Values

PROCESS

public static final int PROCESS
See Also:
Constant Field Values

QUEUE_REMOVE

public static final int QUEUE_REMOVE
See Also:
Constant Field Values

QUEUE_UP

public static final int QUEUE_UP
See Also:
Constant Field Values

QUEUE_DOWN

public static final int QUEUE_DOWN
See Also:
Constant Field Values

QUEUE_PAUSE

public static final int QUEUE_PAUSE
See Also:
Constant Field Values

QUEUE_RESUME

public static final int QUEUE_RESUME
See Also:
Constant Field Values

CALCULATE_POSTS

public static final int CALCULATE_POSTS
See Also:
Constant Field Values

NEWS_GROUP

public static final int NEWS_GROUP
See Also:
Constant Field Values

XML_SAVE

public static final int XML_SAVE
See Also:
Constant Field Values

XML_SAVE_QUIET

public static final int XML_SAVE_QUIET
See Also:
Constant Field Values

SAVE

public static final int SAVE
See Also:
Constant Field Values

XML_READ_CONFIG

public static final int XML_READ_CONFIG
See Also:
Constant Field Values

XML_SAVE_CONFIG

public static final int XML_SAVE_CONFIG
See Also:
Constant Field Values

ENCODE_POST

public static final int ENCODE_POST
See Also:
Constant Field Values

ENCODE_ARTICLE

public static final int ENCODE_ARTICLE
See Also:
Constant Field Values

GET_GROUPLIST

public static final int GET_GROUPLIST
See Also:
Constant Field Values

GET_ARTICLES

public static final int GET_ARTICLES
See Also:
Constant Field Values

GET_ARTICLE_LIST

public static final int GET_ARTICLE_LIST
See Also:
Constant Field Values

GET_ARTICLE

public static final int GET_ARTICLE
See Also:
Constant Field Values

GET_ATTACHMENT

public static final int GET_ATTACHMENT
See Also:
Constant Field Values

SAVE_ATTACHMENT

public static final int SAVE_ATTACHMENT
See Also:
Constant Field Values

SAVE_POST

public static final int SAVE_POST
See Also:
Constant Field Values

POST_ARTICLE

public static final int POST_ARTICLE
See Also:
Constant Field Values

GET_LIST

public static final int GET_LIST
See Also:
Constant Field Values

LIST_ADD

public static final int LIST_ADD
See Also:
Constant Field Values

LIST_REMOVE

public static final int LIST_REMOVE
See Also:
Constant Field Values

EXPIRE_SERVER

public static final int EXPIRE_SERVER
See Also:
Constant Field Values

SUBSCRIPTION_GROUP

public static final int SUBSCRIPTION_GROUP
See Also:
Constant Field Values

FILTER

public static final int FILTER
See Also:
Constant Field Values

GROUP_ARTICLES

public static final int GROUP_ARTICLES
See Also:
Constant Field Values
Constructor Detail

CoffeeEvent

public CoffeeEvent(CoffeeExchange source,
                   int action,
                   java.lang.Object argument)
Default Constructor

Parameters:
source - CoffeeExchange, the source for this Event
action - int, an action as defined as a constant, or an id > 10000
argument - Object, argument to pass to this event
Method Detail

getArgument

public java.lang.Object getArgument()
get the argument for this Event

Returns:
Object, the argument

getExchange

public CoffeeExchange getExchange()
get the source of this event

conviniance method for (CoffeeExchange) getSource()

Returns:
the source for this Event
See Also:
EventObject.getSource()

equals

public boolean equals(java.lang.Object obj)
two CoffeeEvents are considered equal if the id, source and argument match

Overrides:
equals in class java.lang.Object
Returns:
true, if CoffeeEvents are equal