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
Nested ClassesModifier and TypeClassDescriptionstatic classBean containing the title and name of a category. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaskForNewCategoryInfo(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.CmsXmlContentPropertycreateBasicStringProperty(String name, String niceName, String validationRegex, String error) Creates a property configuration for a simple named string field.voidexecute()Executes the context menu action.voidonShow()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_CmsContextMenuEntryExecutes the context menu action.- See Also:
-
onShow
Description copied from class:A_CmsSitemapMenuEntryExecuted when the context-menu is opened.- Specified by:
onShowin classA_CmsSitemapMenuEntry- See Also:
-