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
public class CmsCreateCategoryMenuEntry extends A_CmsSitemapMenuEntry
Menu entry for creating new categories.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CmsCreateCategoryMenuEntry.CmsCategoryTitleAndName
Bean containing the title and name of a category.
-
Constructor Summary
Constructors Constructor Description CmsCreateCategoryMenuEntry(CmsSitemapHoverbar hoverbar)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.static org.opencms.xml.content.CmsXmlContentProperty
createBasicStringProperty(java.lang.String name, java.lang.String niceName, java.lang.String validationRegex, java.lang.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 Detail
-
CmsCreateCategoryMenuEntry
public CmsCreateCategoryMenuEntry(CmsSitemapHoverbar hoverbar)
Constructor.- Parameters:
hoverbar
- the hoverbar
-
-
Method Detail
-
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(java.lang.String name, java.lang.String niceName, java.lang.String validationRegex, java.lang.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
public void execute()
Description copied from interface:I_CmsContextMenuEntry
Executes the context menu action.- See Also:
I_CmsContextMenuEntry.execute()
-
onShow
public void onShow()
Description copied from class:A_CmsSitemapMenuEntry
Executed when the context-menu is opened.- Specified by:
onShow
in classA_CmsSitemapMenuEntry
- See Also:
A_CmsSitemapMenuEntry.onShow()
-
-