GWT Tk 0.2.3

asquare.gwt.tk.client.ui.behavior
Class DragStyleController

java.lang.Object
  extended by asquare.gwt.tk.client.ui.behavior.EventDelegateAdaptor
      extended by asquare.gwt.tk.client.ui.behavior.ControllerAdaptor
          extended by asquare.gwt.tk.client.ui.behavior.DragStyleController
All Implemented Interfaces:
Controller, EventDelegate

public class DragStyleController
extends ControllerAdaptor

A controller which applies the specified style name to the widget.


Constructor Summary
DragStyleController(Widget target, String styleName)
           
 
Method Summary
 void onBrowserEvent(Widget widget, Event event)
          Call this from your widget's onBrowserEvent() method to to delegate events.
 
Methods inherited from class asquare.gwt.tk.client.ui.behavior.ControllerAdaptor
getId, plugIn, unplug
 
Methods inherited from class asquare.gwt.tk.client.ui.behavior.EventDelegateAdaptor
doBrowserEvent, getEventBits
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface asquare.gwt.tk.client.ui.behavior.EventDelegate
getEventBits
 

Constructor Detail

DragStyleController

public DragStyleController(Widget target,
                           String styleName)
Method Detail

onBrowserEvent

public void onBrowserEvent(Widget widget,
                           Event event)
Description copied from interface: EventDelegate
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);
 }
 

Specified by:
onBrowserEvent in interface EventDelegate
Overrides:
onBrowserEvent in class EventDelegateAdaptor
Parameters:
widget - the wiget that originated the event
event - the event

GWT Tk 0.2.3

© 2007 Mat Gessel