aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt/client/ComponentDetail.java
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2009-11-25 14:33:16 +0000
committerArtur Signell <artur.signell@itmill.com>2009-11-25 14:33:16 +0000
commita23903bf21edeafa91a2a731d55698bbf3b95770 (patch)
tree759a22e68dfc21358cb522118bde1159ad3c282b /src/com/vaadin/terminal/gwt/client/ComponentDetail.java
parente5caa74cc45cdd63a0edae9989010699dfaea1be (diff)
downloadvaadin-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.java14
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);
}
}