Class TempUnitEvent

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CREATED
      An event indicating that a temp unit was created.
      static int DELETING
      An event indicating that a temp unit is about to be deleted.
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      TempUnitEvent​(java.lang.Object source, TempUnit temp, int type)
      Creates an event object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TempUnit getTempUnit()
      Returns the temporary unit affected.
      int getType()
      Returns whether the temp unit was created or deleted.
      • 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

      • CREATED

        public static final int CREATED
        An event indicating that a temp unit was created.
        See Also:
        Constant Field Values
      • DELETING

        public static final int DELETING
        An event indicating that a temp unit is about to be deleted.
        See Also:
        Constant Field Values
    • Constructor Detail

      • TempUnitEvent

        public TempUnitEvent​(java.lang.Object source,
                             TempUnit temp,
                             int type)
        Creates an event object.
        Parameters:
        source - the object that originated the event.
        temp - the temporary unit affected by this event.
        type - specifies whether the temp unit was created or is being deleted.
    • Method Detail

      • getTempUnit

        public TempUnit getTempUnit()
        Returns the temporary unit affected.
      • getType

        public int getType()
        Returns whether the temp unit was created or deleted.