if (multipleEdges) {
wrap = new MultipleRowsAttributeValueWrapper(edges, value.getColumn(),currentTimeFormat);
} else {
wrap = new SingleRowAttributeValueWrapper(edges[0], value.getColumn(),currentTimeFormat);
}
AttributeType type = value.getColumn().getType();
Property p;
if (ac.canChangeColumnData(value.getColumn())) {
//Editable column, provide "set" method:
if (!EditWindowUtils.NotSupportedTypes.contains(type)) {//The AttributeType can be edited by default:
p = new PropertySupport.Reflection(wrap, type.getType(), "getValue" + type.getType().getSimpleName(), "setValue" + type.getType().getSimpleName());
} else {//Use the AttributeType as String:
p = new PropertySupport.Reflection(wrap, String.class, "getValueAsString", "setValueAsString");
}
} else {
//Not editable column, do not provide "set" method:
if (!EditWindowUtils.NotSupportedTypes.contains(type)) {//The AttributeType can be edited by default:
p = new PropertySupport.Reflection(wrap, type.getType(), "getValue" + type.getType().getSimpleName(), null);
} else {//Use the AttributeType as String:
p = new PropertySupport.Reflection(wrap, String.class, "getValueAsString", null);
}
}
p.setDisplayName(value.getColumn().getTitle());