view flys-client/src/main/java/de/intevation/flys/client/client/ui/sq/SQMultiPeriodPanel.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 86e69788c946
children
line wrap: on
line source
package de.intevation.flys.client.client.ui.sq;

import com.smartgwt.client.widgets.Canvas;
import com.smartgwt.client.widgets.events.ResizedEvent;
import com.smartgwt.client.widgets.events.ResizedHandler;

import de.intevation.flys.client.client.ui.MultiPeriodPanel;


/**
 * This UIProvider creates helper panel for sq relation.
 *
 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
 */
public class SQMultiPeriodPanel extends MultiPeriodPanel implements
    ResizedHandler {
    protected SQCampaignChart chartContainer;

    public SQMultiPeriodPanel() {
    }

    @Override
    protected Canvas createHelper() {
        chartContainer = new SQCampaignChart(artifact, this);
        return chartContainer;
    }

    @Override
    public void onResized(ResizedEvent re) {
        chartContainer.update();
    }
}

http://dive4elements.wald.intevation.org