Class PropertyEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class PropertyEvent
    extends java.util.EventObject
    A property event.
    Version:
    $Revision$
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String name
      Property name.
      private static long serialVersionUID
      The serialVersionUID
      protected java.lang.String value
      Property value.
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyEvent​(java.lang.Object source, java.lang.String name)
      Construct a new PropertyEvent.
      PropertyEvent​(java.lang.Object source, java.lang.String name, java.lang.String value)
      Construct a new PropertyEvent.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPropertyName()
      Get the name of the property that is effected.
      java.lang.String getPropertyValue()
      Get the value of the property that is effected.
      java.lang.String toString()
      Return a string representation of this event.
      • Methods inherited from class java.util.EventObject

        getSource
      • Methods inherited from class java.lang.Object

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

      • serialVersionUID

        private static final long serialVersionUID
        The serialVersionUID
        See Also:
        Constant Field Values
      • name

        protected final java.lang.String name
        Property name.
      • value

        protected final java.lang.String value
        Property value.
    • Constructor Detail

      • PropertyEvent

        public PropertyEvent​(java.lang.Object source,
                             java.lang.String name,
                             java.lang.String value)
        Construct a new PropertyEvent.
        Parameters:
        source - The source of the event.
        name - The property name effected.
        value - The value of the property effected.
        Throws:
        NullArgumentException - Name or source is null.
      • PropertyEvent

        public PropertyEvent​(java.lang.Object source,
                             java.lang.String name)
        Construct a new PropertyEvent.
        Parameters:
        source - The source of the event.
        name - The property name effected.
        Throws:
        NullArgumentException - Name or source is null.
    • Method Detail

      • getPropertyName

        public final java.lang.String getPropertyName()
        Get the name of the property that is effected.
        Returns:
        Property name.
      • getPropertyValue

        public final java.lang.String getPropertyValue()
        Get the value of the property that is effected.
        Returns:
        The value of the property that is effected or null.
      • toString

        public java.lang.String toString()
        Return a string representation of this event.
        Overrides:
        toString in class java.util.EventObject
        Returns:
        A string representation of this event.