Package org.opencms.workplace.list
Class CmsMultiListDialog
java.lang.Object
org.opencms.workplace.list.CmsMultiListDialog
Helper class for managing three lists on the same dialog.
- Since:
- 6.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGenerates the dialog starting html code.protected StringReturns the html code for the default action content.protected StringGenerates the dialog ending html code.protected StringGenerates the dialog starting html code.voidDisplay method for two list dialogs.voiddisplayDialog(boolean writeLater) Display method for two list dialogs, executes actions, but only displays if needed.Returns the activeWp.booleanReturnstrueif one of the lists has been forwarded.voidWrites the dialog html code, only if theis set.CmsDialog.ACTION_DEFAULT
-
Constructor Details
-
CmsMultiListDialog
Default constructor.- Parameters:
wps- the lists to be displayed
-
-
Method Details
-
displayDialog
public void displayDialog() throws javax.servlet.jsp.JspException, IOException, javax.servlet.ServletExceptionDisplay method for two list dialogs.- Throws:
javax.servlet.jsp.JspException- if dialog actions failIOException- if writing to the JSP out fails, or in case of errros forwarding to the required result pagejavax.servlet.ServletException- in case of errros forwarding to the required result page
-
displayDialog
public void displayDialog(boolean writeLater) throws javax.servlet.jsp.JspException, IOException, javax.servlet.ServletException Display method for two list dialogs, executes actions, but only displays if needed.- Parameters:
writeLater- iftrueno output is written, you have to call manually themethod.defaultActionHtml()- Throws:
javax.servlet.jsp.JspException- if dialog actions failIOException- if writing to the JSP out fails, or in case of errros forwarding to the required result pagejavax.servlet.ServletException- in case of errros forwarding to the required result page
-
getActiveWp
Returns the activeWp.- Returns:
- the activeWp
-
isForwarded
Returnstrueif one of the lists has been forwarded.- Returns:
trueif one of the lists has been forwarded
-
writeDialog
Writes the dialog html code, only if theis set.CmsDialog.ACTION_DEFAULT- Throws:
IOException- if writing to the JSP out fails, or in case of errros forwarding to the required result page
-
defaultActionHtml
Generates the dialog starting html code.- Returns:
- html code
-
defaultActionHtmlContent
Returns the html code for the default action content.- Returns:
- html code
-
defaultActionHtmlEnd
Generates the dialog ending html code.- Returns:
- html code
-
defaultActionHtmlStart
Generates the dialog starting html code.- Returns:
- html code
-