view gwt-client/src/main/java/org/dive4elements/river/client/client/ui/sq/SQMultiPeriodPanel.java @ 7602:c50dbbe17950

issue1596: Store table (cell) data twice: Once as (formatted) string as coming from server, once transformed into float (or string). The benefit is that now we can sort table data numerically, while keeping the formatted and i18ned display of values.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 27 Nov 2013 14:55:25 +0100
parents ea9eef426962
children
line wrap: on
line source
/* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
 * Software engineering by Intevation GmbH
 *
 * This file is Free Software under the GNU AGPL (>=v3)
 * and comes with ABSOLUTELY NO WARRANTY! Check out the
 * documentation coming with Dive4Elements River for details.
 */

package org.dive4elements.river.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 org.dive4elements.river.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