org.xnap.peer
Class AbstractHotlistItem

java.lang.Object
  extended by org.xnap.peer.AbstractHotlistItem
All Implemented Interfaces:
HotlistItem
Direct Known Subclasses:
OpenNapGlobalUser

public abstract class AbstractHotlistItem
extends java.lang.Object
implements HotlistItem

This class provides the default implementation for a hotlist item.


Constructor Summary
AbstractHotlistItem()
           
 
Method Summary
 void addStateListener(StateListener listener)
          Adds a state listener.
 javax.swing.Icon getIcon()
          Returns null.
 void removeStateListener(StateListener listener)
          Remove a state listener.
protected  void stateChanged()
          Notifies all StateListeners that the state has changed.
 java.lang.String toString()
          Returns the value of getName().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xnap.peer.HotlistItem
getActions, getCategory, getComment, getName, getStatus
 

Constructor Detail

AbstractHotlistItem

public AbstractHotlistItem()
Method Detail

addStateListener

public void addStateListener(StateListener listener)
Adds a state listener.

Specified by:
addStateListener in interface HotlistItem

getIcon

public javax.swing.Icon getIcon()
Returns null.

Specified by:
getIcon in interface HotlistItem

removeStateListener

public void removeStateListener(StateListener listener)
Description copied from interface: HotlistItem
Remove a state listener.

Specified by:
removeStateListener in interface HotlistItem

toString

public java.lang.String toString()
Returns the value of getName().

Overrides:
toString in class java.lang.Object

stateChanged

protected void stateChanged()
Notifies all StateListeners that the state has changed.



Copyright © 2001-2005 XNap Team. All Rights Reserved.