public class ModelObjectList
extends java.lang.Object
Constructor and Description |
---|
ModelObjectList()
Default constructor.
|
ModelObjectList(ModelObjectList sourceList)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void | addData(int index, java.lang.Object data)
Insert an object at the specified index.
|
void | addData(java.lang.Object data)
Append an object to the end of this list.
|
void | addData(java.lang.Object[] data)
Append objects to the end of this list
|
void | clear()
Removes all the objects from the list Same as clear(false)
|
void | clear(boolean singleNotification)
Removes all of the objects from the list.
|
boolean | contains(java.lang.Object object)
Returns true if the specified object is contained in this list.
|
java.lang.Object | findData(java.lang.Object data)
Returns the first instance in the list of an object that is equal to the specified object.
|
java.lang.Object | getData(int index)
Get the object at the specified index location in this list.
|
ModelObject | getParent()
Returns the model object that has this model object list as a property.
|
int | indexOf(java.lang.Object data)
Returns the index of the first instance in the list of an object that is equal to the specified object.
|
boolean | isEmpty()
Tests if this list has no elements.
|
void | removeData(java.lang.Object data)
Remove an object from the list.
|
void | removeData(java.lang.Object[] data)
Remove given objects from the list.
|
java.lang.Object | setData(int index, java.lang.Object data)
Replace an object at the specified index location in this list.
|
java.lang.Object[] | setData(java.lang.Object[] data)
Replaces the entire list with the given data
|
void | setParent(ModelObject parent, java.lang.String propertyName)
Sets the parent model object.
|
int | size()
Returns the number of objects in this list.
|
java.lang.Object[] | toArray(java.lang.Object[] a)
Returns an array containing all of the objects in this list.
|
public ModelObjectList()
public ModelObjectList(ModelObjectList sourceList)
public ModelObject getParent()
public void setParent(ModelObject parent, java.lang.String propertyName)
public int size()
public java.lang.Object setData(int index, java.lang.Object data)
public java.lang.Object[] setData(java.lang.Object[] data)
public java.lang.Object getData(int index)
public void addData(java.lang.Object data)
public void addData(java.lang.Object[] data)
public void addData(int index, java.lang.Object data)
public void removeData(java.lang.Object data)
public void removeData(java.lang.Object[] data)
public java.lang.Object[] toArray(java.lang.Object[] a)
public void clear(boolean singleNotification)
public void clear()
public boolean contains(java.lang.Object object)
public java.lang.Object findData(java.lang.Object data)
public int indexOf(java.lang.Object data)
public boolean isEmpty()