public class CmsAdminMenu extends CmsToolDialog
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
DEFAULT_TARGET
Default link target constant.
|
PARAM_ADMIN_PROJECT, PARAM_BASE, PARAM_FORCE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW
DEBUG, DEFAULT_LANGUAGE, DEFAULT_LOCALE, DIALOG_PATH_COMMON, FILE_DIALOG_CLOSE, FILE_DIALOG_SCREEN_CONFIRM, FILE_DIALOG_SCREEN_ERROR, FILE_DIALOG_SCREEN_ERRORPAGE, FILE_DIALOG_SCREEN_WAIT, FILE_EXPLORER_FILELIST, FILE_REPORT_OUTPUT, HTML_END, HTML_START, PARAM_WP_EXPLORER_RESOURCE, PARAM_WP_PROJECT, PARAM_WP_SITE, PATH_DIALOGS, PATH_WORKPLACE, REQUEST_ATTRIBUTE_MULTIPART, REQUEST_ATTRIBUTE_RELOADTREE, RES_PATH_FILETYPES, RFS_PATH_RESOURCES, SESSION_WORKPLACE_CLASS, VFS_DIR_DEFAULTBODIES, VFS_DIR_TEMPLATES, VFS_PATH_COMMONS, VFS_PATH_EDITORS, VFS_PATH_GALLERIES, VFS_PATH_LOCALES, VFS_PATH_MODULES, VFS_PATH_RESOURCES, VFS_PATH_SYSTEM, VFS_PATH_VIEWS, VFS_PATH_WORKPLACE, VIEW_DIRECT_EDIT, VIEW_WORKPLACE
构造器和说明 |
---|
CmsAdminMenu(CmsJspActionElement jsp)
Default Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
addGroup(CmsAdminMenuGroup group)
Adds a group.
|
void |
addGroup(CmsAdminMenuGroup group,
float position)
Adds a menu item at the given position.
|
CmsAdminMenuItem |
addItem(java.lang.String groupName,
java.lang.String name,
java.lang.String icon,
java.lang.String link,
java.lang.String helpText,
boolean enabled,
float position,
java.lang.String target)
Adds a new item to the specified menu.
|
java.lang.String |
allRequestParamsAsUrl(java.util.Collection<java.lang.String> excludes)
Returns all initialized parameters of the current request
that are not in the given exclusion list as hidden field tags that can be inserted in a form.
|
CmsAdminMenuGroup |
getGroup(java.lang.String name)
Returns the requested group.
|
CmsToolManager |
getToolManager()
Returns the admin manager.
|
java.lang.String |
groupHtml(CmsWorkplace wp)
Generates the necesary html code for the groups.
|
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
javax.servlet.http.HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace
settings accordingly.
|
void |
installMenu()
Creates the default menu as the root tool structure.
|
computeUpLevelLink, dialogScriptSubmit, dialogTitle, getAdminTool, getCurrentToolPath, getParamBase, getParamForce, getParamPath, getParamRoot, getParamStyle, getParentPath, iconsBlockArea, iconsBlockAreaEnd, iconsBlockAreaStart, initAdminTool, pageBody, pageHtmlStyle, setParamBase, setParamForce, setParamPath, setParamRoot, setParamStyle, useNewStyle
addMessages, addMessages, allParamsAsHidden, allParamsAsRequest, allParamValues, bodyEnd, bodyStart, bodyStart, buildSelect, buildSelect, button, button, buttonBar, buttonBar, buttonBarHorizontalLine, buttonBarLabel, buttonBarLabel, buttonBarLine, buttonBarLineSpacer, buttonBarSeparator, buttonBarSpacer, buttonBarStartTab, checkLock, checkLock, checkRole, decodeParamValue, fillParamValues, fillParamValues, getBroadcastMessageString, getCms, getEncoding, getExplorerFileListFullUri, getFrameSource, getJsp, getLocale, getMacroResolver, getMessages, getMultiPartFileItems, getParameterMap, getResourceUri, getResourceUri, getSession, getSettings, getSkinUri, getStartSiteRoot, getStyleUri, getStyleUri, getStyleUri, getTemporaryFileName, htmlEnd, htmlStart, initMessages, initSettings, initTimeWarp, initUserSettings, initWorkplaceMembers, initWorkplaceSettings, isForwarded, isHelpEnabled, isSubElement, isTemporaryFile, key, key, keyDefault, nullToEmpty, pageHtml, paramsAsHidden, paramsAsHidden, paramsAsParameterMap, paramsAsRequest, paramValues, resolveMacros, sendCmsRedirect, sendForward, setForwarded, shortKey, substituteSiteTitle, switchToCurrentProject, switchToTempProject
public static final java.lang.String DEFAULT_TARGET
public CmsAdminMenu(CmsJspActionElement jsp)
jsp
- the jsp contextpublic void addGroup(CmsAdminMenuGroup group)
group
- the groupCmsIdentifiableObjectContainer.addIdentifiableObject(String, Object)
public void addGroup(CmsAdminMenuGroup group, float position)
group
- the groupposition
- the positionCmsIdentifiableObjectContainer.addIdentifiableObject(String, Object, float)
public CmsAdminMenuItem addItem(java.lang.String groupName, java.lang.String name, java.lang.String icon, java.lang.String link, java.lang.String helpText, boolean enabled, float position, java.lang.String target)
If the menu does not exist, it will be created.
groupName
- the name of the groupname
- the name of the itemicon
- the icon to displaylink
- the link to open when selectedhelpText
- the help text to displayenabled
- if enabled or notposition
- the relative position to install the itemtarget
- the target frame to open the link intopublic java.lang.String allRequestParamsAsUrl(java.util.Collection<java.lang.String> excludes)
excludes
- the parameters to excludepublic CmsAdminMenuGroup getGroup(java.lang.String name)
name
- the name of the groupCmsIdentifiableObjectContainer.getObject(String)
public CmsToolManager getToolManager()
getToolManager
在类中 CmsToolDialog
public java.lang.String groupHtml(CmsWorkplace wp)
wp
- the page for which the code is generatedpublic void installMenu()
protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, javax.servlet.http.HttpServletRequest request)
CmsWorkplace
initWorkplaceRequestValues
在类中 CmsToolDialog
settings
- the workplace settingsrequest
- the current requestCmsWorkplace.initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest)