org.springframework.binding.value
Interface PropertyChangePublisher

All Known Subinterfaces:
ConfigurableFormModel, DialogPage, DirtyTrackingValueModel, Editor, FieldMetadata, FormModel, HierarchicalFormModel, Messagable, MessagePane, PageComponent, PageComponentDescriptor, ValidatingFormModel, ValidationResultsModel, View, ViewDescriptor, WizardPage
All Known Implementing Classes:
AboutCommand, AbstractCommand, AbstractDerivedValueModel, AbstractDetailForm, AbstractDialogPage, AbstractFormModel, AbstractIndexAdapter, AbstractPropertyChangePublisher, AbstractReporterForm.StateSynchronizingToggleCommand, AbstractReporterTitledApplicationDialog, AbstractValueModel, AbstractView, AbstractWizardPage, ActionCommand, AdjustFontSizeCommand, AlertMessageAreaPane, ApplicationWindowAwareCommand, BasicInputApplicationDialog, BasicRegExpConstraintDialog, BasicTitledApplicationDialog, BasicWizardDialog, BufferedCollectionValueModel, BufferedValueModel, CascadeCommand, CommandFaceDescriptor, CommandGroup, CompositeDialogPage, ContactPropertiesDialog, ContactView, DeepCopyBufferedCollectionValueModel, DefaultFieldFace, DefaultFieldMetadata, DefaultFormModel, DefaultMessageAreaModel, DefaultMessageAreaPane, DefaultValidationResultsModel, DefaultViewDescriptor, DerivedValueModelDialog, DesktopViewDescriptor, DialogCommand, ExceptionHandlingView, ExclusiveCommandGroup, ExitCommand, FlexDockViewDescriptor, FormBackedDialogPage, FormBackedPreferencePage, FormBackedWizardPage, FormModelMediatingValueModel, GenericKeyMapBindingDialog, GrowableIndexAdapter, HelpContentsCommand, HibernateExceptionHandlerCommand, InitialView, InitialView, InputApplicationDialog, JXErrorDialogExceptionHandlerCommand, ListSelectionBindingDialog, ListSelectionValueModelAdapter, LoginCommand, LogoutCommand, LookupViewDescriptor, MapKeyAdapter, MessageFormatValueModel, MessageReportingOverlay, MessagesDialogExceptionHandlerCommand, MethodInvokingDerivedValueModel, MinimizeAllCommand, NewWindowCommand, NumberConversionDialog, OwnerManagerView, ParentChildFormDialog, PreferenceCommand, PreferenceDialog, PreferencePage, ReadOnlyFieldMetadata, RefreshableValueHolder, ScriptedView, SelectField, SetupIntroWizardPage, SetupLicenseWizardPage, SetupWizardDialog, ShowFrameCommand, ShowPageCommand, ShowPageMenu, ShowViewCommand, ShowViewMenu, ShuttleSortableTableDialog, SimpleSelectField, SortTableCommand, StringLenghtConstraintDialog, TabbedDialogPage, TargetableActionCommand, TileCommand, TitleBarTimeStampCommand, TitledApplicationDialog, TitledPageApplicationDialog, TitlePane, ToggleCommand, TreeCompositeDialogPage, ValueHolder, VetManagerView, VLDockingViewDescriptor, WindowManager, WizardDialog

public interface PropertyChangePublisher

Interface implemented by domain objects that can publish property change events. Clients can use this interface to subscribe to the object for change notifications.

Author:
Keith Donald

Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Register a listener to all properties of this publisher.
 void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
          Register a listener to a specific property.
 void removePropertyChangeListener(PropertyChangeListener listener)
          Remove the listener from all properties of this publisher.
 void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
          Remove the listener from a specific property.
 

Method Detail

addPropertyChangeListener

void addPropertyChangeListener(PropertyChangeListener listener)
Register a listener to all properties of this publisher.

Parameters:
listener - the PropertyChangeListener to register.

addPropertyChangeListener

void addPropertyChangeListener(String propertyName,
                               PropertyChangeListener listener)
Register a listener to a specific property.

Parameters:
propertyName - the property to monitor.
listener - the PropertyChangeListener to register.

removePropertyChangeListener

void removePropertyChangeListener(PropertyChangeListener listener)
Remove the listener from all properties of this publisher.

Parameters:
listener - the PropertyChangeListener to remove.

removePropertyChangeListener

void removePropertyChangeListener(String propertyName,
                                  PropertyChangeListener listener)
Remove the listener from a specific property.

Parameters:
propertyName - the property that was being monitored.
listener - the PropertyChangeListener to remove.


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.