public abstract class CollectionProperty<T,K> extends PropertyBase<T,K> implements Iterable<T>
Constructor and Description |
---|
CollectionProperty(String name) |
CollectionProperty(String name,
Class genericType) |
Modifier and Type | Method and Description |
---|---|
abstract K |
add(T v)
Adds a property value to the collection and fires a change event if collection has changed
|
abstract K |
addAll(Collection<? extends T> v)
Adds a collection of values to the collection and fires a change event if the collection has changed
|
abstract List<Object> |
asExplodedList()
Returns a copy of the content as a new list but if the value is a PropertyBusinessObject it will
be converted to a Map
|
abstract List<T> |
asList()
Returns a copy of the content as a new list
|
abstract void |
clear()
Remove all the elements from the collection and fires a change event
|
abstract boolean |
contains(T element)
Returns true if the given element is contained in the collection property
|
abstract Iterator<T> |
iterator()
Iterate over the elements of the property
|
abstract K |
remove(int offset)
Removes the given item
|
abstract K |
remove(T v)
Removes the given item
|
abstract K |
removeAll(Collection<? extends T> v)
Removes from this collection all of its elements that are contained in the specified collection
and fires a change event if the collection has changed
|
abstract K |
set(Collection<T> t)
Sets the entire content of the property
|
abstract int |
size()
The size of the property collection
|
addChangeListener, bindGlobalGetListener, bindGlobalSetListener, equals, firePropertyChanged, getClientProperty, getGenericType, getLabel, getName, putClientProperty, removeChangeListener, setLabel, stopListening, toString, validateCollectionType
public CollectionProperty(String name)
public abstract int size()
public abstract K set(Collection<T> t)
t
- the collection of elements to setpublic abstract K add(T v)
v
- the new valuepublic abstract K addAll(Collection<? extends T> v)
v
- the collection of values to addpublic abstract K remove(int offset)
offset
- the indexpublic abstract K removeAll(Collection<? extends T> v)
v
- the collection of values to removepublic abstract List<Object> asExplodedList()
public abstract void clear()
public abstract boolean contains(T element)
element
- the element