use of com.sldeditor.rendertransformation.types.RenderTransformValueInterface in project sldeditor by robward-scisys.
the class PanelField method getField.
/**
* Gets the field.
*
* @param classType the class type
* @param valueTextLocalisation the value text localisation
* @param nodeType the node type
* @return the field
*/
public static FieldConfigBase getField(Class<?> classType, String valueTextLocalisation, Class<?> nodeType) {
FieldConfigBase fieldConfig = null;
RenderTransformValueInterface value = RenderTransformValueFactory.getInstance().getValue(nodeType);
if (value != null) {
String valueText = Localisation.getString(classType, valueTextLocalisation);
FieldIdEnum fieldId = FieldIdEnum.FUNCTION;
FieldConfigCommonData commonData = new FieldConfigCommonData(null, fieldId, valueText, true);
fieldConfig = value.getField(commonData);
} else {
System.err.println("Unknown field type : " + nodeType);
}
return fieldConfig;
}
Aggregations