Package nl.topicus.onderwijs.dashboard.modules

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


  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;
  }

  public String getKey() {
View Full Code Here


        .getObject()) {
      DataSourceSettings settings = DataSourceAnnotationReader
          .getSettings(curDataSource);
      conversions.add(settings.conversion());
      htmlClasses.add(settings.htmlClass());
      units.add(settings.unit());
    }
    ObjectMapper mapper = new ObjectMapper();
    try {
      options.put("conversion", mapper.writeValueAsString(conversions));
      options.put("htmlClasses", mapper.writeValueAsString(htmlClasses));
View Full Code Here

    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;
  }

  public String getKey() {
    return key;
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.