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

org.jboss.as.console.client.shared.runtime.charts.DataTableAdapter Maven / Gradle / Ivy

Go to download

Bundles the core AS7 console as a GWT module. Includes minor customizations to support extensions.

There is a newer version: 0.7.0.Final
Show newest version
package org.jboss.as.console.client.shared.runtime.charts;

import com.google.gwt.visualization.client.DataTable;

import java.util.Date;

/**
 * @author Heiko Braun
 * @date 11/3/11
 */
public class DataTableAdapter {

    DataTable delegate;

    public DataTableAdapter(DataTable delegate) {
        this.delegate = delegate;
    }

    public void setValue(int row, int col, Object value)
    {
        if(value instanceof String)
            setValue(row,col, (String)value);
        else if(value instanceof Integer)
            setValue(row,col, (Integer)value);
        else if(value instanceof Date)
            setValue(row,col, (Date)value);
    }

    public void setValue(int row, int col, Integer value)
    {
        delegate.setValue(row, col, value.intValue());
    }

    public void setValue(int row, int col, String value)
    {
        delegate.setValue(row, col, value);
    }

    public void setValue(int row, int col, Date value)
    {
        delegate.setValue(row, col, value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy