Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main.chatroomslist
Class ChatRoomListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by net.java.sip.communicator.impl.gui.main.chatroomslist.ChatRoomListModel
All Implemented Interfaces:
Serializable, ListModel

public class ChatRoomListModel
extends AbstractListModel

Author:
Yana Stamcheva
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
ChatRoomListModel()
           
 
Method Summary
 void contentAdded(int startIndex, int endIndex)
          Informs interested listeners that new cells are added from startIndex to endIndex.
 void contentChanged(int startIndex, int endIndex)
          Informs interested listeners that the content has changed of the cells given by the range from startIndex to endIndex.
 void contentRemoved(int startIndex, int endIndex)
          Informs interested listeners that a range of cells is removed.
 Object getElementAt(int index)
           
 int getSize()
           
 int indexOf(Object o)
           
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatRoomListModel

public ChatRoomListModel()
Method Detail

getElementAt

public Object getElementAt(int index)

getSize

public int getSize()

indexOf

public int indexOf(Object o)

contentChanged

public void contentChanged(int startIndex,
                           int endIndex)
Informs interested listeners that the content has changed of the cells given by the range from startIndex to endIndex.

Parameters:
startIndex - The start index of the range .
endIndex - The end index of the range.

contentAdded

public void contentAdded(int startIndex,
                         int endIndex)
Informs interested listeners that new cells are added from startIndex to endIndex.

Parameters:
startIndex - The start index of the range .
endIndex - The end index of the range.

contentRemoved

public void contentRemoved(int startIndex,
                           int endIndex)
Informs interested listeners that a range of cells is removed.

Parameters:
startIndex - The start index of the range.
endIndex - The end index of the range.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.