Parameter<?> parameter = new Parameter(entry.getKey(), entry.getValue().getClass(),
Text.text("Result"), Text.text("Result of process"));
JLabel label = new JLabel(entry.getKey());
page.add(label);
ParamField widget;
if (Double.class.isAssignableFrom(parameter.type)) {
widget = new JDoubleField(parameter);
} else if (Geometry.class.isAssignableFrom(parameter.type)) {
widget = new JGeometryField(parameter);
} else {
// We got nothing special, let's hope the converter api can deal
widget = new JField(parameter);
}
JComponent field = widget.doLayout();
widget.setValue(entry.getValue());
page.add(field);
}
}