com.tivoli.twg.engine
Class TWGContentInfoEventHandler

java.lang.Object
  extended bycom.tivoli.twg.engine.TWGContentInfoEventHandler

public abstract class TWGContentInfoEventHandler
extends java.lang.Object

This is the base class for providing the interface between the user and the objects in a task association's view. This abstract class provides the interface subclasses must implement in order to perform the console notifications to notify a task association's view about user interaction. This interaction includes popup menu requests, double-click actions, menu action requests and drag/drop operations.

See Also:
TWGContentInfoBeans, TWGContentInfoObjectHandler

Constructor Summary
TWGContentInfoEventHandler()
          Construct the handler object.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt, long[] moids, long[] coids)
          Called by the console in response to a user selecting one of the items in the popup menu provided.
 void doubleClickRequest(long moid, long coid)
          Called by the console in response to a user double-clicking on a specific content info object for a specific oid.
 javax.swing.JPopupMenu getPopupMenu(long moid, long coid)
          Called by the console in response to a user requesting a popup menu for a specific content info object.
 void initializeHandler(long beanid)
          Called during the initialization of the event handler to provide the bean id to the event handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TWGContentInfoEventHandler

public TWGContentInfoEventHandler()
Construct the handler object. Default ctor so that it can be loaded as a bean.

Method Detail

initializeHandler

public void initializeHandler(long beanid)
Called during the initialization of the event handler to provide the bean id to the event handler. Subclasses should implement this to perform any setup of initial information needed to handle the user interaction with the content info objects that this task's associated view provides.

Parameters:
beanid - unique id of the bean this handler is for.

getPopupMenu

public javax.swing.JPopupMenu getPopupMenu(long moid,
                                           long coid)
Called by the console in response to a user requesting a popup menu for a specific content info object. Subclasses should implement this to provide a popup menu based on the object information passed. that this task's associated view provides.

Parameters:
moid - The managed object id (or filter object id) that the content info object is presented under.
coid - The content info object id that the popup menu is requested for.
Returns:
The popup menu that should be displayed for the specified object.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt,
                            long[] moids,
                            long[] coids)
Called by the console in response to a user selecting one of the items in the popup menu provided. Subclasses should implement this to provide the action code they wish to execute for the popups they created. Note: the index for both long arrays (moids and coids) match. The object represented by coids[i] is displayed on the main console under moids[i].

Parameters:
evt - The ActionEvent sent for the menu item selected.
moids - All managed object ids (or filter object ids) that the selected content info objects are presented under.
coids - All selected content info object ids.

doubleClickRequest

public void doubleClickRequest(long moid,
                               long coid)
Called by the console in response to a user double-clicking on a specific content info object for a specific oid. Subclasses should implement this to provide any open/edit (if any) object requests supported for the content info object(s) that are associated with this object.

Parameters:
moid - The managed object id (or filter object id) that the content info object is presented under.
coid - The content info object id that the popup menu is requested for.