org.jbeans
Class SynchronizedIndexedBeanProperty
java.lang.Object
|
+--org.jbeans.BaseBeanProperty
|
+--org.jbeans.BeanProperty
|
+--org.jbeans.IndexedBeanProperty
|
+--org.jbeans.SynchronizedIndexedBeanProperty
- public class SynchronizedIndexedBeanProperty
- extends IndexedBeanProperty
This class is identical to its parent except that it is thread safe.
- Author:
- Brian Pontarelli
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SynchronizedIndexedBeanProperty
protected SynchronizedIndexedBeanProperty()
throws BeanException
- Constructs a new instance of the thread safe IndexedBeanProperty
SynchronizedIndexedBeanProperty
public SynchronizedIndexedBeanProperty(String propertyName,
Class beanClass)
throws BeanException
- Constructs a new instance of the thread safe IndexedBeanProperty
addPropertyListener
public void addPropertyListener(PropertyListener listener)
- This method is the same as the
addPropertyListener() method in the BaseBeanProperty class,
except that it is thread safe.
- Overrides:
addPropertyListener in class BaseBeanProperty
- Following copied from class:
org.jbeans.BaseBeanProperty
- Parameters:
listener - The new property listener to add to the list
removePropertyListener
public void removePropertyListener(PropertyListener listener)
- This method is the same as the
removePropertyListener() method in the BaseBeanProperty class,
except that it is thread safe.
- Overrides:
removePropertyListener in class BaseBeanProperty
- Following copied from class:
org.jbeans.BaseBeanProperty
- Parameters:
listener - The property listener to remove from the list
getPropertyListeners
public Iterator getPropertyListeners()
- Synchronized get property listeners method. Since this must also safety the
fireEvent method, this makes a clone of the list and returns the iterator for
the clone
- Overrides:
getPropertyListeners in class BaseBeanProperty
- Following copied from class:
org.jbeans.BaseBeanProperty
- Returns:
- An interator for the list of property listeners
hasPropertyListeners
public boolean hasPropertyListeners()
- This method is the same as the
hasPropertyListeners() method in the BaseBeanProperty class,
except that it is thread safe.
- Overrides:
hasPropertyListeners in class BaseBeanProperty
- Following copied from class:
org.jbeans.BaseBeanProperty
- Returns:
- True or false depending on if there are property listeners or not
addConversionListener
public void addConversionListener(ConversionListener listener)
- This method is the same as the
addConversionListener() method in the BaseBeanProperty class,
except that it is thread safe.
- Overrides:
addConversionListener in class BaseBeanProperty
- Following copied from class:
org.jbeans.BaseBeanProperty
- Parameters:
listener - The new conversion listener to add to the list
removeConversionListener
public void removeConversionListener(ConversionListener listener)
- This method is the same as the
removeConversionListener() method in the BaseBeanProperty class,
except that it is thread safe.
- Overrides:
removeConversionListener in class BaseBeanProperty
- Following copied from class:
org.jbeans.BaseBeanProperty
- Parameters:
listener - The conversion listener to remove from the list
getConversionListeners
public Iterator getConversionListeners()
- Synchronized get conversion listeners method. Since this must also safety the
fireEvent method, this makes a clone of the list and returns the iterator for
the clone
- Overrides:
getConversionListeners in class BaseBeanProperty
hasConversionListeners
public boolean hasConversionListeners()
- This method is the same as the
hasConversionListeners() method in the BaseBeanProperty class,
except that it is thread safe.
- Overrides:
hasConversionListeners in class BaseBeanProperty