{
super(id, jetspeeeDoc);
final SiteTreeNode node = getUserSelectedNode();
Form exportForm = new Form("exportForm");
Label exportLabel = new Label("exportName", "Export recursively");
AjaxCheckBox exportChkBox = new AjaxCheckBox("recursively",
new PropertyModel(this, "recursively"))
{
@Override
protected void onUpdate(AjaxRequestTarget target)
{
}
};
Label exporNameLabel = new Label("expLabel", "Export Object");
TextField exportName = new TextField("expName", new PropertyModel(
this, "document.name"));
exportLabel.setVisibilityAllowed(true);
exportChkBox.setVisibilityAllowed(true);
if (node.getDocType() != SiteTreeNode.FileType.Folder)
{
exportLabel.setVisible(false);
exportChkBox.setVisible(false);
}
exportForm.add(exporNameLabel);
exportForm.add(exportName);
exportForm.add(exportLabel);
exportForm.add(exportChkBox);