view flys-client/src/main/java/de/intevation/flys/client/client/ui/sq/SQPeriodPanel.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.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