Package nl.topicus.onderwijs.dashboard.modules

Examples of nl.topicus.onderwijs.dashboard.modules.DataSourceSettings.label()


  protected void retrieveDataFromApplication(List<ColumnData> ret) {
    for (Class<? extends DataSource<?>> curDataSource : dataSources
        .getObject()) {
      DataSourceSettings settings = DataSourceAnnotationReader
          .getSettings(curDataSource);
      ret.add(getColumn(settings.label(), curDataSource));
    }
  }

  private <T extends DataSource<?>> ColumnData getColumn(String label,
      Class<T> datasourceType) {
View Full Code Here


  public BarDataSet(Class<? extends DataSource<?>> key, String scheme) {
    this.key = key.getSimpleName();
    DataSourceSettings settings = DataSourceAnnotationReader
        .getSettings(key);
    this.label = settings.label();
    if (settings.unit().length() > 0)
      this.label += " (" + settings.unit() + ")";
    this.scheme = scheme;
  }
View Full Code Here

    KeyProperty keyProperty = DataSourceAnnotationReader
        .getKeyProperty(dataSource);
    Options options = new Options();
    options.putLiteral("dataUrl", dataResource.getCallbackUrl().toString());
    options.putLiteral("label",
        useKeyLabel ? key.getName() : settings.label());
    options.putLiteral("htmlClass", settings.htmlClass());
    options.putLiteral("conversion", settings.conversion());
    options.putLiteral("keyProperty", keyProperty.value());
    JsQuery jsq = new JsQuery(table);
    return jsq.$().chain("dashboardTable", options.getJavaScriptOptions());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.