org.brains2b.coffee.event
Class CoffeeEvent
java.lang.Object
java.util.EventObject
java.awt.AWTEvent
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
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 |
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 |
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
CoffeeEvent
public CoffeeEvent(CoffeeExchange source,
int action,
java.lang.Object argument)
- Default Constructor
- Parameters:
source
- CoffeeExchange, the source for this Eventaction
- int, an action as defined as a constant, or an id > 10000argument
- Object, argument to pass to this event
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