public class ContactsModel extends DefaultListModel
Constructor and Description |
---|
ContactsModel(String... ids)
Constructor with contacts ids
|
Modifier and Type | Method and Description |
---|---|
void |
addItem(Object item)
Adds the specified item to the end of this list.
|
Object |
getItemAt(int index)
Returns the item at the given offset
|
void |
removeItem(int index)
Removes the item at the specified position in this list.
|
void |
setPlaceHolderImage(Image placeHolder)
Sets the Contacts place holder image.
|
addDataChangedListener, addItemAtIndex, addSelectedIndices, addSelectionListener, fireDataChangedEvent, getList, getSelectedIndex, getSelectedIndices, getSize, isMultiSelectionMode, removeAll, removeDataChangedListener, removeSelectedIndices, removeSelectionListener, setItem, setMultiSelectionMode, setSelectedIndex, setSelectedIndices
public ContactsModel(String... ids)
ids
- the contact ids we would like this model to handlepublic void setPlaceHolderImage(Image placeHolder)
placeHolder
- image place holder for the contactspublic Object getItemAt(int index)
getItemAt
in interface ListModel
getItemAt
in class DefaultListModel
index
- an index into this listpublic void addItem(Object item)
addItem
in interface ListModel
addItem
in class DefaultListModel
item
- the item to be addedpublic void removeItem(int index)
removeItem
in interface ListModel
removeItem
in class DefaultListModel
index
- the index of the item to removed