{
super(id, document);
Form infoForm = new Form("infoForm");
Label nameLabel = new Label("name",
new ResourceModel("common.name"));
TextField nameField = new TextField("nameField", new PropertyModel(
this, "document.name"));
infoForm.add(nameLabel);
infoForm.add(nameField);
Label titleLabel = new Label("title", new ResourceModel("Title"));
TextField titleField = new TextField("titleField",
new PropertyModel(this, "document.title"));
infoForm.add(titleLabel);
infoForm.add(titleField);
Label shortTitleLabel = new Label("shortTitle", new ResourceModel(
"ShortTitle"));
TextField shortTitleField = new TextField("shortTitleField",
new PropertyModel(this, "document.shortTitle"));
infoForm.add(shortTitleField);
infoForm.add(shortTitleLabel);
Label pageDecoratorLabel = new Label("pageDecorator",
"Page Decorator");
DropDownChoice decoratorsList = new DropDownChoice(
"decoratorsList", new PropertyModel(this,
"document.pageDecorator"), getPageDecorators());
infoForm.add(decoratorsList);
infoForm.add(pageDecoratorLabel);
Label portletDecoratorLabel = new Label("portletDecorator",
"Portlet Decorator");
DropDownChoice portletDecoratorsList = new DropDownChoice(
"portletDecoratorsList", new PropertyModel(this,
"document.portletDecorator"),
getPortletDecorators());
infoForm.add(portletDecoratorLabel);
infoForm.add(portletDecoratorsList);
Label themeLabel = new Label("theme", "Theme");
DropDownChoice themeField = new DropDownChoice("themeList",
new PropertyModel(this, "document.desktopTheme"),
getThemes());
themeField.setVisibilityAllowed(true);
themeLabel.setVisibilityAllowed(true);
infoForm.add(themeField);
infoForm.add(themeLabel);
Label visibleLabel = new Label("visible", new ResourceModel(
"Hidden"));
CheckBox visibleCheckbox = new CheckBox("visibleCheck",
new PropertyModel(this, "document.hidden"));
infoForm.add(visibleLabel);
infoForm.add(visibleCheckbox);
Label urlLabel = new Label("urlLabel", new ResourceModel("Url"));
TextField urlField = new TextField("urlField", new PropertyModel(
this, "document.url"));
infoForm.add(urlLabel);
infoForm.add(urlField);
urlLabel.setVisibilityAllowed(true);
urlField.setVisibilityAllowed(true);
Label targetLabel = new Label("targetLabel", "Target Window");
DropDownChoice targetField = new DropDownChoice("target",
new PropertyModel(this, "document.target"), getTargetList());
infoForm.add(targetLabel);
infoForm.add(targetField);
targetLabel.setVisibilityAllowed(true);
targetField.setVisibilityAllowed(true);
Label defaultPageLabel = new Label("defaultPage",
new ResourceModel("DefaultPage"));
TextField defaultPageField = new TextField("defaultPageField",
new PropertyModel(this, "document.page"));
infoForm.add(defaultPageLabel);
infoForm.add(defaultPageField);
defaultPageLabel.setVisibilityAllowed(true);
defaultPageField.setVisibilityAllowed(true);
final ModalWindow metaDataModalWindow;