Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java @ 915:89a47098bcbd
Hide geometry layer in floodmap when tab selection changes.
(Issue265)
flys-client/trunk@2778 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 16 Sep 2011 12:56:48 +0000 |
parents | 794d1af42987 |
children | 4b177fd52f06 |
comparison
equal
deleted
inserted
replaced
914:39a39e9be5af | 915:89a47098bcbd |
---|---|
16 import com.smartgwt.client.widgets.layout.HLayout; | 16 import com.smartgwt.client.widgets.layout.HLayout; |
17 import com.smartgwt.client.widgets.layout.SectionStack; | 17 import com.smartgwt.client.widgets.layout.SectionStack; |
18 import com.smartgwt.client.widgets.layout.SectionStackSection; | 18 import com.smartgwt.client.widgets.layout.SectionStackSection; |
19 import com.smartgwt.client.widgets.layout.VLayout; | 19 import com.smartgwt.client.widgets.layout.VLayout; |
20 import com.smartgwt.client.widgets.tab.Tab; | 20 import com.smartgwt.client.widgets.tab.Tab; |
21 import com.smartgwt.client.widgets.tab.events.TabSelectedHandler; | |
21 | 22 |
22 import de.intevation.flys.client.shared.model.Artifact; | 23 import de.intevation.flys.client.shared.model.Artifact; |
23 import de.intevation.flys.client.shared.model.ArtifactDescription; | 24 import de.intevation.flys.client.shared.model.ArtifactDescription; |
24 import de.intevation.flys.client.shared.model.Collection; | 25 import de.intevation.flys.client.shared.model.Collection; |
25 import de.intevation.flys.client.shared.model.Data; | 26 import de.intevation.flys.client.shared.model.Data; |
679 flys.getCurrentUser()); | 680 flys.getCurrentUser()); |
680 | 681 |
681 provider.setContainer(helperPanel); | 682 provider.setContainer(helperPanel); |
682 provider.setArtifact(art); | 683 provider.setArtifact(art); |
683 provider.setCollection(cView.getCollection()); | 684 provider.setCollection(cView.getCollection()); |
685 provider.setParameterList(this); | |
684 | 686 |
685 ((HasStepForwardHandlers) provider).addStepForwardHandler(this); | 687 ((HasStepForwardHandlers) provider).addStepForwardHandler(this); |
686 ((HasStepBackHandlers) provider).addStepBackHandler(this); | 688 ((HasStepBackHandlers) provider).addStepBackHandler(this); |
687 | 689 |
688 setCurrentData(currentData, provider); | 690 setCurrentData(currentData, provider); |
694 // further to a next state. But in the current state, no user | 696 // further to a next state. But in the current state, no user |
695 // data is required. | 697 // data is required. |
696 UIProvider ui = UIProviderFactory.getProvider("continue", null); | 698 UIProvider ui = UIProviderFactory.getProvider("continue", null); |
697 ui.setArtifact(art); | 699 ui.setArtifact(art); |
698 ui.setCollection(cView.getCollection()); | 700 ui.setCollection(cView.getCollection()); |
701 ui.setParameterList(this); | |
699 | 702 |
700 ((ContinuePanel) ui).addAdvanceHandler(this); | 703 ((ContinuePanel) ui).addAdvanceHandler(this); |
701 | 704 |
702 setCurrentData(null, ui); | 705 setCurrentData(null, ui); |
703 } | 706 } |
862 | 865 |
863 if (members != null && members.length > 0) { | 866 if (members != null && members.length > 0) { |
864 tablePanel.removeMembers(members); | 867 tablePanel.removeMembers(members); |
865 } | 868 } |
866 } | 869 } |
870 | |
871 | |
872 public void registerCollectionViewTabHandler (TabSelectedHandler tsh) { | |
873 this.cView.registerTabHandler (tsh); | |
874 } | |
867 } | 875 } |
868 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 876 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |