Interface Distractable

All Superinterfaces:
EventListener
All Known Implementing Classes:
AbstractPhaseDisplay, ActionPhaseDisplay, AttackPhaseDisplay, ChatLounge, DeploymentDisplay, DeployMinefieldDisplay, DistractableDelegate, FiringDisplay, InfantryVsInfantryCombatDisplay, MovementDisplay, PhysicalDisplay, PointblankShotDisplay, PreEndDeclarationsDisplay, PrephaseDisplay, ReportDisplay, SBFActionPhaseDisplay, SBFFiringDisplay, SBFMovementDisplay, SBFReportDisplay, SelectArtyAutoHitHexDisplay, StatusBarPhaseDisplay, TargetingPhaseDisplay

public interface Distractable extends EventListener
This interface represents an event listener that can be "distracted" to ignore any event notifications.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
    Stop just ignoring events and actually stop listening to them.
    void
    setIgnoringEvents(boolean distracted)
    Specify if the listener should be distracted.
  • Method Details

    • isIgnoringEvents

      boolean isIgnoringEvents()
      Returns:
      true if the listener is currently distracted, i.e. ignoring events.
    • setIgnoringEvents

      void setIgnoringEvents(boolean distracted)
      Specify if the listener should be distracted. An event that occurs while the listener is distracted is completely ignored, i.e. it is not processed, neither when it arrives nor at any later point.
      Parameters:
      distracted - true if the listener should ignore events, false if the listener should pay attention
    • removeAllListeners

      void removeAllListeners()
      Stop just ignoring events and actually stop listening to them.