Package com.google.gwt.visualization.client.AbstractDataTable

Examples of com.google.gwt.visualization.client.AbstractDataTable.ColumnType


    return of(table, getColumnIndex(table, columnId));
  }

  /** Returns the column identified by {@code columnIndex} in {@code table}. */
  public static DataColumn<?> of(AbstractDataTable table, int columnIndex) {
    ColumnType columnType = table.getColumnType(columnIndex);
    switch (columnType) {
      case BOOLEAN:
        return booleans(table, columnIndex);
      case NUMBER:
        return numbers(table, columnIndex);
      case STRING:
        return strings(table, columnIndex);
      case DATE:
        return dates(table, columnIndex);
      case DATETIME:
        return datetimes(table, columnIndex);
      case TIMEOFDAY:
        return timeOfDays(table, columnIndex);
      default:
        throw new AssertionError(columnType.name());
    }
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.visualization.client.AbstractDataTable.ColumnType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.