java/sql-dk/src/info/globalcode/sql/dk/formatting/XhtmlFormatter.java
branchv_0
changeset 137 3a24be5d8dac
parent 136 c0f9521900bf
child 138 b765713c60e9
equal deleted inserted replaced
136:c0f9521900bf 137:3a24be5d8dac
   154 		}
   154 		}
   155 	}
   155 	}
   156 
   156 
   157 	private void printTableData(Object value) {
   157 	private void printTableData(Object value) {
   158 		Map<QName, String> attributes = new HashMap<>(1);
   158 		Map<QName, String> attributes = new HashMap<>(1);
   159 		if (value instanceof Number || value instanceof Boolean) {
   159 		if (value instanceof Number) {
   160 			attributes.put(qname("class"), "number");
   160 			attributes.put(qname("class"), "number");
       
   161 		} else if (value instanceof Boolean) {
       
   162 			attributes.put(qname("class"), "boolean");
   161 		}
   163 		}
   162 		printTextElement(qname("td"), attributes, String.valueOf(value));
   164 		printTextElement(qname("td"), attributes, String.valueOf(value));
   163 	}
   165 	}
   164 
   166 
   165 	@Override
   167 	@Override