objects.put("id", helpID);
// inform
ExtentionManagement.work("form.new", objects);
// build help
final HelpViewer h = new HelpViewer(helpID);
// build list
final GroupList gl = new GroupList(listModel);
gl.setCellRenderer(new IconRenderer());
gl.setLayoutOrientation(JList.HORIZONTAL_WRAP);
gl.addListSelectionListener(new ListSelectionListener() {
@Override public void valueChanged(ListSelectionEvent lse) {
if (lse.getValueIsAdjusting()) {
return;
}
// update help
h.setId(((INewFormElement) gl.getSelectedValue()).getHelpID());
}
});
// build layout