comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/UIProviderFactory.java @ 3373:86e69788c946

Added a new UIProvider that allows the input of a time period; the helper panel displays the field campaigns of MINFO's SQ relation. flys-client/trunk@5085 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 20 Jul 2012 10:17:25 +0000
parents cb84e717e54d
children 60984be9bcfa
comparison
equal deleted inserted replaced
3372:cb84e717e54d 3373:86e69788c946
1 package de.intevation.flys.client.client.ui; 1 package de.intevation.flys.client.client.ui;
2
3 import de.intevation.flys.client.shared.model.User;
4 2
5 import de.intevation.flys.client.client.ui.fixation.FixEventSelect; 3 import de.intevation.flys.client.client.ui.fixation.FixEventSelect;
6 import de.intevation.flys.client.client.ui.fixation.FixFunctionSelect; 4 import de.intevation.flys.client.client.ui.fixation.FixFunctionSelect;
7 import de.intevation.flys.client.client.ui.fixation.FixGaugeSelectPanel; 5 import de.intevation.flys.client.client.ui.fixation.FixGaugeSelectPanel;
8 import de.intevation.flys.client.client.ui.fixation.FixLocationPanel; 6 import de.intevation.flys.client.client.ui.fixation.FixLocationPanel;
9 import de.intevation.flys.client.client.ui.fixation.FixMultiPeriodPanel; 7 import de.intevation.flys.client.client.ui.fixation.FixMultiPeriodPanel;
10 import de.intevation.flys.client.client.ui.fixation.FixPeriodPanel; 8 import de.intevation.flys.client.client.ui.fixation.FixPeriodPanel;
11 import de.intevation.flys.client.client.ui.fixation.FixQSelectPanel; 9 import de.intevation.flys.client.client.ui.fixation.FixQSelectPanel;
12 import de.intevation.flys.client.client.ui.sq.SQMultiPeriodPanel; 10 import de.intevation.flys.client.client.ui.sq.SQMultiPeriodPanel;
11 import de.intevation.flys.client.client.ui.sq.SQPeriodPanel;
12 import de.intevation.flys.client.shared.model.User;
13 13
14 /** 14 /**
15 * Depending on the provider the state declared, return a UIProvider. 15 * Depending on the provider the state declared, return a UIProvider.
16 * 16 *
17 * A UIProvider provides widgets and input helpers to guide input to an 17 * A UIProvider provides widgets and input helpers to guide input to an
121 return new PeriodPanel(); 121 return new PeriodPanel();
122 } 122 }
123 else if (uiProvider.equals("periods_select")) { 123 else if (uiProvider.equals("periods_select")) {
124 return new SQMultiPeriodPanel(); 124 return new SQMultiPeriodPanel();
125 } 125 }
126 else if (uiProvider.equals("sq.period.select")) {
127 return new SQPeriodPanel();
128 }
126 else if (uiProvider.equals("outliers_input")) { 129 else if (uiProvider.equals("outliers_input")) {
127 return new DoubleInputPanel(); 130 return new DoubleInputPanel();
128 } 131 }
129 else if (uiProvider.equals("parameter-matrix")) { 132 else if (uiProvider.equals("parameter-matrix")) {
130 return new ParameterMatrixPanel(); 133 return new ParameterMatrixPanel();

http://dive4elements.wald.intevation.org