|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList
org.progeeks.meta.AbstractListMutator
org.progeeks.meta.DefaultListMutator
public abstract class DefaultListMutator
A default implementation of ListMutator that will work with any MetaObject, given certain restrictions. It can be used as an implementation on its own or subclassed to provide performance improvements in metakit implementation specific cases. Subclasses must implement the firePropertyChangeEvent() event method to support delivery of list change events.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
DefaultListMutator(java.lang.String propertyName,
MetaObject metaObject)
|
Method Summary | |
---|---|
void |
add(int index,
java.lang.Object object)
Adds the object to the list value at the specified index. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds the specified PropertyChangeListener to this mutator. |
protected abstract void |
firePropertyChangeEvent(java.beans.PropertyChangeEvent event)
Implemented by subclasses to deliver a change event to the appropriately registered listeners. |
java.lang.Object |
get(int index)
Returns the object at the specified location. |
protected java.util.List |
getListValue()
|
MetaObject |
getParentObject()
Returns the object that contains this property. |
PropertyInfo |
getPropertyInfo()
Returns the info associated with this property. |
java.lang.String |
getPropertyName()
Returns the name of this property. |
java.lang.Object |
getValue()
Returns the value of this property. |
int |
indexOf(java.lang.Object object)
|
java.lang.Object |
remove(int index)
Removes the object at the specified location and returns the locations value prior to removal. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes the specified PropertyChangeListener from this mutator. |
java.lang.Object |
set(int index,
java.lang.Object object)
Replaces the value at the specified location. |
void |
setValue(java.lang.Object value)
Resets the value of this property. |
int |
size()
Returns the number of elements in the list value. |
Methods inherited from class org.progeeks.meta.AbstractListMutator |
---|
clear, fireElementsInserted, fireElementsModified, fireElementsRemoved |
Methods inherited from class java.util.AbstractList |
---|
add, addAll, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, subList, toArray, toArray |
Constructor Detail |
---|
public DefaultListMutator(java.lang.String propertyName, MetaObject metaObject)
Method Detail |
---|
public java.lang.String getPropertyName()
getPropertyName
in interface PropertyMutator
public MetaObject getParentObject()
getParentObject
in interface PropertyMutator
public PropertyInfo getPropertyInfo()
getPropertyInfo
in interface PropertyMutator
public java.lang.Object getValue()
getValue
in interface PropertyMutator
public void setValue(java.lang.Object value)
setValue
in interface PropertyMutator
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
addPropertyChangeListener
in interface PropertyMutator
addPropertyChangeListener
in interface ObservableList
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
removePropertyChangeListener
in interface PropertyMutator
removePropertyChangeListener
in interface ObservableList
protected java.util.List getListValue()
public int size()
AbstractListMutator
size
in interface java.util.Collection
size
in interface java.util.List
size
in class AbstractListMutator
public void add(int index, java.lang.Object object)
AbstractListMutator
add
in interface java.util.List
add
in class AbstractListMutator
public java.lang.Object set(int index, java.lang.Object object)
AbstractListMutator
set
in interface java.util.List
set
in class AbstractListMutator
public int indexOf(java.lang.Object object)
indexOf
in interface java.util.List
indexOf
in class java.util.AbstractList
public java.lang.Object remove(int index)
AbstractListMutator
remove
in interface java.util.List
remove
in class AbstractListMutator
public java.lang.Object get(int index)
AbstractListMutator
get
in interface java.util.List
get
in class AbstractListMutator
protected abstract void firePropertyChangeEvent(java.beans.PropertyChangeEvent event)
AbstractListMutator
firePropertyChangeEvent
in class AbstractListMutator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |