public interface ListModel
extends javax.swing.ListModel
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.Object o)
Appends the specified element to the end of this Vector
|
java.util.Vector |
getObjects()
Obtains the objects that are in the model
|
void |
insertAt(int i,
java.lang.Object o)
Inserts the specified element at the specified position in this Vector.
|
java.lang.Object |
remove(int i)
Removes the element at the specified position in this Vector. shifts any
subsequent elements to the left (subtracts one from their indices).
|
java.lang.Object remove(int i)
throws java.lang.ArrayIndexOutOfBoundsException
i - Índice del elemento que se quiere eliminarjava.lang.ArrayIndexOutOfBoundsException - Si el índice está fuera del arrayvoid insertAt(int i,
java.lang.Object o)
i - index at which the specified element is to be inserted.o - element to be inserted.void add(java.lang.Object o)
o - element to be appended to this Vectorjava.util.Vector getObjects()