Mercurial > dive4elements > river
view flys-client/src/main/java/de/intevation/flys/client/client/ui/fixation/FixQSelectPanel.java @ 4198:1cdbd8a0c994
Added two new tables ClickableQDTable and ClickableWTable and made Ws and Qs clickable in historical discharge calculation.
The new tables define listener interfaces (clicked lower or upper icon) to listen to user clicks.
In addition to this, there is an enum ClickMode with NONE, SINGLE and RANGE options, which allows to
specifiy, which icons are displayed in the tables. NONE means no icon for user clicks, SINGLE has 1
icon, RANGE 2 icons for lower and upper.
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 22 Oct 2012 13:31:25 +0200 |
parents | 60bf22a14ed8 |
children |
line wrap: on
line source
package de.intevation.flys.client.client.ui.fixation; import com.google.gwt.core.client.GWT; import com.smartgwt.client.widgets.Canvas; import de.intevation.flys.client.client.FLYSConstants; import de.intevation.flys.client.shared.model.Data; import de.intevation.flys.client.shared.model.DataList; /** * This UIProvider creates a panel for location or distance input. * * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> */ public class FixQSelectPanel extends FixationPanel { /** The message class that provides i18n strings. */ protected FLYSConstants MESSAGES = GWT.create(FLYSConstants.class); public FixQSelectPanel() { htmlOverview = ""; } public Canvas createWidget(DataList data) { instances.put(this.artifact.getUuid(), this); return new Canvas(); } @Override public Canvas createOld(DataList dataList) { return new Canvas(); } /** * This method returns the selected data. * * @return the selected/inserted data. */ public Data[] getData() { return new Data[0]; } @Override public void setValues(String cid, boolean checked) { // No user interaction, do nothing. } @Override public boolean renderCheckboxes() { // No selection, return false. return false; } public void success() {} }