Class PropertyChangeAdapter

  • All Implemented Interfaces:
    PropertyChangeListener

    public class PropertyChangeAdapter
    extends java.lang.Object
    implements PropertyChangeListener
    An adapter class that allows to specify a config object for later use.
    Author:
    IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Object configObject  
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyChangeAdapter​(java.lang.Object configObject)
      Create a new PropertyChangeAdapter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void propertyChanged​(Property property, java.lang.Object oldValue, java.lang.Object newValue)
      Called before the Property value is changed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • configObject

        protected java.lang.Object configObject
    • Constructor Detail

      • PropertyChangeAdapter

        public PropertyChangeAdapter​(java.lang.Object configObject)
        Create a new PropertyChangeAdapter.
        Parameters:
        configObject - a custom config object.
    • Method Detail

      • propertyChanged

        public void propertyChanged​(Property property,
                                    java.lang.Object oldValue,
                                    java.lang.Object newValue)
                             throws PropertyChangeException
        Description copied from interface: PropertyChangeListener
        Called before the Property value is changed. It is expected that this method throws a PropertyChangeException if any error occurs. If no exception is thrown, the new value will be set for this Property.
        Specified by:
        propertyChanged in interface PropertyChangeListener
        Parameters:
        property - the Property.
        oldValue - the old value.
        newValue - the new value.
        Throws:
        PropertyChangeException - on error.