de.phleisch.app.itsucks.event.impl
Class SimpleEvent

java.lang.Object
  extended by de.phleisch.app.itsucks.event.impl.SimpleEvent
All Implemented Interfaces:
Event
Direct Known Subclasses:
CoreEvents.ConstEvent, DispatcherEvent, DispatcherList.DispatcherListEvent, JobEvent

public class SimpleEvent
extends java.lang.Object
implements Event

An implementation of the Event interface.

Author:
olli

Constructor Summary
SimpleEvent(Event pEvent)
          This constructor copies type and category from the given event.
SimpleEvent(int pType)
           
SimpleEvent(int pType, int pCategory)
           
 
Method Summary
 boolean equals(java.lang.Object pObj)
           
 int getCategory()
          Returns the category of this event.
 int getType()
          Returns the type of this event.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleEvent

public SimpleEvent(Event pEvent)
This constructor copies type and category from the given event.

Parameters:
pEvent -

SimpleEvent

public SimpleEvent(int pType)

SimpleEvent

public SimpleEvent(int pType,
                   int pCategory)
Method Detail

getCategory

public int getCategory()
Description copied from interface: Event
Returns the category of this event. For an list of existing categories, check the CoreEvents class.

Specified by:
getCategory in interface Event
Returns:

getType

public int getType()
Description copied from interface: Event
Returns the type of this event. For an list of existing event id's, check the CoreEvents class.

Specified by:
getType in interface Event
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object pObj)
Overrides:
equals in class java.lang.Object


Copyright © 2010. All Rights Reserved.