public class ChatContactListModel extends javax.swing.AbstractListModel<ChatContact<?>> implements ChatRoomMemberPropertyChangeListener
Constructor and Description |
---|
ChatContactListModel(ChatSession chatSession)
Creates the model.
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(ChatContact<?> chatContact)
Adds a specific ChatContact to this AbstractListModel
implementation and preserves the sorting it applies.
|
void |
chatRoomPropertyChanged(ChatRoomMemberPropertyChangeEvent ev)
Listens for property change in chat room members.
|
void |
dispose()
Runs clean-up.
|
ChatContact<?> |
getElementAt(int index) |
int |
getSize() |
void |
removeAllElements()
Removes all the elements from this model.
|
void |
removeElement(ChatContact<?> chatContact)
Removes a specific ChatContact from this
AbstractListModel implementation.
|
public ChatContactListModel(ChatSession chatSession)
chatSession
- The current model chat session.public void chatRoomPropertyChanged(ChatRoomMemberPropertyChangeEvent ev)
chatRoomPropertyChanged
in interface ChatRoomMemberPropertyChangeListener
ev
- the eventpublic void addElement(ChatContact<?> chatContact)
chatContact
- a ChatContact to be added to this
AbstractListModelpublic ChatContact<?> getElementAt(int index)
getElementAt
in interface javax.swing.ListModel<ChatContact<?>>
public int getSize()
getSize
in interface javax.swing.ListModel<ChatContact<?>>
public void removeElement(ChatContact<?> chatContact)
chatContact
- a ChatContact to be removed from this
AbstractListModel if it's already containedpublic void removeAllElements()
public void dispose()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.