- groovy.util.ObservableList
-
- All Implemented Interfaces and Traits:
- List
public class ObservableList
extends Object
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-
-
Methods Summary
Methods
Type |
Name and description |
void |
add(int index, Object element)
|
boolean |
add(Object o)
|
boolean |
addAll(Collection c)
|
boolean |
addAll(int index, Collection c)
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
|
void |
addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
|
void |
clear()
|
boolean |
contains(Object o)
|
boolean |
containsAll(Collection c)
|
boolean |
equals(Object o)
|
protected void |
fireElementAddedEvent(int index, Object element)
|
protected void |
fireElementClearedEvent(List values)
|
protected void |
fireElementEvent(ObservableList.ElementEvent event)
|
protected void |
fireElementRemovedEvent(int index, Object element)
|
protected void |
fireElementUpdatedEvent(int index, Object oldValue, Object newValue)
|
protected void |
fireMultiElementAddedEvent(int index, List values)
|
protected void |
fireMultiElementRemovedEvent(List values)
|
protected void |
fireSizeChangedEvent(int oldValue, int newValue)
|
Object |
get(int index)
|
List |
getContent()
|
protected List |
getDelegateList()
|
PropertyChangeListener[] |
getPropertyChangeListeners()
|
PropertyChangeListener[] |
getPropertyChangeListeners(String propertyName)
|
int |
getSize()
|
protected Closure |
getTest()
|
boolean |
hasListeners(String propertyName)
|
int |
hashCode()
|
int |
indexOf(Object o)
|
boolean |
isEmpty()
|
Iterator |
iterator()
|
int |
lastIndexOf(Object o)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int index)
|
Object |
remove(int index)
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
|
void |
removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
|
boolean |
retainAll(Collection c)
|
Object |
set(int index, Object element)
|
int |
size()
|
List |
subList(int fromIndex, int toIndex)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] a)
|
-
Inherited Methods Summary
-
-
Field Detail
-
public static final String CONTENT_PROPERTY
-
public static final String SIZE_PROPERTY
-
Constructor Detail
-
public ObservableList(List delegate)
-
public ObservableList(Closure test)
-
Method Detail
-
public void add(int index, Object element)
-
public boolean contains(Object o)
-
public boolean equals(Object o)
-
protected void fireElementAddedEvent(int index, Object element)
-
protected void fireElementClearedEvent(List values)
-
protected void fireElementRemovedEvent(int index, Object element)
-
protected void fireElementUpdatedEvent(int index, Object oldValue, Object newValue)
-
protected void fireMultiElementAddedEvent(int index, List values)
-
protected void fireMultiElementRemovedEvent(List values)
-
protected void fireSizeChangedEvent(int oldValue, int newValue)
-
protected List getDelegateList()
-
public boolean hasListeners(String propertyName)
-
public int lastIndexOf(Object o)
-
public Object remove(int index)
-
public boolean remove(Object o)
-
public List subList(int fromIndex, int toIndex)
Copyright © 2003-2015 The Apache Software Foundation. All rights reserved.