|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.livescribe.event.Event
public class Event
This is the base class for penlet and menu events.
Events can be marked as consumed by calling consume().
This is useful for when events are passed along a chain of handlers and
those handlers that understand this concept can choose to respect this
flag. This is useful, for example, when plugins need to diallow an event
from propagating. Note that this is a flag used in an advisory fashion.
| Field Summary | |
|---|---|
protected boolean |
consumed
Whether the event is marked as consumed. |
int |
eventId
The event ID. |
| Constructor Summary | |
|---|---|
protected |
Event(int id)
Creates a new event having the specified ID. |
| Method Summary | |
|---|---|
void |
consume()
Marks this event as consumed. |
int |
getId()
Returns the event's ID, an integer. |
boolean |
isConsumed()
Checks if this event is marked as consumed. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int eventId
protected boolean consumed
| Constructor Detail |
|---|
protected Event(int id)
id - the event ID| Method Detail |
|---|
public int getId()
public void consume()
isConsumed()public boolean isConsumed()
false.
consume()
|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||