megamek.common.util
Interface Distractable

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
AbstractPhaseDisplay, AbstractPhaseDisplay, ChatLounge, ChatLounge, DeploymentDisplay, DeploymentDisplay, DeployMinefieldDisplay, DeployMinefieldDisplay, DistractableAdapter, FiringDisplay, FiringDisplay, MovementDisplay, MovementDisplay, PhysicalDisplay, PhysicalDisplay, ReportDisplay, ReportDisplay, SelectArtyAutoHitHexDisplay, SelectArtyAutoHitHexDisplay, StatusBarPhaseDisplay, StatusBarPhaseDisplay, TargetingPhaseDisplay, TargetingPhaseDisplay

public interface Distractable
extends java.util.EventListener

This interface represents an event listener that can be "distracted" so as to ignore any event notifications. Created on February 29, 2004

Version:
1
Author:
James Damour

Method Summary
 boolean isIgnoringEvents()
          Determine if the listener is currently distracted.
 void removeAllListeners()
          Stop just ignoring events and actually stop listening to them.
 void setIgnoringEvents(boolean distracted)
          Specify if the listener should be distracted.
 

Method Detail

isIgnoringEvents

boolean isIgnoringEvents()
Determine if the listener is currently distracted.

Returns:
true if the listener is ignoring events.

setIgnoringEvents

void setIgnoringEvents(boolean distracted)
Specify if the listener should be distracted.

Parameters:
distract - true if the listener should ignore events false if the listener should pay attention again. Events that occured while the listener was distracted NOT going to be processed.

removeAllListeners

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