view flys-client/src/main/java/de/intevation/flys/client/client/ui/sq/SQPeriodPanel.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.google.gwt.core.client.GWT;
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.PeriodPanel;

public class SQPeriodPanel extends PeriodPanel implements ResizedHandler {

    private SQCampaignChart chartLayout;

    @Override
    protected Canvas createHelper() {
        GWT.log("Create new SQCampaignChart as Helper Widget");
        chartLayout = new SQCampaignChart(artifact, this);
        return chartLayout;
    }


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

http://dive4elements.wald.intevation.org