Package waelti.statistics.queries.annotations

Examples of waelti.statistics.queries.annotations.GetProperty


  /** Populates this composite via reflection using the getProperty annotation. */
  private void populatePanel(AbstractQuery selectedQuery) {

    for (Method method : selectedQuery.getClass().getMethods()) {
      if (method.isAnnotationPresent(GetProperty.class)) {
        GetProperty getter = method.getAnnotation(GetProperty.class);
        this.createLabel(getter.value());

        String value = this.getValue(selectedQuery, method);
        Text field = this.createTextField(value);
        field.addModifyListener(this);

        fieldMap.put(getter.value(), field);
      }
    }
  }
View Full Code Here

TOP

Related Classes of waelti.statistics.queries.annotations.GetProperty

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.