view flys-client/src/main/java/de/intevation/flys/client/client/ui/sq/SQMultiPeriodPanel.java @ 5462:f2371f3aaf03

Show top level folder icons only if node has no factory If you have an empty folder the folder icon is still shown. This makes it possible to add functional "Top Level" entries in the Datacage
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 26 Mar 2013 18:29:13 +0100
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