All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.highcharts4gwt.client.model.event.ChartRenderedEvent Maven / Gradle / Ivy

There is a newer version: 0.0.7
Show newest version
package com.github.highcharts4gwt.client.model.event;

import com.github.highcharts4gwt.model.highcharts.object.api.Chart;
import com.google.web.bindery.event.shared.Event;

public class ChartRenderedEvent extends Event
{
    private static Type TYPE;

    public static Type getType() {
        if ( TYPE == null )
            TYPE = new Type();
        return TYPE;
    }
    
    private final Chart chart;
    
    public ChartRenderedEvent(Chart chart)
    {
        this.chart = chart;
    }

    public Chart getChart()
    {
        return chart;
    }

    @Override
    public com.google.web.bindery.event.shared.Event.Type getAssociatedType()
    {
        return getType();
    }

    @Override
    protected void dispatch(Handler handler)
    {
        handler.onChartRendered(getChart());
    }
    
    public interface Handler {
        void onChartRendered(Chart chart);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy