|
||||||||||
| 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 String |
PARAM_PATH
Request parameter name for the tool path. |
static String |
PARAM_ROOT
Request parameter name for the root tool path. |
static String |
PARAM_STYLE
Request parameter name for the style type. |
static String |
STYLE_NEW
Request parameter value for the 'new' dialog style. |
| Constructor Summary | |
|---|---|
CmsToolDialog(CmsJspActionElement jsp)
Default Constructor. |
|
| Method Summary | |
|---|---|
String |
dialogScriptSubmit()
Builds the standard javascript for submitting the dialog. |
String |
dialogTitle()
Generates the standard new style dialog title row, and tool grouping. |
CmsTool |
getAdminTool()
Returns the admin tool. |
String |
getCurrentToolPath()
Returns the current tool path. |
String |
getParamPath()
Returns the path parameter value. |
String |
getParamRoot()
Returns the root parameter value. |
String |
getParamStyle()
Returns the style parameter value. |
String |
getParentPath()
Returns the path to the parent tool. |
CmsToolManager |
getToolManager()
Returns the tool manager. |
String |
iconsBlockArea(int segment,
String headline)
Builds an block area for icons. |
String |
iconsBlockAreaEnd()
Builds the end HTML for a block area with border in the dialog content area. |
String |
iconsBlockAreaStart(String headline)
Builds the start HTML for a block area with border and optional subheadline in the dialog content area. |
Map |
initAdminTool()
Initializes the admin tool main view. |
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace settings accordingly. |
String |
pageBody(int segment,
String className,
String parameters)
Builds the html of the body. |
String |
pageHtmlStyle(int segment,
String title,
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 |
setParamPath(String paramPath)
Sets the path parameter value. |
void |
setParamRoot(String paramRoot)
Sets the root parameter value. |
void |
setParamStyle(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 String PARAM_PATH
public static final String PARAM_ROOT
public static final String PARAM_STYLE
public static final String STYLE_NEW
| Constructor Detail |
|---|
public CmsToolDialog(CmsJspActionElement jsp)
jsp - the jsp action element| Method Detail |
|---|
public String dialogScriptSubmit()
Should only be used by the method.CmsDialog.dialogScriptSubmit()
public String dialogTitle()
It is called by the method.CmsDialog.dialog(int, String)
public CmsTool getAdminTool()
public String getCurrentToolPath()
public String getParamPath()
public String getParamRoot()
public String getParamStyle()
public String getParentPath()
public CmsToolManager getToolManager()
public String iconsBlockArea(int segment,
String headline)
segment - the HTML segment (START / END)headline - the headline String for the block
CmsDialog.dialogBlock(int, String, boolean)public String iconsBlockAreaEnd()
CmsDialog.dialogBlockEnd()public String iconsBlockAreaStart(String headline)
headline - the headline String for the block
CmsDialog.dialogBlockStart(String)public Map initAdminTool()
public String pageBody(int segment,
String className,
String parameters)
CmsWorkplace
pageBody in class CmsWorkplacesegment - 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 String pageHtmlStyle(int segment,
String title,
String stylesheet)
CmsWorkplace
pageHtmlStyle in class CmsWorkplacesegment - 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 setParamPath(String paramPath)
paramPath - the path parameter value to setpublic void setParamRoot(String paramRoot)
paramRoot - the root parameter value to setpublic void setParamStyle(String paramStyle)
paramStyle - the style parameter value to setpublic boolean useNewStyle()
The default is the new style, this param is not intented for external use.
true if using the new style
protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings,
HttpServletRequest request)
CmsWorkplace
initWorkplaceRequestValues in class CmsWorkplacesettings - 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 | |||||||||