"menuOptions"))
{
public void populateItem(final ListItem listItem)
{
final MenuOptionsDefinition option = (MenuOptionsDefinition) listItem
.getModelObject();
listItem.add(new Label("option", option.getOptions()));
listItem.add(new Label("order", option.getOrder()));
listItem.add(new Label("path", Boolean.toString(option
.isPaths())));
listItem.add(new Label("regexp", Boolean.toString(option
.isRegexp())));
listItem.add(new AjaxLink("edit")
{
@Override
public void onClick(AjaxRequestTarget target)
{
metaDataModalWindow.setContent(new OptionsWindow(
metaDataModalWindow.getContentId(),option, ajaxPanel));
metaDataModalWindow.show(target);
target.addComponent(ajaxPanel);
}
});
listItem.add(new AjaxLink("delete")
{
@Override
public void onClick(AjaxRequestTarget target)
{
menuActions(REMOVE_ACTION,option.getOptions(), new OptionsDefinitionBean());
target.addComponent(ajaxPanel);
}
}.add(new JavascriptEventConfirmation("onclick",
new ResourceModel("action.delete.confirm"))));
}
});
add(new AjaxLink("new")
{
@Override
public void onClick(AjaxRequestTarget target)
{
MenuOptionsDefinition optionDefinition = null;
if (getUserSelectedNode().getDocType() == FileType.Folder)
{
optionDefinition = getServiceLocator().getPageManager()
.newFolderMenuOptionsDefinition();
} else