Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main.account
Class AccountListModel

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

public class AccountListModel
extends DefaultListModel

A custom list model that allows us to refresh the content of a single row.

Author:
Yana Stamcheva
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
AccountListModel()
           
 
Method Summary
 void addAccount(Account account)
          Adds the given account to this model.
 void contentChanged(Account account)
          Indicates that the data model content has changed.
 Account getAccount(AccountID accountID)
          Returns true if an account with the given accountUID is contained in the model, otherwise returns false.
 
Methods inherited from class javax.swing.DefaultListModel
add, addElement, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, getElementAt, getSize, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, set, setElementAt, setSize, size, toArray, toString, trimToSize
 
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, wait, wait, wait
 

Constructor Detail

AccountListModel

public AccountListModel()
Method Detail

contentChanged

public void contentChanged(Account account)
Indicates that the data model content has changed.

Parameters:
account - the account that has changed

addAccount

public void addAccount(Account account)
Adds the given account to this model.

Parameters:
account - the Account to add

getAccount

public Account getAccount(AccountID accountID)
Returns true if an account with the given accountUID is contained in the model, otherwise returns false.

Parameters:
accountID - the identifier of the account we're looking for
Returns:
true if an account with the given accountUID is contained in the model, otherwise returns false

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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