com.zwares.base.event
Class EEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.zwares.base.event.EEvent
All Implemented Interfaces:
java.io.Serializable

public class EEvent
extends java.util.EventObject

This class is used as an event message from the source to the listener.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
EEvent(java.awt.event.ActionEvent e)
          Creates new Event
EEvent(java.lang.Object source)
          Creates new Event
EEvent(java.lang.Object source, int id)
          Creates new Event
EEvent(java.lang.Object source, int id, java.lang.String command)
          Creates new Event
EEvent(java.lang.Object source, java.lang.String command)
          Creates new Event
 
Method Summary
 boolean equals(java.lang.Object arg)
          Compares the argument to itself ..
 java.lang.String getActionCommand()
          Returns the command string associated with this event.
 int getId()
          Returns the ID associated with this event.
 java.lang.Object getSource()
          Returns the source object of this event.
 java.lang.String toString()
          Implements the toString method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EEvent

public EEvent(java.lang.Object source)
Creates new Event


EEvent

public EEvent(java.lang.Object source,
              int id)
Creates new Event


EEvent

public EEvent(java.lang.Object source,
              java.lang.String command)
Creates new Event


EEvent

public EEvent(java.lang.Object source,
              int id,
              java.lang.String command)
Creates new Event


EEvent

public EEvent(java.awt.event.ActionEvent e)
Creates new Event

Method Detail

getSource

public java.lang.Object getSource()
Returns the source object of this event.

Overrides:
getSource in class java.util.EventObject

getId

public int getId()
Returns the ID associated with this event.


getActionCommand

public java.lang.String getActionCommand()
Returns the command string associated with this event.


toString

public java.lang.String toString()
Implements the toString method.

Overrides:
toString in class java.util.EventObject

equals

public boolean equals(java.lang.Object arg)
Compares the argument to itself .. returns true if the two are same.

Overrides:
equals in class java.lang.Object