|
||||||
| 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
org.opencms.workplace.CmsDialog
org.opencms.workplace.commons.CmsChnav
public class CmsChnav
Provides methods for the change navigation dialog.
The following files use this class:
| Field Summary | |
|---|---|
static int |
ACTION_CHNAV
Value for the action: change the navigation. |
static java.lang.String |
DIALOG_TYPE
The dialog type. |
static java.lang.String |
PARAM_NAVPOS
Request parameter name for the navigation position. |
static java.lang.String |
PARAM_NAVTEXT
Request parameter name for the navigation text. |
| Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
|---|
PARAM_BASE, PARAM_FORCE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW |
| Constructor Summary | |
|---|---|
CmsChnav(CmsJspActionElement jsp)
Public constructor. |
|
CmsChnav(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Public constructor with JSP variables. |
|
| Method Summary | |
|---|---|
void |
actionChangeNav()
Performs the navigation change. |
java.lang.String |
buildNavPosSelector()
Builds the HTML for the select box of the navigation position. |
static java.lang.String |
buildNavPosSelector(CmsObject cms,
java.lang.String filename,
java.lang.String attributes,
CmsMessages messages)
Builds the HTML for the select box of the navigation position. |
java.lang.String |
getCurrentNavText()
Returns the escaped NavText property value of the current resource. |
java.lang.String |
getParamNavpos()
Returns the value of the navigation position parameter, or null if this parameter was not provided. |
java.lang.String |
getParamNavtext()
Returns the value of the navigation text parameter, or null if this parameter was not provided. |
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
javax.servlet.http.HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace settings accordingly. |
void |
setParamNavpos(java.lang.String value)
Sets the value of the navigation position parameter. |
void |
setParamNavtext(java.lang.String value)
Sets the value of the navigation text parameter. |
| Methods inherited from class org.opencms.workplace.tools.CmsToolDialog |
|---|
dialogTitle, getAdminTool, getCurrentToolPath, getParamBase, getParamForce, getParamPath, getParamRoot, getParamStyle, getParentPath, getToolManager, iconsBlockArea, iconsBlockAreaEnd, iconsBlockAreaStart, initAdminTool, pageBody, pageHtmlStyle, setParamBase, setParamForce, setParamPath, setParamRoot, setParamStyle, useNewStyle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ACTION_CHNAV
public static final java.lang.String DIALOG_TYPE
public static final java.lang.String PARAM_NAVPOS
public static final java.lang.String PARAM_NAVTEXT
| Constructor Detail |
|---|
public CmsChnav(CmsJspActionElement jsp)
jsp - an initialized JSP action element
public CmsChnav(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
context - the JSP page contextreq - the JSP requestres - the JSP response| Method Detail |
|---|
public static java.lang.String buildNavPosSelector(CmsObject cms,
java.lang.String filename,
java.lang.String attributes,
CmsMessages messages)
cms - the CmsObjectfilename - the current fileattributes - optional attributes for the <select> tag, do not add the "name" atribute!messages - the localized workplace messages
public void actionChangeNav()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException - if including a JSP subelement is not successfulpublic java.lang.String buildNavPosSelector()
public java.lang.String getCurrentNavText()
public java.lang.String getParamNavpos()
The navigation position parameter defines the new value for the NavPos property.
public java.lang.String getParamNavtext()
The navigation text parameter defines the new value for the NavText property.
public void setParamNavpos(java.lang.String value)
value - the value to setpublic void setParamNavtext(java.lang.String value)
value - the value to set
protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings,
javax.servlet.http.HttpServletRequest request)
CmsWorkplace
initWorkplaceRequestValues in class CmsDialogsettings - 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 | |||||