public class JDnDListModel extends AbstractListModel
listenerList
Constructor and Description |
---|
JDnDListModel() |
Modifier and Type | Method and Description |
---|---|
boolean |
addElement(int j,
Object element)
Adds a new element at the position indicated by pos of the list.
|
boolean |
addElement(Object element)
Adds a new element at the position indicated by pos of the list.
|
void |
clear()
Removes any item currently contained by this list.
|
void |
delElements(Collection c)
Removes every elements contained in the collection from this list.
|
void |
delIndices(int[] indices)
Removes the items of the list mentioned by the index array passed as argument.
|
Object |
getElementAt(int index) |
ArrayList |
getElements()
Returns an ArrayList containing the elements of this list.
|
int |
getSize() |
boolean |
insertElement(int index,
Object element)
Inserts a new element into the list at the position mentioned in the index param.
|
void |
insertItems(int index,
Collection objects)
Inserts a collection of items before the specified index
|
void |
itemsMoved(int newIndex,
int[] indicies) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
public void insertItems(int index, Collection objects)
public boolean insertElement(int index, Object element)
index
- item
- public boolean addElement(int j, Object element)
j
- pos
- public boolean addElement(Object element)
j
- pos
- public void delElements(Collection c)
public void delIndices(int[] indices)
indices
- public void itemsMoved(int newIndex, int[] indicies)
public int getSize()
public Object getElementAt(int index)
public void clear()
public ArrayList getElements()