com.sun.im.desktop
Class MessengerEventListener

java.lang.Object
  extended bycom.sun.im.desktop.MessengerEventListener
All Implemented Interfaces:
java.util.EventListener
Direct Known Subclasses:
MessengerActionListener, MessengerItemListener

public abstract class MessengerEventListener
extends java.lang.Object
implements java.util.EventListener

Base implementation of an event listener. it is invoked by the messenger when the functionality provided by the bean is activated. It manages the state's change of a boolean setting item.


Constructor Summary
MessengerEventListener()
           
 
Method Summary
 javax.swing.ImageIcon getIcon()
          returns the icon associated with the swing component used to invoke the extension (Button, option, etc..).
 java.lang.String getImage()
          returns the path to the image associated with the swing component used to invoke the extension (Button, option, etc..).
 java.lang.String getLabel()
          returns the label to be associated with the swing component used to invoke the extension (Button, menu item, etc..).
 java.lang.String getToolTipText()
          returns the tool tip text associated with the swing component used to invoke the extension (Button, option, etc..).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessengerEventListener

public MessengerEventListener()
Method Detail

getLabel

public java.lang.String getLabel()
returns the label to be associated with the swing component used to invoke the extension (Button, menu item, etc..). The returned String must be localized.


getImage

public java.lang.String getImage()
returns the path to the image associated with the swing component used to invoke the extension (Button, option, etc..).

Returns:
image path or null if no image exists. Note that containers may choose not to use an image even if one is available.

getIcon

public javax.swing.ImageIcon getIcon()
returns the icon associated with the swing component used to invoke the extension (Button, option, etc..).

Returns:
null if no image exists the ImageIcon object otherwise Note that containers may choose not to use an image even if one is available.

getToolTipText

public java.lang.String getToolTipText()
returns the tool tip text associated with the swing component used to invoke the extension (Button, option, etc..).

Returns:
the tooltip text if one, null otherwise Note that containers may choose not to use an image even if one is available.