asquare.gwt.tk.client.ui
Class DelegatingWrapper
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
asquare.gwt.tk.client.ui.EventWrapper
asquare.gwt.tk.client.ui.DelegatingWrapper
- All Implemented Interfaces:
- EventListener
public class DelegatingWrapper
- extends EventWrapper
A widget wrapper which delegates events to an
EventDelegate. The
wrapped widget will allowed to process events before they are passed to the
delegate.
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleName, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getTitle, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
DelegatingWrapper
public DelegatingWrapper(Widget widget,
EventDelegate delegate)
- Throws:
NullPointerException - if widget or delegate are null
onBrowserEvent
public void onBrowserEvent(Event event)
- Description copied from class:
EventWrapper
- Override to process browser events. Don't forget to call super
implementation if you want the wrapped widget to process events also.
- Specified by:
onBrowserEvent in interface EventListener- Overrides:
onBrowserEvent in class EventWrapper
© 2007 Mat Gessel