com.BobCo.postit
Class BCPostItContentInfoEventHandler

java.lang.Object
  extended bycom.tivoli.twg.engine.TWGContentInfoEventHandler
      extended bycom.BobCo.postit.BCPostItContentInfoEventHandler
All Implemented Interfaces:
com.tivoli.twg.libs.CommandCompleteListener

public class BCPostItContentInfoEventHandler
extends com.tivoli.twg.engine.TWGContentInfoEventHandler
implements com.tivoli.twg.libs.CommandCompleteListener

The TWGContentInfoEventHandler class defines the interface that is used by the console 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.


Constructor Summary
BCPostItContentInfoEventHandler()
          Construct the handler object.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt, long[] moid, long[] coid)
          Called by the console in response to a user selecting one of the items in the popup menu provided.
 void CommandComplete(com.tivoli.twg.libs.Command cmd)
          Called when a Command that has been sent completes.
 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

BCPostItContentInfoEventHandler

public BCPostItContentInfoEventHandler()
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.

CommandComplete

public void CommandComplete(com.tivoli.twg.libs.Command cmd)
Called when a Command that has been sent completes. Required to satisfy CommandCompleteListener implementation.

Specified by:
CommandComplete in interface com.tivoli.twg.libs.CommandCompleteListener
Parameters:
cmd - The ActionEvent sent for the menu item selected.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt,
                            long[] moid,
                            long[] coid)
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.

Parameters:
evt - The ActionEvent sent for the menu item selected.
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 was over.

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.