Class CmsCreateCategoryMenuEntry
java.lang.Object
org.opencms.ade.sitemap.client.hoverbar.A_CmsSitemapMenuEntry
org.opencms.ade.sitemap.client.hoverbar.CmsCreateCategoryMenuEntry
- All Implemented Interfaces:
I_CmsContextMenuEntry
Menu entry for creating new categories.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Bean containing the title and name of a category. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
askForNewCategoryInfo
(org.opencms.util.CmsUUID parentId, com.google.gwt.user.client.rpc.AsyncCallback<CmsCreateCategoryMenuEntry.CmsCategoryTitleAndName> callback) Asks the user for a new category's name and title.static org.opencms.xml.content.CmsXmlContentProperty
createBasicStringProperty
(String name, String niceName, String validationRegex, String error) Creates a property configuration for a simple named string field.void
execute()
Executes the context menu action.void
onShow()
Executed when the context-menu is opened.Methods inherited from class org.opencms.ade.sitemap.client.hoverbar.A_CmsSitemapMenuEntry
deattachHoverbar, generateMenuItem, getHoverbar, getIconClass, getJspPath, getLabel, getName, getReason, getSubMenu, hasSubMenu, isActive, isSeparator, isVisible, setActive, setDisabledReason, setLabel, setVisible
-
Constructor Details
-
CmsCreateCategoryMenuEntry
Constructor.- Parameters:
hoverbar
- the hoverbar
-
-
Method Details
-
askForNewCategoryInfo
public static void askForNewCategoryInfo(org.opencms.util.CmsUUID parentId, com.google.gwt.user.client.rpc.AsyncCallback<CmsCreateCategoryMenuEntry.CmsCategoryTitleAndName> callback) Asks the user for a new category's name and title.- Parameters:
parentId
- the parent categorycallback
- the callback to call with the user-supplied information
-
createBasicStringProperty
public static org.opencms.xml.content.CmsXmlContentProperty createBasicStringProperty(String name, String niceName, String validationRegex, String error) Creates a property configuration for a simple named string field.- Parameters:
name
- the name of the fieldniceName
- the display name of the fieldvalidationRegex
- the validation regexerror
- the validation error message- Returns:
- the property configuration
-
execute
Description copied from interface:I_CmsContextMenuEntry
Executes the context menu action.- See Also:
-
onShow
Description copied from class:A_CmsSitemapMenuEntry
Executed when the context-menu is opened.- Specified by:
onShow
in classA_CmsSitemapMenuEntry
- See Also:
-