|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.graphics.controls.ControlCallbackEvent
public class ControlCallbackEvent
Defines a callback event from a control. It could be polymorphic, but for simplicity in teaching, it combines all possible states and expects the originator and recipient to agree on which are valid.
| Nested Class Summary | |
|---|---|
static class |
ControlCallbackEvent.E_StateChange
Provides the interpretation of an event. |
| Field Summary | |
|---|---|
private java.lang.String |
_id
the unique event identifier |
private ControlCallbackEvent.E_StateChange |
_stateChange
the state change as a result of the event |
| Constructor Summary | |
|---|---|
ControlCallbackEvent(java.lang.String id)
Creates a callback event with no state change. |
|
ControlCallbackEvent(java.lang.String id,
ControlCallbackEvent.E_StateChange stateChange)
Creates a callback event. |
|
| Method Summary | |
|---|---|
java.lang.String |
getID()
Gets the unique event identifier. |
ControlCallbackEvent.E_StateChange |
getStateChange()
Gets the state change as a result of the event. |
boolean |
hasStateChange()
Returns whether there is a state change. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final java.lang.String _id
private final ControlCallbackEvent.E_StateChange _stateChange
| Constructor Detail |
|---|
public ControlCallbackEvent(java.lang.String id)
id - - the unique event identifier
public ControlCallbackEvent(java.lang.String id,
ControlCallbackEvent.E_StateChange stateChange)
id - - the unique event identifierstateChange - - the state change as a result of the event| Method Detail |
|---|
public java.lang.String getID()
public ControlCallbackEvent.E_StateChange getStateChange()
public boolean hasStateChange()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||