HtmlInputHidden propDialogHeader = new HtmlInputHidden();
propDialogHeader.setValue(Messages.getStringJSF("dialog.header"));
propDialogHeader.setId("prop-dialog-header");
HtmlDiv holder = new HtmlDiv();
holder.setId("holder");
holder.getChildren().add(formActionString);
holder.getChildren().add(formContentString);
holder.getChildren().add(formActiveTabString);
holder.getChildren().add(propDialogHeader);
HtmlDiv accordion = new HtmlDiv();
accordion.setId("accordion");
for (COMPONENT_CATEGORY category : COMPONENT_CATEGORY.values()) {
if(category != COMPONENT_CATEGORY.METADATA ||
(category == COMPONENT_CATEGORY.METADATA && getMetaDataDescriptions() != null && getMetaDataObject() != null)) {
HtmlHeading heading = new HtmlHeading();
heading.setSize(3);
heading.setValue(Messages.getStringJSF("menu.palette." + category.name()));
HtmlDiv paletteDiv = new HtmlDiv();
HtmlUnorderedList palette = getPalette(category);
palettes.add(palette);
paletteDiv.getChildren().add(palette);
accordion.getChildren().add(heading);
accordion.getChildren().add(paletteDiv);
}
}
HtmlDiv accordionHolder = new HtmlDiv();
accordionHolder.setId("accordionHolder");
HtmlDiv ajaxReload = new HtmlDiv();
ajaxReload.setId("ajaxReload");
accordionHolder.getChildren().add(ajaxReload);
accordionHolder.getChildren().add(accordion);
holder.getChildren().add(accordionHolder);
HtmlDiv contentHolder = new HtmlDiv();
contentHolder.setId("contentHolder");
contentHolder.getChildren().add(formContent);
holder.getChildren().add(contentHolder);
getChildren().add(holder);
HtmlDiv div = new HtmlDiv();
div.setStyle("clear:both;");
getChildren().add(div);
}