DataModelEnumeration fields = model.getEnumeration();
while (fields.hasMore()) {
DataModel child = fields.next();
try {
ULCViewer editor = factory.createDefaultUlcEditor(child);
fieldPane.add(new ULCLabel(factory.getClientResource().getLabel(child.getFieldName())));
fieldPane.add(ULCBoxPane.BOX_EXPAND_EXPAND, editor.getULCComponent(factory));
} catch (Exception e) {
e.printStackTrace(); //TODO
}
}
ULCBoxPane buttonPane = new ULCBoxPane(0, 1);
if (model.getMethods() != null) {
Enumeration methods = model.getMethods().elements();
while (methods.hasMoreElements()) {
DataModelCommand child = (DataModelCommand) methods.nextElement();
try {
ULCViewer editor = factory.createDefaultUlcEditor(child);
buttonPane.add(editor.getULCComponent(factory));
} catch (Exception e) {
e.printStackTrace(); //TODO
}
}
}