{
// instantiate menu elements if necessary
if (menuElements == null)
{
menuElements = new ArrayList(4);
menuElements.add(new StandardMenuSeparatorDefinitionImpl()
{
/**
* getText - get default text for separator
*
* @return text
*/
public String getText()
{
// use locale defaults
return getMenuSeparatorText(null, "menu.separator.folders");
}
/**
* getText - get locale specific text for separator from metadata
*
* @param locale preferred locale
* @return text
*/
public String getText(Locale locale)
{
// use specified locale
return getMenuSeparatorText(locale, "menu.separator.folders");
}
});
menuElements.add(new StandardMenuOptionsDefinitionImpl()
{
/**
* getOptions - get comma separated menu options
*
* @return option paths specification
*/
public String getOptions()
{
return "." + Folder.PATH_SEPARATOR + "*" + Folder.PATH_SEPARATOR;
}
/**
* isRegexp - get regexp flag for interpreting option
*
* @return regexp flag
*/
public boolean isRegexp()
{
return true;
}
});
menuElements.add(new StandardMenuIncludeDefinitionImpl()
{
/**
* getName - get menu name to nest or with options to include
*
* @return menu name
*/
public String getName()
{
return AbstractSiteView.CUSTOM_PAGE_NAVIGATIONS_MENU_NAME;
}
});
menuElements.add(new StandardMenuSeparatorDefinitionImpl()
{
/**
* getText - get default text for separator
*
* @return text