* construct the gui widgets
*/
protected void build() {
displayedWidgets = new ArrayList();
for (int i = 0; i < widgets.size(); i++) {
BaseType o = (BaseType) widgets.get(i);
if (o.validate(this)) {
if (o.shouldBeDisplayed(getProject())) {
if (o instanceof DummyComponent) {
o = ((DummyComponent) o).getRealType();
widgets.set(i, o);
}
o.addToControlPanel(control.getPanel());
displayedWidgets.add(o);
}
if (o.getIf() != null || o.getUnless() != null) {
dynamic = true;
}
} else {
needFail = true;
}