GWT Tk 0.2.3

asquare.gwt.tk.client.ui.behavior
Interface EventDelegate

All Known Subinterfaces:
Controller, GlassPanelController, TabFocusController
All Known Implementing Classes:
AbstractTabFocusController, AlertDialog.ArrowKeyFocusController, AlertDialog.HotKeyController, ControllerAdaptor, DragController, DragStyleController, DropDownPanel.OpenerController, EventDelegateAdaptor, GlassPanelControllerIE6, GlassPanelControllerIE6ImplQuirks, GlassPanelControllerIE6ImplStrict, GlassPanelControllerSafari, GlassPanelControllerStandard, ModalDialog.FocusOnCloseController, ModalDialog.InitializeFocusController, ModalDialog.PositionDialogController, ModalDialog.PositionDialogControllerIE6, PreventSelectionController, PreventSelectionControllerIE6, PreventSelectionControllerStandard, TabFocusControllerMozilla, TabFocusControllerStandard, TabFocusControllerStub

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

getEventBits

int getEventBits()
Get a bitmask representing events this delegate is interested in processing.

Returns:
a bitmask of the events to process
See Also:
Event

onBrowserEvent

void onBrowserEvent(Widget widget,
                    Event event)
Call this from your widget's onBrowserEvent() method to to delegate events.

Example:

 public void onBrowserEvent(Event event)
 {
   super.onBrowserEvent(event);
   delegate.onBrowserEvent(this, event);
 }
 

Parameters:
widget - the wiget that originated the event
event - the event

GWT Tk 0.2.3

© 2007 Mat Gessel