Adds an item at the end of the model. The implementation of this method should notify all registered ListDataListeners that the item has been added.
Parameters: - obj - the Object to be added
public void
insertElementAt
(Object obj, int index)
Adds an item at a specific index.
Adds an item at a specific index. The implementation of this method should notify all registered ListDataListeners that the item has been added.
Parameters: - obj - the Object to be added
- index - location to add the object
Removes an item from the model. The implementation of this method should should notify all registered ListDataListeners that the item has been removed.
Parameters: - obj - the Object to be removed
public void
removeElementAt
(int index)
Removes an item at a specific index.
Removes an item at a specific index. The implementation of this method should notify all registered ListDataListeners that the item has been removed.
Parameters: - index - location of object to be removed