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, setSelectedIndicespublic 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 ListModelgetItemAt in class DefaultListModelindex - an index into this listpublic void addItem(Object item)
addItem in interface ListModeladdItem in class DefaultListModelitem - the item to be addedpublic void removeItem(int index)
removeItem in interface ListModelremoveItem in class DefaultListModelindex - the index of the item to removed