diff options
author | Artur Signell <artur.signell@itmill.com> | 2009-11-25 14:33:16 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2009-11-25 14:33:16 +0000 |
commit | a23903bf21edeafa91a2a731d55698bbf3b95770 (patch) | |
tree | 759a22e68dfc21358cb522118bde1159ad3c282b /src/com/vaadin/terminal/gwt/client/ComponentDetail.java | |
parent | e5caa74cc45cdd63a0edae9989010699dfaea1be (diff) | |
download | vaadin-framework-a23903bf21edeafa91a2a731d55698bbf3b95770.tar.gz vaadin-framework-a23903bf21edeafa91a2a731d55698bbf3b95770.zip |
Work in progress
svn changeset:10026/svn branch:event-framework-3234
Diffstat (limited to 'src/com/vaadin/terminal/gwt/client/ComponentDetail.java')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ComponentDetail.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ComponentDetail.java b/src/com/vaadin/terminal/gwt/client/ComponentDetail.java index 8f39733ef1..2d7f28dd4b 100644 --- a/src/com/vaadin/terminal/gwt/client/ComponentDetail.java +++ b/src/com/vaadin/terminal/gwt/client/ComponentDetail.java @@ -7,7 +7,7 @@ import com.vaadin.terminal.gwt.client.RenderInformation.Size; class ComponentDetail { - private ComponentEventHandler eventHandler; + private EventListenerRegister eventListenerRegister = new EventListenerRegister(); private Paintable component; private TooltipInfo tooltipInfo = new TooltipInfo(); private String pid; @@ -16,10 +16,6 @@ class ComponentDetail { Paintable component) { this.component = component; this.pid = pid; - - // create the event handler for this component - this.eventHandler = new ComponentEventHandler(this, client); - } /** @@ -108,8 +104,12 @@ class ComponentDetail { } } - public ComponentEventHandler getEventHandler() { - return eventHandler; + void registerEventListenersFromUIDL(UIDL uidl) { + eventListenerRegister.registerEventListenersFromUIDL(uidl); + } + + public boolean hasEventListeners(String eventIdentifier) { + return eventListenerRegister.hasEventListeners(eventIdentifier); } } |