Package jadex.commons

Class ChangeEvent<T>


  • public class ChangeEvent<T>
    extends java.lang.Object
    The basic change event.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Object source
      The source.
      protected java.lang.String type
      The type.
      protected T value
      The value.
    • Constructor Summary

      Constructors 
      Constructor Description
      ChangeEvent()
      Create a new event.
      ChangeEvent​(java.lang.Object source)
      Create a new event.
      ChangeEvent​(java.lang.Object source, java.lang.String type)
      Create a new event.
      ChangeEvent​(java.lang.Object source, java.lang.String type, T value)
      Create a new event.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getSource()
      Get the source.
      java.lang.String getType()
      Get the type.
      T getValue()
      Get the value.
      void setSource​(java.lang.Object source)
      Set the source.
      void setType​(java.lang.String type)
      Set the type.
      void setValue​(T value)
      Set the value.
      java.lang.String toString()
      Get the string respresentation.
      • Methods inherited from class java.lang.Object

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

      • source

        protected java.lang.Object source
        The source.
      • type

        protected java.lang.String type
        The type.
      • value

        protected T value
        The value.
    • Constructor Detail

      • ChangeEvent

        public ChangeEvent()
        Create a new event.
      • ChangeEvent

        public ChangeEvent​(java.lang.Object source)
        Create a new event.
      • ChangeEvent

        public ChangeEvent​(java.lang.Object source,
                           java.lang.String type)
        Create a new event.
      • ChangeEvent

        public ChangeEvent​(java.lang.Object source,
                           java.lang.String type,
                           T value)
        Create a new event.
    • Method Detail

      • getSource

        public java.lang.Object getSource()
        Get the source.
        Returns:
        The source.
      • setSource

        public void setSource​(java.lang.Object source)
        Set the source.
        Parameters:
        source - The source to set.
      • getType

        public java.lang.String getType()
        Get the type.
        Returns:
        The type.
      • setType

        public void setType​(java.lang.String type)
        Set the type.
        Parameters:
        type - The type to set.
      • getValue

        public T getValue()
        Get the value.
        Returns:
        The value.
      • setValue

        public void setValue​(T value)
        Set the value.
        Parameters:
        value - The value to set.
      • toString

        public java.lang.String toString()
        Get the string respresentation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation.