GWT Tk 0.2.3

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

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

public interface Controller
extends EventDelegate

A pluggable event handler which processes delegated events from Widget.onBrowserEvent(Event). Controllers are typically created via a factory method in the widget. Controllers can be added to and removed from the widget at any time by calling plugIn(Widget) and unplug(Widget).

Controllers can be used to:

Usage notes:


Method Summary
 Class getId()
          Get the id of this controller.
 void plugIn(Widget widget)
          Called when the widget is attached to the DOM.
 void unplug(Widget widget)
          Called when the widget is detached from the DOM.
 
Methods inherited from interface asquare.gwt.tk.client.ui.behavior.EventDelegate
getEventBits, onBrowserEvent
 

Method Detail

getId

Class getId()
Get the id of this controller. Used for looking up a controller in a collection. Controllers with a single implementation will return the class of the controller. Controllers with multiple implementations will return the class of the interface or base class.


plugIn

void plugIn(Widget widget)
Called when the widget is attached to the DOM. Use to initialize widget, install special hooks and attach listeners.

Parameters:
widget - the view to control

unplug

void unplug(Widget widget)
Called when the widget is detached from the DOM. Use to remove listeners and null out any references set on the DOM.

Parameters:
widget -

GWT Tk 0.2.3

© 2007 Mat Gessel