|
||||||||
| 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.list.A_CmsListDialog
org.opencms.workplace.list.A_CmsListResourceTypeDialog
org.opencms.workplace.commons.CmsChtype
public class CmsChtype
The change resource type dialog handles the change of a resource type of a single VFS file.
The following files use this class:
| Field Summary | |
|---|---|
static int |
ACTION_ADVANCED
Dialog action: show advanced list (for workplace VFS managers). |
static java.lang.String |
DIALOG_TYPE
The dialog type. |
static java.lang.String |
SESSION_ATTR_ADVANCED
Session attribute to store advanced mode. |
| Fields inherited from class org.opencms.workplace.list.A_CmsListResourceTypeDialog |
|---|
LIST_ACTION_SEL, LIST_COLUMN_ICON, LIST_COLUMN_NAME, LIST_COLUMN_SELECT, LIST_DETAIL_DESCRIPTION, LIST_ID, PARAM_SELECTED_TYPE |
| Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
|---|
PARAM_ADMIN_PROJECT, PARAM_BASE, PARAM_FORCE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW |
| Constructor Summary | |
|---|---|
CmsChtype(CmsJspActionElement jsp)
Public constructor with JSP action element. |
|
CmsChtype(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Public constructor with JSP variables. |
|
| Method Summary | |
|---|---|
void |
actionChtype()
Uploads the specified file and replaces the VFS file. |
void |
actionDialog()
Performs the dialog actions depending on the initialized action. |
protected java.lang.String |
customHtmlBeforeList()
Returns the html code to add directly before the list inside the form element. |
protected java.lang.String |
customHtmlStart()
Can be overwritten to add some code before the list. |
java.lang.String |
dialogButtons()
Builds a default button row with a continue and cancel button. |
java.lang.String |
dialogButtonsOkAdvancedCancel(java.lang.String okAttrs,
java.lang.String advancedAttrs,
java.lang.String cancelAttrs)
Builds a button row with an optional "ok", "advanced" and a "cancel" button. |
protected java.util.List |
getListItems()
Should generate a list with the list items to be displayed. |
java.lang.String |
getParamSelectedType()
Returns the paramSelectedType. |
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
javax.servlet.http.HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace settings accordingly. |
| Methods inherited from class org.opencms.workplace.list.A_CmsListResourceTypeDialog |
|---|
customHtmlEnd, defaultActionHtmlContent, executeListMultiActions, executeListSingleActions, fillDetails, paramsAsHidden, paramsAsHidden, setColumns, setIndependentActions, setMultiActions, setParamSelectedType |
| Methods inherited from class org.opencms.workplace.tools.CmsToolDialog |
|---|
computeUpLevelLink, 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_ADVANCED
public static final java.lang.String DIALOG_TYPE
public static final java.lang.String SESSION_ATTR_ADVANCED
| Constructor Detail |
|---|
public CmsChtype(CmsJspActionElement jsp)
jsp - an initialized JSP action element
public CmsChtype(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 void actionChtype()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException - if inclusion of error dialog fails
public void actionDialog()
throws javax.servlet.jsp.JspException,
javax.servlet.ServletException,
java.io.IOException
A_CmsListDialog
actionDialog in class A_CmsListResourceTypeDialogjavax.servlet.jsp.JspException - if dialog actions fail
javax.servlet.ServletException - in case of errors forwarding to the required result page
java.io.IOException - in case of errors forwarding to the required result pageA_CmsListDialog.actionDialog()public java.lang.String dialogButtons()
Override this to have special buttons for your dialog.
dialogButtons in class A_CmsListResourceTypeDialog
public java.lang.String dialogButtonsOkAdvancedCancel(java.lang.String okAttrs,
java.lang.String advancedAttrs,
java.lang.String cancelAttrs)
okAttrs - optional attributes for the ok buttonadvancedAttrs - optional attributes for the advanced buttoncancelAttrs - optional attributes for the cancel button
public java.lang.String getParamSelectedType()
A_CmsListResourceTypeDialog
getParamSelectedType in class A_CmsListResourceTypeDialogA_CmsListResourceTypeDialog.getParamSelectedType()protected java.lang.String customHtmlBeforeList()
customHtmlBeforeList in class A_CmsListResourceTypeDialogprotected java.lang.String customHtmlStart()
A_CmsListDialog
customHtmlStart in class A_CmsListResourceTypeDialogA_CmsListDialog.customHtmlStart()
protected java.util.List getListItems()
throws CmsException
A_CmsListDialog
getListItems in class A_CmsListDialogCmsListItems
CmsException - if something goes wrongA_CmsListDialog.getListItems()
protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings,
javax.servlet.http.HttpServletRequest request)
CmsWorkplace
initWorkplaceRequestValues in class A_CmsListDialogsettings - 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 | |||||||