|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.workplace.CmsWorkplace
org.opencms.workplace.tools.CmsToolDialog
public class CmsToolDialog
Helper class that encapsulates all the code for the "new" style of the administration dialogs.
Field Summary | |
---|---|
static java.lang.String |
PARAM_BASE
Request parameter name for the base tool path in the navigation, should be a parent tool of path. |
static java.lang.String |
PARAM_FORCE
Request parameter name for the force flag. |
static java.lang.String |
PARAM_PATH
Request parameter name for the tool path, should be an accessible tool under the given root. |
static java.lang.String |
PARAM_ROOT
Request parameter name for the root tool path. |
static java.lang.String |
PARAM_STYLE
Request parameter name for the style type. |
static java.lang.String |
STYLE_NEW
Request parameter value for the 'new' dialog style. |
Constructor Summary | |
---|---|
CmsToolDialog(CmsJspActionElement jsp)
Default Constructor. |
Method Summary | |
---|---|
java.lang.String |
dialogScriptSubmit()
Builds the standard javascript for submitting the dialog. |
java.lang.String |
dialogTitle()
Generates the standard new style dialog title row, and tool grouping. |
CmsTool |
getAdminTool()
Returns the admin tool. |
java.lang.String |
getCurrentToolPath()
Returns the current tool path. |
java.lang.String |
getParamBase()
Returns the value for the base parameter. |
java.lang.String |
getParamForce()
Returns the value for the force parameter. |
java.lang.String |
getParamPath()
Returns the path parameter value. |
java.lang.String |
getParamRoot()
Returns the root parameter value. |
java.lang.String |
getParamStyle()
Returns the style parameter value. |
java.lang.String |
getParentPath()
Returns the path to the parent tool. |
CmsToolManager |
getToolManager()
Returns the tool manager. |
java.lang.String |
iconsBlockArea(int segment,
java.lang.String headline)
Builds an block area for icons. |
java.lang.String |
iconsBlockAreaEnd()
Builds the end HTML for a block area with border in the dialog content area. |
java.lang.String |
iconsBlockAreaStart(java.lang.String headline)
Builds the start HTML for a block area with border and optional subheadline in the dialog content area. |
java.util.Map |
initAdminTool()
Initializes the admin tool main view. |
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
javax.servlet.http.HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace settings accordingly. |
java.lang.String |
pageBody(int segment,
java.lang.String className,
java.lang.String parameters)
Builds the html of the body. |
java.lang.String |
pageHtmlStyle(int segment,
java.lang.String title,
java.lang.String stylesheet)
Returns the default html for a workplace page, including setting of DOCTYPE and inserting a header with the content-type, allowing the selection of an individual style sheet. |
void |
setParamBase(java.lang.String paramBase)
Sets the value of the base parameter. |
void |
setParamForce(java.lang.String paramForce)
Sets the value of the force parameter. |
void |
setParamPath(java.lang.String paramPath)
Sets the path parameter value. |
void |
setParamRoot(java.lang.String paramRoot)
Sets the root parameter value. |
void |
setParamStyle(java.lang.String paramStyle)
Sets the style parameter value. |
boolean |
useNewStyle()
Tests if we are working with the new administration dialog style. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PARAM_BASE
public static final java.lang.String PARAM_FORCE
public static final java.lang.String PARAM_PATH
public static final java.lang.String PARAM_ROOT
public static final java.lang.String PARAM_STYLE
public static final java.lang.String STYLE_NEW
Constructor Detail |
---|
public CmsToolDialog(CmsJspActionElement jsp)
jsp
- the jsp action elementMethod Detail |
---|
public java.lang.String dialogScriptSubmit()
Should only be used by the
method.CmsDialog.dialogScriptSubmit()
public java.lang.String dialogTitle()
It is called by the
method.CmsDialog.dialog(int, String)
public CmsTool getAdminTool()
public java.lang.String getCurrentToolPath()
public java.lang.String getParamBase()
public java.lang.String getParamForce()
public java.lang.String getParamPath()
public java.lang.String getParamRoot()
public java.lang.String getParamStyle()
public java.lang.String getParentPath()
public CmsToolManager getToolManager()
public java.lang.String iconsBlockArea(int segment, java.lang.String headline)
segment
- the HTML segment (START / END)headline
- the headline String for the block
CmsDialog.dialogBlock(int, String, boolean)
public java.lang.String iconsBlockAreaEnd()
CmsDialog.dialogBlockEnd()
public java.lang.String iconsBlockAreaStart(java.lang.String headline)
headline
- the headline String for the block
CmsDialog.dialogBlockStart(String)
public java.util.Map initAdminTool() throws CmsRoleViolationException
CmsRoleViolationException
- in case the dialog is opened by a user without the necessary privilegespublic java.lang.String pageBody(int segment, java.lang.String className, java.lang.String parameters)
CmsWorkplace
pageBody
in class CmsWorkplace
segment
- the HTML segment (START / END)className
- optional class attribute to add to the body tagparameters
- optional parameters to add to the body tag
CmsWorkplace.pageBody(int, java.lang.String, java.lang.String)
public java.lang.String pageHtmlStyle(int segment, java.lang.String title, java.lang.String stylesheet)
CmsWorkplace
pageHtmlStyle
in class CmsWorkplace
segment
- the HTML segment (START / END)title
- the title of the page, if null no title tag is insertedstylesheet
- the used style sheet, if null the default stylesheet 'workplace.css' is inserted
CmsWorkplace.pageHtmlStyle(int, java.lang.String, java.lang.String)
public void setParamBase(java.lang.String paramBase)
paramBase
- the value of the base parameter to setpublic void setParamForce(java.lang.String paramForce)
paramForce
- the value of the force parameter to setpublic void setParamPath(java.lang.String paramPath)
paramPath
- the path parameter value to setpublic void setParamRoot(java.lang.String paramRoot)
paramRoot
- the root parameter value to setpublic void setParamStyle(java.lang.String paramStyle)
paramStyle
- the style parameter value to setpublic boolean useNewStyle()
The default is the new style, this parameter is not intended for external use.
true
if using the new styleprotected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, javax.servlet.http.HttpServletRequest request)
CmsWorkplace
initWorkplaceRequestValues
in class CmsWorkplace
settings
- the workplace settingsrequest
- the current requestCmsWorkplace.initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest)
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |