com.wirefusion.propertyeditor
Class PropertyEditorCollection

java.lang.Object
  extended by com.wirefusion.propertyeditor.PropertyEditorCollection
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

public class PropertyEditorCollection
extends java.lang.Object
implements java.beans.PropertyChangeListener

PropertyEditorCollection objects are used to bundle property editors. They are used by objects implementing the PropertyEditorCollectionFactory interface.


Constructor Summary
PropertyEditorCollection(PropertyEditorCollectionFactory propertyEditorCollectionFactory)
          Constructs a PropertyEditorCollection object.
 
Method Summary
 void addPropertyEditor(WfPropertyEditor propertyEditor)
          Adds a property editor to the collection
 void destroy()
          Destroys the property collection.
 java.util.Vector getPropertyEditors()
          Returns the property editors in the collection.
 void propertyChange(java.beans.PropertyChangeEvent ev)
          Listens for property changes and updates each property editor when the corresponding property changes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyEditorCollection

public PropertyEditorCollection(PropertyEditorCollectionFactory propertyEditorCollectionFactory)
Constructs a PropertyEditorCollection object.

Parameters:
propertyEditorCollectionFactory - a propertyEditorCollectionFactory object
Method Detail

destroy

public void destroy()
Destroys the property collection. Calla destroyPropertyEditorCollection() in the propertyEditorCollectionFactory object.


propertyChange

public void propertyChange(java.beans.PropertyChangeEvent ev)
Listens for property changes and updates each property editor when the corresponding property changes. When a PropertyEditorCollection has been created, it must be added as a PropertyChangeListener to the object containing the properties. This method listens for property changes and is responsible for updating the values in the property editors when a property changes.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener

addPropertyEditor

public void addPropertyEditor(WfPropertyEditor propertyEditor)
Adds a property editor to the collection

Parameters:
propertyEditor - a property editor

getPropertyEditors

public java.util.Vector getPropertyEditors()
Returns the property editors in the collection.

Returns:
the property editors