Package com.smartgwt.client.widgets.grid

Examples of com.smartgwt.client.widgets.grid.SortNormalizer


                    Log.error("Cannot get severity hover", e);
                }
                return null;
            }
        });
        severityField.setSortNormalizer(new SortNormalizer() {
            @Override
            public Object normalize(ListGridRecord record, String fieldName) {
                try {
                    Severity severity = ((Message) record.getAttributeAsObject(FIELD_OBJECT)).getSeverity();
                    return Integer.valueOf(severity.ordinal());
View Full Code Here


   */
  private void setVarsAsListGridFields(ArrayList<String> vars) {
    ArrayList<ListGridField> listGridFields = new ArrayList<ListGridField>();
    for(final String var: vars){
      ListGridField field = new ListGridField(var, var);
      field.setSortNormalizer(new SortNormalizer(){
        public Object normalize(ListGridRecord record, String fieldName) {
          HashMap<String, HashMap<String, String>> bindings = solutions.get(record.getAttributeAsInt(SOLUTION_ATTRIBUTE));
          HashMap<String, String> binding = bindings.get(fieldName);
          return binding.get("value");
        }});
View Full Code Here

TOP

Related Classes of com.smartgwt.client.widgets.grid.SortNormalizer

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.