|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.widgetideas.client.events.AbstractEvent<FiresEvent,HandlerType>
FiresEvent
- source of the eventHandlerType
- type of handler expected for this eventpublic abstract class AbstractEvent<FiresEvent,HandlerType extends EventHandler>
Abstract event type.
Constructor Summary | |
---|---|
protected |
AbstractEvent(FiresEvent source)
|
Method Summary | |
---|---|
void |
cancelEvent()
Cancels the current event. |
protected abstract void |
fire(HandlerType e)
Delegates firing the event to the given handler type. |
FiresEvent |
getSource()
Gets the source of the event. |
boolean |
isCanceled()
Is the event canceled? |
protected void |
tryFire(EventHandler handler)
Try to fire the given event handler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractEvent(FiresEvent source)
Method Detail |
---|
public void cancelEvent()
public FiresEvent getSource()
public boolean isCanceled()
protected abstract void fire(HandlerType e)
e
- eventprotected void tryFire(EventHandler handler)
java.lang.ClassCastException
- if the wrong event handler is used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |