org.xnap.peer
Class HotlistManager

java.lang.Object
  extended by org.xnap.peer.HotlistManager

public class HotlistManager
extends java.lang.Object

Manages HotlistItem objects.


Method Summary
 void add(HotlistItem item)
          Adds item to the hotlist.
 void addListListener(ListListener listener)
          Listener is notified when a new item is added or removed.
static HotlistManager getInstance()
          Returns the instance of HotlistManager.
 HotlistItem[] getItems()
           
 void remove(HotlistItem item)
          Removes item from the hotlist.
 void removeByClass(java.lang.Class itemClass)
          Removes all items of class itemClass from the hotlist.
 void removeListListener(ListListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static HotlistManager getInstance()
Returns the instance of HotlistManager.


add

public void add(HotlistItem item)
Adds item to the hotlist.


addListListener

public void addListListener(ListListener listener)
Listener is notified when a new item is added or removed.


getItems

public HotlistItem[] getItems()

remove

public void remove(HotlistItem item)
Removes item from the hotlist.


removeByClass

public void removeByClass(java.lang.Class itemClass)
Removes all items of class itemClass from the hotlist.


removeListListener

public void removeListListener(ListListener listener)


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