|
GWT Tk 0.2.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectasquare.gwt.tk.client.ui.behavior.EventDelegateAdaptor
public abstract class EventDelegateAdaptor
| Constructor Summary | |
|---|---|
EventDelegateAdaptor()
Default constructor for convienence. |
|
EventDelegateAdaptor(int eventBits)
Creates an event delegate which is interested in the specified bits. |
|
| Method Summary | |
|---|---|
protected boolean |
doBrowserEvent(Widget widget,
Event event)
A convenience method for processing events. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventDelegateAdaptor()
getEventBits() if they want to process events.
public EventDelegateAdaptor(int eventBits)
eventBits - a bitmask of the events to processEvent| Method Detail |
|---|
public void onBrowserEvent(Widget widget,
Event event)
EventDelegateExample:
public void onBrowserEvent(Event event)
{
super.onBrowserEvent(event);
delegate.onBrowserEvent(this, event);
}
onBrowserEvent in interface EventDelegatewidget - the wiget that originated the eventevent - the event
protected boolean doBrowserEvent(Widget widget,
Event event)
public int getEventBits()
getEventBits in interface EventDelegateEvent
|
GWT Tk 0.2.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||