Class Event


  • public class Event
    extends java.lang.Object
    Simple message struct.
    • Field Summary

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

      Constructors 
      Constructor Description
      Event()
      Create a new event.
      Event​(java.lang.String type, java.lang.Object value, IComponentIdentifier source)
      Create a new event.
    • Field Detail

      • type

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

        protected java.lang.Object value
        The value.
    • Constructor Detail

      • Event

        public Event()
        Create a new event.
      • Event

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

      • 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 java.lang.Object getValue()
        Get the value.
        Returns:
        The value.
      • setValue

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

        public void setSource​(IComponentIdentifier source)
        Set the source.
        Parameters:
        source - The source to set.
      • toString

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