|
||||||
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_CmsListExplorerDialog
org.opencms.workplace.list.A_CmsSelectResourceList
org.opencms.workplace.explorer.CmsNewResourceXmlContentModel
public class CmsNewResourceXmlContentModel
The new resource xmlcontent model file selection dialog handles the selection of a model file for a new xmlcontent.
Creates a list of model files to choose from and forwards either to the new resource dialog or to the editor.
The following files use this class:
Field Summary | |
---|---|
static java.lang.String |
LIST_DETAIL_DESCRIPTION
List detail description info. |
static java.lang.String |
LIST_ID
List id constant. |
static java.lang.String |
VFS_PATH_MODELDIALOG
Absolute path to the model file dialog. |
static java.lang.String |
VFS_PATH_NEWRESOURCEDIALOG
Absolute path to thenew resource dialog. |
Fields inherited from class org.opencms.workplace.list.A_CmsSelectResourceList |
---|
BUTTON_FINISH, BUTTON_NEXT, LIST_COLUMN_SELECT, LIST_RACTION_SEL |
Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
---|
PARAM_BASE, PARAM_FORCE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW |
Constructor Summary | |
---|---|
CmsNewResourceXmlContentModel(CmsJspActionElement jsp)
Public constructor. |
|
CmsNewResourceXmlContentModel(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Public constructor with JSP variables. |
Method Summary | |
---|---|
protected void |
actionClose()
Closes the dialog and forwards to the previed page in direct editor mode. |
void |
actionDialog()
Overrides the default action, parameters have to be set and the forward targets may be different. |
java.lang.String |
dialogButtons()
The buttons in the new resource dialog depend on various preconditions. |
protected void |
fillDetails(java.lang.String detailId)
Lazy initialization for detail data. |
I_CmsListResourceCollector |
getCollector()
Returns the collector to use to display the resources. |
java.lang.String |
getListTitle()
Returns the title of the list to display. |
java.lang.String |
getParamAppendSuffixHtml()
Returns the parameter to check if a ".html" suffix should be added to the new resource name. |
java.lang.String |
getParamBackLink()
Returns the back link URL used when displaying the dialog in pre editor mode. |
java.lang.String |
getParamModelFile()
Returns the parameter that specifies the model file name. |
java.lang.String |
getParamNewResourceEditProps()
Returns the new resource edit properties flag parameter. |
java.lang.String |
getParamNewResourceType()
Returns the new resource type parameter. |
protected boolean |
isColumnVisible(int colFlag)
The following columns are visible by default: type icon, resource name, title and last modification date. |
java.lang.String |
nextUrl()
Returns the url to forward the parameters after selection. |
protected void |
setColumns(CmsListMetadata metadata)
Removes the default "preview file" action from the file name column. |
protected void |
setIndependentActions(CmsListMetadata metadata)
Should add the independent actions to the given list metadata object. |
void |
setParamAppendSuffixHtml(java.lang.String paramAppendSuffixHtml)
Sets the parameter to check if a ".html" suffix should be added to the new resource name. |
void |
setParamBackLink(java.lang.String paramBackLink)
Sets the back link URL used when displaying the dialog in pre editor mode. |
void |
setParamModelFile(java.lang.String paramMasterFile)
Sets the parameter that specifies the model file name. |
void |
setParamNewResourceEditProps(java.lang.String newResourceEditProps)
Sets the new resource edit properties flag parameter. |
void |
setParamNewResourceType(java.lang.String newResourceType)
Sets the new resource type parameter. |
Methods inherited from class org.opencms.workplace.list.A_CmsSelectResourceList |
---|
customHtmlEnd, customHtmlStart, dialogButtonsHtml, displayDialog, executeListMultiActions, executeListSingleActions, getSelectedResourceName, initWorkplaceRequestValues, setMultiActions |
Methods inherited from class org.opencms.workplace.list.A_CmsListExplorerDialog |
---|
applyColumnVisibilities, defaultActionHtmlStart, executeListIndepActions, executeSelectPage, fillList, getColVisibilities, getListItems, getListStateForCollector, getParamShowexplorer, getProject, getResourceUtil, getResourceUtil, setColumnVisibilities, setColumnVisibility, setColVisibilities, setParamShowexplorer |
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 java.lang.String LIST_DETAIL_DESCRIPTION
public static final java.lang.String LIST_ID
public static final java.lang.String VFS_PATH_MODELDIALOG
public static final java.lang.String VFS_PATH_NEWRESOURCEDIALOG
Constructor Detail |
---|
public CmsNewResourceXmlContentModel(CmsJspActionElement jsp)
jsp
- an initialized JSP action elementpublic CmsNewResourceXmlContentModel(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 responseMethod Detail |
---|
public void actionDialog() throws javax.servlet.jsp.JspException, javax.servlet.ServletException, java.io.IOException
actionDialog
in class A_CmsSelectResourceList
javax.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()
Variations:
dialogButtons
in class A_CmsSelectResourceList
A_CmsSelectResourceList.dialogButtons()
public I_CmsListResourceCollector getCollector()
A_CmsListExplorerDialog
getCollector
in class A_CmsListExplorerDialog
A_CmsListExplorerDialog.getCollector()
public java.lang.String getListTitle()
A_CmsSelectResourceList
getListTitle
in class A_CmsSelectResourceList
A_CmsSelectResourceList.getListTitle()
public java.lang.String getParamAppendSuffixHtml()
public java.lang.String getParamBackLink()
public java.lang.String getParamModelFile()
public java.lang.String getParamNewResourceEditProps()
public java.lang.String getParamNewResourceType()
public java.lang.String nextUrl()
A_CmsSelectResourceList
nextUrl
in class A_CmsSelectResourceList
A_CmsSelectResourceList.nextUrl()
public void setParamAppendSuffixHtml(java.lang.String paramAppendSuffixHtml)
paramAppendSuffixHtml
- the parameter to check if a ".html" suffix should be added to the new resource namepublic void setParamBackLink(java.lang.String paramBackLink)
paramBackLink
- the back link URL used when displaying the dialog in pre editor modepublic void setParamModelFile(java.lang.String paramMasterFile)
paramMasterFile
- the parameter that specifies the model file namepublic void setParamNewResourceEditProps(java.lang.String newResourceEditProps)
newResourceEditProps
- the new resource edit properties flag parameterpublic void setParamNewResourceType(java.lang.String newResourceType)
newResourceType
- the new resource type parameterprotected void actionClose() throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
- if forwarding fails
javax.servlet.ServletException
- if forwarding failsprotected void fillDetails(java.lang.String detailId)
A_CmsListDialog
Should fill the given detail column for every list item in
Should not throw any kind of exception.CmsHtmlList.getContent()
fillDetails
in class A_CmsSelectResourceList
detailId
- the id of the detail to initializeA_CmsSelectResourceList.fillDetails(java.lang.String)
protected boolean isColumnVisible(int colFlag)
A_CmsSelectResourceList
Override this to set different column visibilities.
isColumnVisible
in class A_CmsSelectResourceList
colFlag
- some CmsUserSettings.FILELIST_TITLE
like value
identifying the column to get the visibility flag for
A_CmsListExplorerDialog.isColumnVisible(int)
protected void setColumns(CmsListMetadata metadata)
setColumns
in class A_CmsSelectResourceList
metadata
- the list metadataA_CmsListExplorerDialog.setColumns(org.opencms.workplace.list.CmsListMetadata)
protected void setIndependentActions(CmsListMetadata metadata)
A_CmsListDialog
This method will be just executed once, the first time the constructor is called.
setIndependentActions
in class A_CmsListExplorerDialog
metadata
- the list metadataA_CmsListExplorerDialog.setIndependentActions(org.opencms.workplace.list.CmsListMetadata)
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |