Interface SharedDataManager

All Known Implementing Classes:
PAccountCreationWizard, PPurchaseOfferingWizard, PValidatingWizard

public interface SharedDataManager
Specification for a manager of (subclasses of) SharedData.
See Also:
  • Method Details

    • getSharedData

      SharedData getSharedData()
      Returns the shared data.
      Returns:
      Shared data.
    • addSharedDataVetoableListener

      void addSharedDataVetoableListener(String propertyName, VetoableChangeListener listener)
      Allows a listener to register for vetoable notification of bound property changes.
      Parameters:
      propertyName - The name of the property to listen on.
      listener - The PropertyChangeListener to be added.
    • removeSharedDataVetoableListener

      void removeSharedDataVetoableListener(String propertyName, VetoableChangeListener listener)
      Allows a listener to unregister for vetoable notification of bound property changes.
      Parameters:
      propertyName - The name of the property to listen on.
      listener - The PropertyChangeListener to be added.
    • fireSharedDataVetoableNotification

      void fireSharedDataVetoableNotification(String propertyName, Object oldValue, Object newValue) throws PropertyVetoException
      Provides notification that a bound property is about to change, and gives the listeners an opportunity to reject the change.
      Parameters:
      propertyName - The programmatic name of the property that was changed
      oldValue - The old value of the property
      newValue - The new value of the property
      Throws:
      PropertyVetoException
    • hasVetoListeners

      boolean hasVetoListeners(String propertyName)
      Determines if there are veto listeners for the given property
      Parameters:
      propertyName - The property name
      Returns:
      true if there are listeners; false otherwise
    • addSharedDataListener

      void addSharedDataListener(String propertyName, PropertyChangeListener listener)
      Adds a shared data listener (a PropertyChangeListener) for a specific property. The listener will be invoked only when a call on fireSharedDataChangedNotification names that specific property.
      Parameters:
      propertyName - The name of the property to listen on.
      listener - The PropertyChangeListener to be added.
    • removeSharedDataListener

      void removeSharedDataListener(String propertyName, PropertyChangeListener listener)
      Removes a shared data listener (a PropertyChangeListener) for a specific property.
      Parameters:
      propertyName - The name of the property that was listened on.
      listener - The PropertyChangeListener to be removed.
    • hasListeners

      boolean hasListeners(String propertyName)
      Checks if there are any listeners for a specific property.
      Parameters:
      propertyName - the property name.
      Returns:
      true if there are ore or more listeners for the given property
    • fireSharedDataChangedNotification

      void fireSharedDataChangedNotification(String propertyName, Object oldValue, Object newValue)
      Reports a bound property update to any registered listeners. No event is fired if old and new are equal and non-null.
      Parameters:
      propertyName - The programmatic name of the property that was changed
      oldValue - The old value of the property
      newValue - The new value of the property