|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.util.DistractableAdapter
public class DistractableAdapter
This class implements the Distractable interface. It is
intended to be the underlying implementation for any class that implements
the interface. Created on February 29, 2004
| Constructor Summary | |
|---|---|
DistractableAdapter()
Create a Distractable object. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DistractableAdapter()
Distractable object.
| Method Detail |
|---|
public boolean isIgnoringEvents()
isIgnoringEvents in interface Distractabletrue if the listener is ignoring events.public void setIgnoringEvents(boolean distracted)
setIgnoringEvents in interface Distractabledistract - 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.public void removeAllListeners()
removeAllListeners in interface Distractable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||