Mercurial > dive4elements > river
view flys-client/src/main/java/de/intevation/flys/client/client/ui/fixation/FixQSelectPanel.java @ 4205:0dd8963cec9c
Set also the width of the GaugeTree when resizing the GaugePanel
GWT is no longer able to calculate and set the correct width of the GaugeTree since
the GaugeTree is added via a Canvas wrapper. Therefore set the width manually
when resizing the GaugeTree.
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 22 Oct 2012 15:33:16 +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() {} }