Class TaskTablePanel.UpdateEvent

  • Enclosing class:
    TaskTablePanel

    protected static class TaskTablePanel.UpdateEvent
    extends java.lang.Object
    Holds information about a necessary update on the task panel.
    Version:
    1.0, Aug 23, 2008
    Author:
    stm
    • Constructor Summary

      Constructors 
      Constructor Description
      UpdateEvent​(boolean b)
      Creates a "clear" or "global" event.
      UpdateEvent​(Region r, boolean add)
      Creates a region update event.
      UpdateEvent​(Unit u, boolean add)
      Creates a unit update event.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getObject()
      Returns either the region or the unit for this event whichever is non- null
      Region getRegion()
      Returns the value of region.
      Unit getUnit()
      Returns the value of unit.
      boolean isAdd()
      Returns the value of add.
      • Methods inherited from class java.lang.Object

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

      • UpdateEvent

        public UpdateEvent​(Region r,
                           boolean add)
        Creates a region update event.
        Parameters:
        r - This update concerns a region
        add - true if this region is added to the watched set, false if the corresponding problems should be removed.
      • UpdateEvent

        public UpdateEvent​(Unit u,
                           boolean add)
        Creates a unit update event.
        Parameters:
        u - This update concerns this unit
        add - true if this unit is added to the watched set.
      • UpdateEvent

        public UpdateEvent​(boolean b)
        Creates a "clear" or "global" event.
        Parameters:
        b - If false , clear all problems. If true update global problems.
    • Method Detail

      • getRegion

        public Region getRegion()
        Returns the value of region.
        Returns:
        Returns region.
      • getUnit

        public Unit getUnit()
        Returns the value of unit.
        Returns:
        Returns unit.
      • isAdd

        public boolean isAdd()
        Returns the value of add.
        Returns:
        Returns add.
      • getObject

        public java.lang.Object getObject()
        Returns either the region or the unit for this event whichever is non- null
        Returns:
        Return the object.