|
GWT Tk 0.2.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventDelegate
An EventDelegate processes events from a widget.
Example:
To override default focus behavior you need to preview and
cancel tab events. The KeyboardListener interface does not receive the actual
events. EventPreview is really intended for popups and dialogs and will not
function if another popup/dialog is shown (think a non-modal dialog or popup
without autoclose). A solution is to have widget can delegate events to a
focus manager implementing EventDelegate.
| Method Summary | |
|---|---|
int |
getEventBits()
Get a bitmask representing events this delegate is interested in processing. |
void |
onBrowserEvent(Widget widget,
Event event)
Call this from your widget's onBrowserEvent() method to to delegate events. |
| Method Detail |
|---|
int getEventBits()
Event
void onBrowserEvent(Widget widget,
Event event)
Example:
public void onBrowserEvent(Event event)
{
super.onBrowserEvent(event);
delegate.onBrowserEvent(this, event);
}
widget - the wiget that originated the eventevent - the event
|
GWT Tk 0.2.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||