com.altair.hwm.beans.utils.events
Class HWMCmdEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.altair.hwm.beans.utils.events.HWMCmdEvent
All Implemented Interfaces:
java.io.Serializable

public class HWMCmdEvent
extends java.util.EventObject

Title: HWMCmdEvent

Description: This is the event object which will be passed on when an event is fired by a bean when it completes its method.

Company: Altair Engineering, Inc.

See Also:
Serialized Form

Constructor Summary
HWMCmdEvent(java.lang.Object objSource, int nMethodID)
          Constructor
HWMCmdEvent(java.lang.Object objSource, int nMethodID, java.lang.String strMsg)
          Constructor
 
Method Summary
 java.lang.String GetMessage()
          Gets the message
 int GetMethodID()
          Every method in the HWM components that fire this event, has a method ID.
 void SetMessage(java.lang.String strMsg)
          Sets the message
 void SetMethodID(int nMethodID)
          Every method in the HWM components that fire this event, has a method ID.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HWMCmdEvent

public HWMCmdEvent(java.lang.Object objSource,
                   int nMethodID)
Constructor

Parameters:
objSource - The source object which fires the event
nMethodID - The id of the method that fires the event

HWMCmdEvent

public HWMCmdEvent(java.lang.Object objSource,
                   int nMethodID,
                   java.lang.String strMsg)
Constructor

Parameters:
objSource - The source object which fires the event
nMethodID - The id of the method that fires the event
strMsg - The message that needs to be passed to the handler of the event
Method Detail

GetMessage

public java.lang.String GetMessage()
Gets the message

Returns:
String message that needs to passed on to the listener (maybe err msg)

SetMessage

public void SetMessage(java.lang.String strMsg)
Sets the message

Parameters:
strMsg - The message that needs to passed on to the listener (maybe err msg)

GetMethodID

public int GetMethodID()
Every method in the HWM components that fire this event, has a method ID. The method ID is unique within the component firing this event. This method retrieves the ID of the method firing this event

Returns:
int The method ID

SetMethodID

public void SetMethodID(int nMethodID)
Every method in the HWM components that fire this event, has a method ID. The method ID is unique within the component firing this event. This method sets the ID of the method firing this event

Parameters:
nMethodID - The method ID