Package org.opencms.workplace.list
Class CmsTwoListsDialog
java.lang.Object
org.opencms.workplace.list.CmsTwoListsDialog
- Direct Known Subclasses:
CmsTwoListsDialogsWOStart
,CmsTwoOrgUnitUsersList
Helper class for managing two lists on the same dialog.
- Since:
- 6.0.0
-
Constructor Summary
ConstructorDescriptionCmsTwoListsDialog
(A_CmsListDialog wp1, A_CmsListDialog wp2) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Generates the dialog starting html code.protected String
Returns the html code for the default action content.protected String
Generates the dialog ending html code.protected String
Generates the dialog starting html code.void
Display method for two list dialogs.void
displayDialog
(boolean writeLater) Display method for two list dialogs, executes actions, but only displays if needed.Returns the workplace instance of the active list.Returns the workplace instance of the first list.Returns the workplace instance of the passive list.Returns the workplace instance of the second list.void
Writes the dialog html code, only if the
is set.CmsDialog.ACTION_DEFAULT
-
Constructor Details
-
CmsTwoListsDialog
Default constructor.- Parameters:
wp1
- the workplace instance for the first listwp2
- the workplace instance for the second list
-
-
Method Details
-
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
-
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 errors forwarding to the required result pagejavax.servlet.ServletException
- in case of errors forwarding to the required result page
-
writeDialog
Writes the dialog html code, only if the
is set.CmsDialog.ACTION_DEFAULT
- Throws:
IOException
- if writing to the JSP out fails, or in case of errors 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
- iftrue
no output is written, you have to call manually the
method.defaultActionHtml()
- Throws:
javax.servlet.jsp.JspException
- if dialog actions failIOException
- if writing to the JSP out fails, or in case of errors forwarding to the required result pagejavax.servlet.ServletException
- in case of errors forwarding to the required result page
-
getActiveWp
Returns the workplace instance of the active list.- Returns:
- the workplace instance of the active list
-
getFirstWp
Returns the workplace instance of the first list.- Returns:
- the workplace instance of the first list
-
getPassiveWp
Returns the workplace instance of the passive list.- Returns:
- the workplace instance of the passive list
-
getSecondWp
Returns the workplace instance of the second list.- Returns:
- the workplace instance of the second list
-