changeset 6413:c1b01cf2e91b

issue1259: fixing initial selected input helper tab. Believing that there is a bug in TabSet.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 25 Jun 2013 09:01:45 +0200
parents c74261e05a62
children 9787773e7bee 14b5674e57a4
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/WQAdaptedInputPanel.java
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/WQAdaptedInputPanel.java	Tue Jun 25 08:05:36 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/WQAdaptedInputPanel.java	Tue Jun 25 09:01:45 2013 +0200
@@ -163,6 +163,13 @@
 
         initTableListeners();
 
+        // We actually want the first Q tab to be selected and all
+        // Q tabs to be enabled. I sense a bug in TabSet here, as
+        // the code in the W/Q radiogroup-changehandler behaves
+        // exactly vice versa (enabling Q, selecting tab 0).
+        enableWTabs();
+        tabs.selectTab(1);
+
         return layout;
     }
 
@@ -195,7 +202,7 @@
 
             tabs.addTab(wTab, i*2+0);
             tabs.addTab(qTab, i*2+1);
-            tabs.disableTab(i*2+1);
+            //tabs.disableTab(i*2+1);
         }
 
         // Defaults at "Q", first input field.

http://dive4elements.wald.intevation.org