// skip all properties whose value is a closure
def map = new ObservableList( {!(it instanceof Closure)} )
// skip all properties whose name matches a regex
def map = new ObservableList( { name, value -> !(name =˜ /[A-Z+]/) } )
The current implementation will trigger specialized events in the following scenarios, you need
not register a different listener as those events extend from PropertyChangeEvent
Bound properties
| Modifier and Type | Class and Description |
|---|---|
| public static enum | |
| public static class | |
| public static class | |
| public abstract static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| protected class | |
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private final List | |
| private final PropertyChangeSupport | |
| public static final String | |
| private final Closure |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(int
index at which the specified element is to be inserted index, Object element to be inserted element)Implements java. |
| public boolean | add(Object
element to be appended to this list o)Implements java. |
| public boolean | addAll(Collection<E>
collection containing elements to be added to this list c)Implements java. |
| public boolean | addAll(int
index at which to insert the first element from the
specified collection index, Collection<E> collection containing elements to be added to this list c)Implements java. |
| public void | |
| public void | |
| public void | clear()
Implements java. |
| public boolean | contains(Object
element whose presence in this list is to be tested o)Implements java. true if this list contains the specified element.
|
| public boolean | containsAll(Collection<E>
collection to be checked for containment in this list c)Implements java. true if this list contains all of the elements of the
specified collection.
|
| public boolean | equals(Object
the object to be compared for equality with this list o)Overrides java. Implements java. |
| private void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public Object | get(int
index of the element to return index)Implements java. |
| public List | |
| protected List | |
| public PropertyChangeListener[] | |
| public PropertyChangeListener[] | |
| public int | |
| protected Closure | |
| public int | hashCode()
Overrides java. Implements java. |
| public boolean | |
| public int | indexOf(Object
element to search for o)Implements java. |
| public boolean | |
| public Iterator | iterator()
Implements java. |
| public int | lastIndexOf(Object
element to search for o)Implements java. |
| public ListIterator | listIterator()
Implements java. |
| public ListIterator | listIterator(int
index of the first element to be returned from the
list iterator (by a call to index)next)Implements java. |
| public Object | remove(int
the index of the element to be removed index)Implements java. |
| public boolean | remove(Object
element to be removed from this list, if present o)Implements java. |
| public boolean | removeAll(Collection<E>
collection containing elements to be removed from this list c)Implements java. |
| public void | |
| public void | |
| public boolean | retainAll(Collection<E>
collection containing elements to be retained in this list c)Implements java. |
| public Object | set(int
index of the element to replace index, Object element to be stored at the specified position element)Implements java. |
| public int | |
| public List | subList(int
low endpoint (inclusive) of the subList fromIndex, int high endpoint (exclusive) of the subList toIndex)Implements java. fromIndex, inclusive, and toIndex, exclusive.
|
| public Object[] | toArray()
Implements java. |
| public Object[] | toArray(Object[]
the array into which the elements of this list are to
be stored, if it is big enough; otherwise, a new array of the
same runtime type is allocated for this purpose. a)Implements java. |