Bean Builder

com.adventnet.components.projectworkspace
Class FrameworkEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.adventnet.components.projectworkspace.FrameworkEvent
Direct Known Subclasses:
MenuEvent, ToolBarEvent

public class FrameworkEvent
extends java.util.EventObject

The root event class for the ProjectWorkspace Action Events. MenuFrameworkEvent and ToolBarEvents are subclass of this event. API's are provided to get the actionType, actionValue and actionCommand values. The class that implements the ActionHandlerInterface interface gets this FrameworkEvent when the event occurs.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
FrameworkEvent(java.lang.Object eventSource, java.lang.String actionType, java.lang.String actionValue)
          The constructor which accepts the event source object, the actionType and actionValue to construct the event.
 
Method Summary
 java.lang.String getActionCommand()
          Returns the value for the action command for the action to be performed.
 java.lang.String getActionType()
          Returns the value set for the actionType argument.
 java.lang.String getActionValue()
          Returns the value set for the actionValue argument.
 java.lang.String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FrameworkEvent

public FrameworkEvent(java.lang.Object eventSource,
                      java.lang.String actionType,
                      java.lang.String actionValue)
The constructor which accepts the event source object, the actionType and actionValue to construct the event.
Parameters:
eventSource - an Object reference.
actionType - The type of action to be performed. By default openNW or openURL.
actionValue - The value for which the action has to be performed. By default the url.
Method Detail

getActionCommand

public java.lang.String getActionCommand()
Returns the value for the action command for the action to be performed. When actionType is specified as action_command, the actionValue parameter is taken as the value for action_command.
Returns:
The value for the action command

getActionType

public java.lang.String getActionType()
Returns the value set for the actionType argument.
Returns:
The value of the actionType.

getActionValue

public java.lang.String getActionValue()
Returns the value set for the actionValue argument.
Returns:
The value of the actionValue.

toString

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

Bean Builder

© 2001 - 2002 AdventNet Inc. Visit us at: http://www.adventnet.com