aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2007-11-13 09:20:48 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2007-11-13 09:20:48 +0000
commit08188cec0e45ed2817e8578cc5bd6c14aa97cdc4 (patch)
treeef92d4c815c36dd812c2a2d400f45fe96dcfc847
parent54ae10172cf357ac82697a3c42afd43baf978ab0 (diff)
downloadvaadin-framework-08188cec0e45ed2817e8578cc5bd6c14aa97cdc4.tar.gz
vaadin-framework-08188cec0e45ed2817e8578cc5bd6c14aa97cdc4.zip
fixes #1131
svn changeset:2798/svn branch:trunk
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/client/ui/ITree.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/ITree.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/ITree.java
index 5fef83e9bc..91a12839a7 100644
--- a/src/com/itmill/toolkit/terminal/gwt/client/ui/ITree.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/ITree.java
@@ -45,6 +45,8 @@ public class ITree extends FlowPanel implements Paintable {
private boolean isNullSelectionAllowed = true;
+ private boolean disabled = false;
+
public ITree() {
super();
setStyleName(CLASSNAME);
@@ -88,6 +90,8 @@ public class ITree extends FlowPanel implements Paintable {
this.paintableId = uidl.getId();
this.immediate = uidl.hasAttribute("immediate");
+
+ disabled = uidl.getBooleanAttribute("disabled");
isNullSelectionAllowed = uidl.getBooleanAttribute("nullselect");
@@ -173,6 +177,8 @@ public class ITree extends FlowPanel implements Paintable {
public void onBrowserEvent(Event event) {
super.onBrowserEvent(event);
+ if(disabled)
+ return;
Element target = DOM.eventGetTarget(event);
if (DOM.compare(target, nodeCaptionSpan)) {
// caption click = selection change