| java.lang.Object org.opencms.workplace.CmsWorkplace org.opencms.workplace.tools.CmsToolDialog org.opencms.workplace.CmsDialog
All known Subclasses: org.opencms.workplace.tools.modules.CmsModulesDelete, org.opencms.workplace.commons.CmsCommentImages, com.alkacon.opencms.newsletter.admin.CmsNewsletterEditorWrapper, org.opencms.workplace.administration.A_CmsImportFromHttp, org.opencms.workplace.editors.CmsPreEditorAction, org.opencms.workplace.commons.CmsSecure, org.opencms.workplace.commons.CmsDeletedResources, org.opencms.workplace.commons.CmsRenameImages, org.opencms.workplace.galleries.CmsOpenGallery, org.opencms.workplace.tools.CmsExplorerDialog, org.opencms.workplace.commons.CmsChacc, org.opencms.workplace.list.A_CmsListDialog, org.opencms.workplace.search.CmsSearchEditorWrapper, org.opencms.workplace.tools.content.CmsPropertyDelete, org.opencms.workplace.help.CmsHelpTemplateBean, org.opencms.editors.fckeditor.CmsFCKEditorFileBrowser, org.opencms.workplace.list.CmsListPrintDialog, org.opencms.workplace.commons.CmsChnav, org.opencms.workplace.comparison.CmsPointerComparisonDialog, org.opencms.workplace.comparison.CmsResourceComparisonDialog, org.opencms.workplace.tools.workplace.rfsfile.CmsRfsFileDownloadDialog, org.opencms.workplace.CmsWidgetDialog, org.opencms.workplace.administration.CmsAdminDialog, org.opencms.workplace.commons.CmsReplace, org.opencms.workplace.comparison.CmsImageComparisonDialog, org.opencms.workplace.administration.CmsAdminEditorWrapper, org.opencms.workplace.list.CmsListCsvExportDialog, org.opencms.workplace.CmsTabDialog, org.opencms.workplace.editors.CmsEditorBase, org.opencms.workplace.galleries.A_CmsGallery, org.opencms.editors.fckeditor.CmsFCKEditorDialogImage, org.opencms.workplace.editors.CmsDialogElements, org.opencms.workplace.commons.CmsCopyToProject, org.opencms.workplace.CmsMultiDialog, org.opencms.workplace.commons.CmsEditPointer, org.opencms.workplace.tools.workplace.CmsReInitWorkplace, org.opencms.workplace.tools.content.CmsPropertyChange, org.opencms.workplace.comparison.A_CmsDiffViewDialog, org.opencms.workplace.commons.CmsDisplayResource,
CmsDialog | public class CmsDialog extends CmsToolDialog (Code) | | Provides methods for building the dialog windows of OpenCms.
author: Andreas Zahner version: $Revision: 1.101 $ since: 6.0.0 |
Field Summary | |
final public static int | ACTION_CANCEL Value for the action: cancel. | final public static int | ACTION_CLOSEPOPUP Value for the action: close popup window. | final public static int | ACTION_CLOSEPOPUP_SAVE Value for the action: save & close popup window. | final public static int | ACTION_CONFIRMED Value for the action: confirmed. | final public static int | ACTION_CONTINUE Value for the action: continue. | final public static int | ACTION_DEFAULT Value for the action: default (show initial dialog form). | final public static int | ACTION_LOCKS_CONFIRMED Value for the action: locks confirmed. | final public static int | ACTION_OK Value for the action: ok. | final public static int | ACTION_REPORT_BEGIN Value for the action: begin the report. | final public static int | ACTION_REPORT_END Value for the action: end the report. | final public static int | ACTION_REPORT_UPDATE Value for the action: update the report. | final public static int | ACTION_SET Value for the action: button "set" clicked. | final public static int | ACTION_WAIT Value for the action: wait (show please wait screen). | final protected static String | ATTRIBUTE_THROWABLE Key name for the throwable attribute. | final public static int | BUTTON_ADVANCED Constant for the "Advanced" button in the build button methods. | final public static int | BUTTON_BACK Constant for the "Back" button in the build button methods. | final public static int | BUTTON_CANCEL Constant for the "Cancel" button in the build button methods. | final public static int | BUTTON_CLOSE Constant for the "Close" button in the build button methods. | final public static int | BUTTON_CONTINUE Constant for the "Continue" button in the build button methods. | final public static int | BUTTON_DETAILS Constant for the "Details" button in the build button methods. | final public static int | BUTTON_DISCARD Constant for the "Discard" button in the build button methods (same function as "Cancel" button but different text on button. | final public static int | BUTTON_EDIT Constant for the "Edit" button in the build button methods (same function as "Ok" button but different text on button. | final public static int | BUTTON_OK Constant for the "OK" button in the build button methods. | final public static int | BUTTON_OK_NO_SUBMIT Constant for the "OK" button in the build button methods (without form submission). | final public static int | BUTTON_SET Constant for the "Set" button in the build button methods. | final public static String | DIALOG_BACK Request parameter value for the action: back. | final public static String | DIALOG_CANCEL Request parameter value for the action: cancel. | final public static String | DIALOG_CONFIRMED Request parameter value for the action: dialog confirmed. | final public static String | DIALOG_CONTINUE Request parameter value for the action: continue. | final public static String | DIALOG_INITIAL Request parameter value for the action: initial call. | final public static String | DIALOG_LOCKS_CONFIRMED Request parameter value for the action: dialog locks confirmed. | final public static String | DIALOG_OK Request parameter value for the action: ok. | final public static String | DIALOG_SET Request parameter value for the action: set. | final public static String | DIALOG_WAIT Request parameter value for the action: show please wait screen. | final public static String | PARAM_ACTION Request parameter name for the action. | final public static String | PARAM_CLOSELINK Request parameter name for the closelink. | final public static String | PARAM_DIALOGTYPE Request parameter name for the dialog type. | final public static String | PARAM_ERRORSTACK Request parameter name for the error stack. | final public static String | PARAM_FILE Request parameter name for the file. | final public static String | PARAM_FRAMENAME Request parameter name for the frame name. | final public static String | PARAM_ISPOPUP Request parameter name for the "is popup" flag. | final public static String | PARAM_LOCK Request parameter name for the lock. | final public static String | PARAM_MESSAGE Request parameter name for the error message. | final public static String | PARAM_ORIGINALPARAMS Request parameter name for the originalparams. | final public static String | PARAM_PREACTIONDONE Request parameter name for the preactiondone. | final public static String | PARAM_REDIRECT Request parameter name for the redirect flag. | final public static String | PARAM_RESOURCE Request parameter name for the resource. | final public static String | PARAM_TARGET Request parameter name for the target. | final public static String | PARAM_THREAD Request parameter name for the thread id. | final public static String | PARAM_THREAD_HASNEXT Request parameter name for indicating if another thread is following the current one. | final public static String | PARAM_TITLE Request parameter name for the dialog title. | final public static String | REPORT_BEGIN Request parameter value for the action: begin the report. | final public static String | REPORT_END Request parameter value for the action: end the report. | final public static String | REPORT_UPDATE Request parameter value for the action: update the report. |
Method Summary | |
public void | actionCloseDialog() Used to close the current JSP dialog.
This method tries to include the URI stored in the workplace settings. | protected String | appendDelimiter(String attribute) Appends a space char. | public String | buildAjaxResultContainer(String title) | protected String | buildAjaxWaitMessage() | public String | buildLockAdditionalOptions() | public String | buildLockConfirmationMessageJS() | public String | buildLockDialog() | public String | buildLockDialog(CmsLockFilter nonBlockingFilter, CmsLockFilter blockingFilter, int hiddenTimeout, boolean includeRelated) | public String | buildLockHeaderBox() | protected boolean | checkResourcePermissions(CmsPermissionSet required, boolean neededForFolder) Checks if the permissions of the current user on the resource to use in the dialog are sufficient.
Automatically generates a CmsMessageContainer object with an error message and stores it in the users session.
Parameters: required - the required permissions for the dialog Parameters: neededForFolder - if true, the permissions are required for the parent folder of the resource (e.g. | protected boolean | checkResourcePermissions(CmsPermissionSet required, boolean neededForFolder, CmsMessageContainer errorMessage) Checks if the permissions of the current user on the resource to use in the dialog are sufficient.
Automatically generates a CmsMessageContainer object with an error message and stores it in the users session.
Parameters: required - the required permissions for the dialog Parameters: neededForFolder - if true, the permissions are required for the parent folder of the resource (e.g. | protected String | computeCurrentFolder() | public String | dialog(int segment, String attributes) | public String | dialogBlock(int segment, String headline, boolean error) | public String | dialogBlockEnd() | public String | dialogBlockStart(String headline) | public String | dialogButtonRow(int segment) | public String | dialogButtonRowEnd() | public String | dialogButtonRowStart() | public String | dialogButtons(int[] buttons, String[] attributes) | public String | dialogButtonsClose() | public String | dialogButtonsClose(String closeAttribute) | public String | dialogButtonsCloseDetails(String closeAttribute, String detailsAttribute) | protected void | dialogButtonsHtml(StringBuffer result, int button, String attribute) | public String | dialogButtonsOk() | public String | dialogButtonsOk(String okAttribute) | public String | dialogButtonsOkCancel() | public String | dialogButtonsOkCancel(String okAttributes, String cancelAttributes) | public String | dialogButtonsOkCancelAdvanced(String okAttributes, String cancelAttributes, String advancedAttributes) | public String | dialogButtonsSetOkCancel(String setAttributes, String okAttributes, String cancelAttributes) | public String | dialogContent(int segment, String title) | public String | dialogContentEnd() | public String | dialogContentStart(String title) | public String | dialogEnd() | public String | dialogHead(String title) | public String | dialogHorizontalSpacer(int width) | public String | dialogLockButtons() | public String | dialogRow(int segment) | public String | dialogRowEnd() | public String | dialogRowStart() | public String | dialogScriptSubmit() | public String | dialogSeparator() | public String | dialogSpacer() | public String | dialogStart() | public String | dialogStart(String attributes) | public String | dialogSubheadline(String headline) | public String | dialogToggleStart(String headline, String id, boolean show) | public String | dialogWhiteBox(int segment) | public String | dialogWhiteBoxEnd() | public String | dialogWhiteBoxStart() | public int | getAction() | protected String | getAdministrationBackLink() | public String | getCancelAction() | public String | getDialogRealUri() | public String | getDialogUri() Returns the http URI of the current dialog, to be used
as value for the "action" attribute of a html form.
This URI could not be really the real one... | public String | getOnlineHelpUriCustom() | public String | getParamAction() Returns the value of the action parameter,
or null if this parameter was not provided.
The action parameter is very important,
it will select the dialog action to perform. | public String | getParamCloseLink() | public String | getParamDialogtype() Returns the value of the dialogtype parameter,
or null if this parameter was not provided.
This parameter is very important. | public String | getParamFramename() | public String | getParamIsPopup() | public String | getParamMessage() | public String | getParamOriginalParams() | public String | getParamPreActionDone() | public String | getParamRedirect() | public String | getParamResource() | public String | getParamTitle() Returns the value of the title parameter,
or null if this parameter was not provided.
This parameter is used to build the title
of the dialog. | public String | getState() | public boolean | hasCorrectLockstate() Checks if the current resource has lock state exclusive or inherited.
This is used to determine whether the dialog shows the option to delete all
siblings of the resource or not. | public boolean | hasSiblings() | public String | htmlStart() | public String | htmlStart(String helpUrl) | public String | htmlStart(String helpUrl, String title) | public String | htmlStartStyle(String title, String stylesheet) | public void | includeErrorpage(CmsWorkplace wp, Throwable t) | public static CmsDialog | initCmsDialog(PageContext context, HttpServletRequest req, HttpServletResponse res) Returns an initialized CmsDialog instance that is read from the request attributes.
This method is used by dialog elements. | protected void | initWorkplaceRequestValues(CmsWorkplaceSettings settings, HttpServletRequest request) | public boolean | isPopup() | public boolean | isPreEditor() | public String | pageHtml(int segment, String helpUrl) | public String | pageHtml(int segment, String helpUrl, String title) | protected void | setAction(int value) | public void | setOnlineHelpUriCustom(String uri) Set the custom mapping for the online help. | public void | setParamAction(String value) | public void | setParamCloseLink(String value) | public void | setParamDialogtype(String value) | public void | setParamFramename(String value) | public void | setParamIsPopup(String value) | public void | setParamMessage(String value) | public void | setParamOriginalParams(String paramOriginalParams) | public void | setParamPreActionDone(String paramPreActionDone) | public void | setParamRedirect(String redirect) | public void | setParamResource(String value) | public void | setParamTitle(String value) |
ACTION_CANCEL | final public static int ACTION_CANCEL(Code) | | Value for the action: cancel.
|
ACTION_CLOSEPOPUP | final public static int ACTION_CLOSEPOPUP(Code) | | Value for the action: close popup window.
|
ACTION_CLOSEPOPUP_SAVE | final public static int ACTION_CLOSEPOPUP_SAVE(Code) | | Value for the action: save & close popup window.
|
ACTION_CONFIRMED | final public static int ACTION_CONFIRMED(Code) | | Value for the action: confirmed.
|
ACTION_CONTINUE | final public static int ACTION_CONTINUE(Code) | | Value for the action: continue.
|
ACTION_DEFAULT | final public static int ACTION_DEFAULT(Code) | | Value for the action: default (show initial dialog form).
|
ACTION_LOCKS_CONFIRMED | final public static int ACTION_LOCKS_CONFIRMED(Code) | | Value for the action: locks confirmed.
|
ACTION_OK | final public static int ACTION_OK(Code) | | Value for the action: ok.
|
ACTION_REPORT_BEGIN | final public static int ACTION_REPORT_BEGIN(Code) | | Value for the action: begin the report.
|
ACTION_REPORT_END | final public static int ACTION_REPORT_END(Code) | | Value for the action: end the report.
|
ACTION_REPORT_UPDATE | final public static int ACTION_REPORT_UPDATE(Code) | | Value for the action: update the report.
|
ACTION_SET | final public static int ACTION_SET(Code) | | Value for the action: button "set" clicked.
|
ACTION_WAIT | final public static int ACTION_WAIT(Code) | | Value for the action: wait (show please wait screen).
|
ATTRIBUTE_THROWABLE | final protected static String ATTRIBUTE_THROWABLE(Code) | | Key name for the throwable attribute.
|
BUTTON_ADVANCED | final public static int BUTTON_ADVANCED(Code) | | Constant for the "Advanced" button in the build button methods.
|
BUTTON_BACK | final public static int BUTTON_BACK(Code) | | Constant for the "Back" button in the build button methods.
|
BUTTON_CANCEL | final public static int BUTTON_CANCEL(Code) | | Constant for the "Cancel" button in the build button methods.
|
BUTTON_CLOSE | final public static int BUTTON_CLOSE(Code) | | Constant for the "Close" button in the build button methods.
|
BUTTON_CONTINUE | final public static int BUTTON_CONTINUE(Code) | | Constant for the "Continue" button in the build button methods.
|
BUTTON_DETAILS | final public static int BUTTON_DETAILS(Code) | | Constant for the "Details" button in the build button methods.
|
BUTTON_DISCARD | final public static int BUTTON_DISCARD(Code) | | Constant for the "Discard" button in the build button methods (same function as "Cancel" button but different text on button.
|
BUTTON_EDIT | final public static int BUTTON_EDIT(Code) | | Constant for the "Edit" button in the build button methods (same function as "Ok" button but different text on button.
|
BUTTON_OK | final public static int BUTTON_OK(Code) | | Constant for the "OK" button in the build button methods.
|
BUTTON_OK_NO_SUBMIT | final public static int BUTTON_OK_NO_SUBMIT(Code) | | Constant for the "OK" button in the build button methods (without form submission).
|
BUTTON_SET | final public static int BUTTON_SET(Code) | | Constant for the "Set" button in the build button methods.
|
DIALOG_BACK | final public static String DIALOG_BACK(Code) | | Request parameter value for the action: back.
|
DIALOG_CANCEL | final public static String DIALOG_CANCEL(Code) | | Request parameter value for the action: cancel.
|
DIALOG_CONFIRMED | final public static String DIALOG_CONFIRMED(Code) | | Request parameter value for the action: dialog confirmed.
|
DIALOG_CONTINUE | final public static String DIALOG_CONTINUE(Code) | | Request parameter value for the action: continue.
|
DIALOG_INITIAL | final public static String DIALOG_INITIAL(Code) | | Request parameter value for the action: initial call.
|
DIALOG_LOCKS_CONFIRMED | final public static String DIALOG_LOCKS_CONFIRMED(Code) | | Request parameter value for the action: dialog locks confirmed.
|
DIALOG_OK | final public static String DIALOG_OK(Code) | | Request parameter value for the action: ok.
|
DIALOG_SET | final public static String DIALOG_SET(Code) | | Request parameter value for the action: set.
|
DIALOG_WAIT | final public static String DIALOG_WAIT(Code) | | Request parameter value for the action: show please wait screen.
|
PARAM_ACTION | final public static String PARAM_ACTION(Code) | | Request parameter name for the action.
|
PARAM_CLOSELINK | final public static String PARAM_CLOSELINK(Code) | | Request parameter name for the closelink.
|
PARAM_DIALOGTYPE | final public static String PARAM_DIALOGTYPE(Code) | | Request parameter name for the dialog type.
|
PARAM_ERRORSTACK | final public static String PARAM_ERRORSTACK(Code) | | Request parameter name for the error stack.
|
PARAM_FILE | final public static String PARAM_FILE(Code) | | Request parameter name for the file.
|
PARAM_FRAMENAME | final public static String PARAM_FRAMENAME(Code) | | Request parameter name for the frame name.
|
PARAM_ISPOPUP | final public static String PARAM_ISPOPUP(Code) | | Request parameter name for the "is popup" flag.
|
PARAM_LOCK | final public static String PARAM_LOCK(Code) | | Request parameter name for the lock.
|
PARAM_MESSAGE | final public static String PARAM_MESSAGE(Code) | | Request parameter name for the error message.
|
PARAM_ORIGINALPARAMS | final public static String PARAM_ORIGINALPARAMS(Code) | | Request parameter name for the originalparams.
|
PARAM_PREACTIONDONE | final public static String PARAM_PREACTIONDONE(Code) | | Request parameter name for the preactiondone.
|
PARAM_REDIRECT | final public static String PARAM_REDIRECT(Code) | | Request parameter name for the redirect flag.
|
PARAM_RESOURCE | final public static String PARAM_RESOURCE(Code) | | Request parameter name for the resource.
|
PARAM_TARGET | final public static String PARAM_TARGET(Code) | | Request parameter name for the target.
|
PARAM_THREAD | final public static String PARAM_THREAD(Code) | | Request parameter name for the thread id.
|
PARAM_THREAD_HASNEXT | final public static String PARAM_THREAD_HASNEXT(Code) | | Request parameter name for indicating if another thread is following the current one.
|
PARAM_TITLE | final public static String PARAM_TITLE(Code) | | Request parameter name for the dialog title.
|
REPORT_BEGIN | final public static String REPORT_BEGIN(Code) | | Request parameter value for the action: begin the report.
|
REPORT_END | final public static String REPORT_END(Code) | | Request parameter value for the action: end the report.
|
REPORT_UPDATE | final public static String REPORT_UPDATE(Code) | | Request parameter value for the action: update the report.
|
CmsDialog | public CmsDialog(CmsJspActionElement jsp)(Code) | | Public constructor with JSP action element.
Parameters: jsp - an initialized JSP action element |
actionCloseDialog | public void actionCloseDialog() throws JspException(Code) | | Used to close the current JSP dialog.
This method tries to include the URI stored in the workplace settings.
This URI is determined by the frame name, which has to be set
in the framename parameter.
throws: JspException - if including an element fails |
appendDelimiter | protected String appendDelimiter(String attribute)(Code) | | Appends a space char. between tag attribs.
Parameters: attribute - a tag attribute the tag attribute with a leading space char. |
buildAjaxResultContainer | public String buildAjaxResultContainer(String title)(Code) | | Returns the html code to build the ajax report container.
Parameters: title - the title of the report box html code |
buildAjaxWaitMessage | protected String buildAjaxWaitMessage()(Code) | | Returns ajax wait message.
html code |
buildLockAdditionalOptions | public String buildLockAdditionalOptions()(Code) | | Override to display additional options in the lock dialog.
html code to display additional options |
buildLockConfirmationMessageJS | public String buildLockConfirmationMessageJS()(Code) | | Returns the html code to build the confirmation messages.
html code |
buildLockDialog | public String buildLockDialog(CmsLockFilter nonBlockingFilter, CmsLockFilter blockingFilter, int hiddenTimeout, boolean includeRelated) throws CmsException(Code) | | Returns the html code to build the lock dialog.
Parameters: nonBlockingFilter - the filter to get all non blocking locks Parameters: blockingFilter - the filter to get all blocking locks Parameters: hiddenTimeout - the maximal number of millis the dialog will be hidden Parameters: includeRelated - indicates if the report should include related resources html code throws: CmsException - if something goes wrong |
buildLockHeaderBox | public String buildLockHeaderBox() throws CmsException(Code) | | Returns the html code to build the header box.
html code throws: CmsException - if something goes wrong |
checkResourcePermissions | protected boolean checkResourcePermissions(CmsPermissionSet required, boolean neededForFolder)(Code) | | Checks if the permissions of the current user on the resource to use in the dialog are sufficient.
Automatically generates a CmsMessageContainer object with an error message and stores it in the users session.
Parameters: required - the required permissions for the dialog Parameters: neededForFolder - if true, the permissions are required for the parent folder of the resource (e.g. for editors) true if the permissions are sufficient, otherwise false |
checkResourcePermissions | protected boolean checkResourcePermissions(CmsPermissionSet required, boolean neededForFolder, CmsMessageContainer errorMessage)(Code) | | Checks if the permissions of the current user on the resource to use in the dialog are sufficient.
Automatically generates a CmsMessageContainer object with an error message and stores it in the users session.
Parameters: required - the required permissions for the dialog Parameters: neededForFolder - if true, the permissions are required for the parent folder of the resource (e.g. for editors) Parameters: errorMessage - the message container that is stored in the session in case the permissions are not sufficient true if the permissions are sufficient, otherwise false |
computeCurrentFolder | protected String computeCurrentFolder()(Code) | | Returns the full path of the current workplace folder.
the full path of the current workplace folder |
dialog | public String dialog(int segment, String attributes)(Code) | | Builds the outer dialog window border.
Parameters: segment - the HTML segment (START / END) Parameters: attributes - optional additional attributes for the opening dialog table a dialog window start / end segment |
dialogBlock | public String dialogBlock(int segment, String headline, boolean error)(Code) | | Builds a block with 3D border and optional subheadline in the dialog content area.
Parameters: segment - the HTML segment (START / END) Parameters: headline - the headline String for the block Parameters: error - if true, an error block will be created 3D block start / end segment |
dialogBlockEnd | public String dialogBlockEnd()(Code) | | Builds the end HTML for a block with 3D border in the dialog content area.
3D block start / end segment |
dialogBlockStart | public String dialogBlockStart(String headline)(Code) | | Builds the start HTML for a block with 3D border and optional subheadline in the dialog content area.
Parameters: headline - the headline String for the block 3D block start / end segment |
dialogButtonRow | public String dialogButtonRow(int segment)(Code) | | Builds the button row under the dialog content area without the buttons.
Parameters: segment - the HTML segment (START / END) the button row start / end segment |
dialogButtonRowEnd | public String dialogButtonRowEnd()(Code) | | Builds the end of the button row under the dialog content area without the buttons.
the button row end segment |
dialogButtonRowStart | public String dialogButtonRowStart()(Code) | | Builds the start of the button row under the dialog content area without the buttons.
the button row start segment |
dialogButtons | public String dialogButtons(int[] buttons, String[] attributes)(Code) | | Builds the html for the button row under the dialog content area, including buttons.
Parameters: buttons - array of constants of which buttons to include in the row Parameters: attributes - array of Strings for additional button attributes the html for the button row under the dialog content area, including buttons |
dialogButtonsClose | public String dialogButtonsClose()(Code) | | Builds a button row with a single "close" button.
the button row |
dialogButtonsClose | public String dialogButtonsClose(String closeAttribute)(Code) | | Builds a button row with a single "close" button.
Parameters: closeAttribute - additional attributes for the "close" button the button row |
dialogButtonsCloseDetails | public String dialogButtonsCloseDetails(String closeAttribute, String detailsAttribute)(Code) | | Builds a button row with a "close" and a "details" button.
Parameters: closeAttribute - additional attributes for the "close" button Parameters: detailsAttribute - additional attributes for the "details" button the button row |
dialogButtonsHtml | protected void dialogButtonsHtml(StringBuffer result, int button, String attribute)(Code) | | Renders the HTML for a single input button of a specified type.
Parameters: result - a string buffer where the rendered HTML gets appended to Parameters: button - a integer key to identify the button Parameters: attribute - an optional string with possible tag attributes, or null |
dialogButtonsOk | public String dialogButtonsOk()(Code) | | Builds a button row with a single "ok" button.
the button row |
dialogButtonsOk | public String dialogButtonsOk(String okAttribute)(Code) | | Builds a button row with a single "ok" button.
Parameters: okAttribute - additional attributes for the "ok" button the button row |
dialogButtonsOkCancel | public String dialogButtonsOkCancel()(Code) | | Builds a button row with an "ok" and a "cancel" button.
the button row |
dialogButtonsOkCancel | public String dialogButtonsOkCancel(String okAttributes, String cancelAttributes)(Code) | | Builds a button row with an "ok" and a "cancel" button.
Parameters: okAttributes - additional attributes for the "ok" button Parameters: cancelAttributes - additional attributes for the "cancel" button the button row |
dialogButtonsOkCancelAdvanced | public String dialogButtonsOkCancelAdvanced(String okAttributes, String cancelAttributes, String advancedAttributes)(Code) | | Builds a button row with an "ok", a "cancel" and an "advanced" button.
Parameters: okAttributes - additional attributes for the "ok" button Parameters: cancelAttributes - additional attributes for the "cancel" button Parameters: advancedAttributes - additional attributes for the "advanced" button the button row |
dialogButtonsSetOkCancel | public String dialogButtonsSetOkCancel(String setAttributes, String okAttributes, String cancelAttributes)(Code) | | Builds a button row with a "set", an "ok", and a "cancel" button.
Parameters: setAttributes - additional attributes for the "set" button Parameters: okAttributes - additional attributes for the "ok" button Parameters: cancelAttributes - additional attributes for the "cancel" button the button row |
dialogContent | public String dialogContent(int segment, String title)(Code) | | Builds the content area of the dialog window.
Parameters: segment - the HTML segment (START / END) Parameters: title - the title String for the dialog window a content area start / end segment |
dialogContentEnd | public String dialogContentEnd()(Code) | | Returns the end html for the content area of the dialog window.
the end html for the content area of the dialog window |
dialogContentStart | public String dialogContentStart(String title)(Code) | | Returns the start html for the content area of the dialog window.
Parameters: title - the title for the dialog the start html for the content area of the dialog window |
dialogEnd | public String dialogEnd()(Code) | | Returns the end html for the outer dialog window border.
the end html for the outer dialog window border |
dialogHead | public String dialogHead(String title)(Code) | | Builds the title of the dialog window.
Parameters: title - the title String for the dialog window the HTML title String for the dialog window |
dialogHorizontalSpacer | public String dialogHorizontalSpacer(int width)(Code) | | Builds an invisible horiziontal spacer with the specified width.
Parameters: width - the width of the spacer in pixels an invisible horiziontal spacer with the specified width |
dialogLockButtons | public String dialogLockButtons()(Code) | | Builds the necessary button row.
the button row |
dialogRow | public String dialogRow(int segment)(Code) | | Builds a dialog line without break (display: block).
Parameters: segment - the HTML segment (START / END) a row start / end segment |
dialogRowEnd | public String dialogRowEnd()(Code) | | Builds the end of a dialog line without break (display: block).
the row end segment |
dialogRowStart | public String dialogRowStart()(Code) | | Builds the start of a dialog line without break (display: block).
the row start segment |
dialogScriptSubmit | public String dialogScriptSubmit()(Code) | | Builds the standard javascript for submitting the dialog.
the standard javascript for submitting the dialog |
dialogSeparator | public String dialogSeparator()(Code) | | Builds a horizontal separator line in the dialog content area.
a separator element |
dialogSpacer | public String dialogSpacer()(Code) | | Builds a space between two elements in the dialog content area.
a space element |
dialogStart | public String dialogStart()(Code) | | Returns the start html for the outer dialog window border.
the start html for the outer dialog window border |
dialogStart | public String dialogStart(String attributes)(Code) | | Returns the start html for the outer dialog window border.
Parameters: attributes - optional html attributes to insert the start html for the outer dialog window border |
dialogSubheadline | public String dialogSubheadline(String headline)(Code) | | Builds a subheadline in the dialog content area.
Parameters: headline - the desired headline string a subheadline element |
dialogToggleStart | public String dialogToggleStart(String headline, String id, boolean show)(Code) | | Builds the HTML code to fold and unfild a white-box.
Parameters: headline - the heading to display Parameters: id - the id of the toggle Parameters: show - true if the white box is open at the beginning HTML code to fold and unfild a white-box |
dialogWhiteBox | public String dialogWhiteBox(int segment)(Code) | | Builds a white box in the dialog content area.
Parameters: segment - the HTML segment (START / END) the white box start / end segment |
dialogWhiteBoxEnd | public String dialogWhiteBoxEnd()(Code) | | Builds the end of a white box in the dialog content area.
the white box end segment |
dialogWhiteBoxStart | public String dialogWhiteBoxStart()(Code) | | Builds the start of a white box in the dialog content area.
the white box start segment |
getAction | public int getAction()(Code) | | Returns the action value.
The action value is used on JSP pages to select the proper action
in a large "switch" statement.
the action value |
getAdministrationBackLink | protected String getAdministrationBackLink()(Code) | | Returns the link URL to get back one folder in the administration view.
the link URL to get back one folder in the administration view |
getCancelAction | public String getCancelAction()(Code) | | Returns the action to be carried out after a click on the cancel button..
the action to be carried out after a click on the cancel button. |
getDialogRealUri | public String getDialogRealUri()(Code) | | Returns the http URI of the current dialog, to be used
as value for the "action" attribute of a html form.
This URI is the real one.
the http URI of the current dialog |
getDialogUri | public String getDialogUri()(Code) | | Returns the http URI of the current dialog, to be used
as value for the "action" attribute of a html form.
This URI could not be really the real one...
the http URI of the current dialog |
getOnlineHelpUriCustom | public String getOnlineHelpUriCustom()(Code) | | Returns the custom mapping for the online help.
the custom mapping for the online help |
getParamAction | public String getParamAction()(Code) | | Returns the value of the action parameter,
or null if this parameter was not provided.
The action parameter is very important,
it will select the dialog action to perform.
The value of the
CmsDialog.getAction() method will be
initialized from the action parameter.
the value of the action parameter |
getParamCloseLink | public String getParamCloseLink()(Code) | | Returns the value of the closelink parameter,
or null if this parameter was not provided.
the value of the closelink parameter |
getParamDialogtype | public String getParamDialogtype()(Code) | | Returns the value of the dialogtype parameter,
or null if this parameter was not provided.
This parameter is very important.
It must match to the localization keys,
e.g. "copy" for the copy dialog.
This parameter must be set manually by the subclass during
first initialization.
the value of the dialogtype parameter |
getParamFramename | public String getParamFramename()(Code) | | Returns the value of the frame name parameter.
the value of the errorstack parameter |
getParamIsPopup | public String getParamIsPopup()(Code) | | Returns the ispopup parameter.
Use this parameter to indicate that the dialog is shown in a popup window.
the ispopup parameter |
getParamMessage | public String getParamMessage()(Code) | | Returns the value of the message parameter,
or null if this parameter was not provided.
The message parameter is used on dialogs to
show any text message.
the value of the message parameter |
getParamOriginalParams | public String getParamOriginalParams()(Code) | | Returns the value of the originalparams parameter.
This stores the request parameter values from a previous dialog, if necessary.
the value of the originalparams parameter |
getParamPreActionDone | public String getParamPreActionDone()(Code) | | Returns the value of the preactiondone parameter.
the value of the preactiondone parameter |
getParamRedirect | public String getParamRedirect()(Code) | | Returns the value of the redirect flag parameter.
the value of the redirect flag parameter |
getParamResource | public String getParamResource()(Code) | | Returns the value of the file parameter,
or null if this parameter was not provided.
The file parameter selects the file on which the dialog action
is to be performed.
the value of the file parameter |
getParamTitle | public String getParamTitle()(Code) | | Returns the value of the title parameter,
or null if this parameter was not provided.
This parameter is used to build the title
of the dialog. It is a parameter so that the title
can be passed to included elements.
the value of the title parameter |
hasCorrectLockstate | public boolean hasCorrectLockstate()(Code) | | Checks if the current resource has lock state exclusive or inherited.
This is used to determine whether the dialog shows the option to delete all
siblings of the resource or not.
true if lock state is exclusive or inherited, otherwise false |
hasSiblings | public boolean hasSiblings()(Code) | | Checks if this resource has siblings.
true if this resource has siblings |
htmlStart | public String htmlStart()(Code) | | Builds the start html of the page, including setting of DOCTYPE and
inserting a header with the content-type.
the start html of the page |
htmlStart | public String htmlStart(String helpUrl)(Code) | | Builds the start html of the page, including setting of DOCTYPE and
inserting a header with the content-type.
This overloads the default method of the parent class.
Parameters: helpUrl - the key for the online help to include on the page the start html of the page |
htmlStart | public String htmlStart(String helpUrl, String title)(Code) | | Builds the start html of the page, including setting of DOCTYPE and
inserting a header with the content-type.
Parameters: helpUrl - the key for the online help to include on the page Parameters: title - the title for the page the start html of the page |
htmlStartStyle | public String htmlStartStyle(String title, String stylesheet)(Code) | | Builds the start html of the page, including setting of DOCTYPE,
inserting a header with the content-type and choosing an individual style sheet.
Parameters: title - the title for the page Parameters: stylesheet - the style sheet to include the start html of the page |
includeErrorpage | public void includeErrorpage(CmsWorkplace wp, Throwable t) throws JspException(Code) | | Displays the throwable on the error page and logs the error.
Parameters: wp - the workplace class Parameters: t - the throwable to be displayed on the error page throws: JspException - if the include of the error page jsp fails |
initCmsDialog | public static CmsDialog initCmsDialog(PageContext context, HttpServletRequest req, HttpServletResponse res)(Code) | | Returns an initialized CmsDialog instance that is read from the request attributes.
This method is used by dialog elements.
The dialog elements do not initialize their own workplace class,
but use the initialized instance of the "master" class.
This is required to ensure that parameters of the "master" class
can properly be kept on the dialog elements.
To prevent null pointer exceptions, an empty dialog is returned if
nothing is found in the request attributes.
Parameters: context - the JSP page context Parameters: req - the JSP request Parameters: res - the JSP response an initialized CmsDialog instance that is read from the request attributes |
isPopup | public boolean isPopup()(Code) | | Returns the "isPopup" flag.
the "isPopup" flag |
isPreEditor | public boolean isPreEditor()(Code) | | Returns if the dialog is called in direct edit mode before the editor is opened.
true if the dialog is called in direct edit mode before the editor is opened |
pageHtml | public String pageHtml(int segment, String helpUrl)(Code) | | Builds the start html of the page, including setting of DOCTYPE and
inserting a header with the content-type.
This overloads the default method of the parent class.
Parameters: segment - the HTML segment (START / END) Parameters: helpUrl - the url for the online help to include on the page the start html of the page |
pageHtml | public String pageHtml(int segment, String helpUrl, String title)(Code) | | Builds the start html of the page, including setting of DOCTYPE and
inserting a header with the content-type.
This overloads the default method of the parent class.
Parameters: segment - the HTML segment (START / END) Parameters: helpUrl - the url for the online help to include on the page Parameters: title - the title for the page the start html of the page |
setAction | protected void setAction(int value)(Code) | | Sets the action value.
Parameters: value - the action value |
setParamAction | public void setParamAction(String value)(Code) | | Sets the value of the action parameter.
Parameters: value - the value to set |
setParamCloseLink | public void setParamCloseLink(String value)(Code) | | Sets the value of the closelink parameter.
Parameters: value - the value to set |
setParamDialogtype | public void setParamDialogtype(String value)(Code) | | Sets the value of the dialogtype parameter.
Parameters: value - the value to set |
setParamFramename | public void setParamFramename(String value)(Code) | | Sets the value of the frame name parameter.
Parameters: value - the value to set |
setParamIsPopup | public void setParamIsPopup(String value)(Code) | | Sets the ispopup parameter.
Parameters: value - the ispopup parameter value |
setParamMessage | public void setParamMessage(String value)(Code) | | Sets the value of the message parameter.
Parameters: value - the value to set |
setParamOriginalParams | public void setParamOriginalParams(String paramOriginalParams)(Code) | | Sets the value of the originalparams parameter.
Parameters: paramOriginalParams - the value of the originalparams parameter |
setParamPreActionDone | public void setParamPreActionDone(String paramPreActionDone)(Code) | | Sets the value of the preactiondone parameter.
Parameters: paramPreActionDone - the value of the preactiondone parameter |
setParamRedirect | public void setParamRedirect(String redirect)(Code) | | Sets the value of the redirect flag parameter.
Parameters: redirect - the value of the redirect flag parameter |
setParamResource | public void setParamResource(String value)(Code) | | Sets the value of the file parameter.
Parameters: value - the value to set |
setParamTitle | public void setParamTitle(String value)(Code) | | Sets the value of the title parameter.
Parameters: value - the value to set |
Methods inherited from org.opencms.workplace.CmsWorkplace | protected void addMessages(CmsMessages messages)(Code)(Java Doc) protected void addMessages(String bundleName)(Code)(Java Doc) protected Map allParamValues()(Code)(Java Doc) public String allParamsAsHidden()(Code)(Java Doc) public String allParamsAsRequest()(Code)(Java Doc) public String bodyEnd()(Code)(Java Doc) public String bodyStart(String className)(Code)(Java Doc) public String bodyStart(String className, String parameters)(Code)(Java Doc) public static String buildSelect(String parameters, List options, List values, int selected, boolean useLineFeed)(Code)(Java Doc) public String buildSelect(String parameters, List options, List values, int selected)(Code)(Java Doc) public String button(String href, String target, String image, String label, int type)(Code)(Java Doc) public String button(String href, String target, String image, String label, int type, String imagePath)(Code)(Java Doc) public String buttonBar(int segment)(Code)(Java Doc) public String buttonBar(int segment, String attributes)(Code)(Java Doc) public String buttonBarHorizontalLine()(Code)(Java Doc) public String buttonBarLabel(String label)(Code)(Java Doc) public String buttonBarLabel(String label, String className)(Code)(Java Doc) public String buttonBarLine(int leftPixel, int rightPixel, String className)(Code)(Java Doc) public String buttonBarLineSpacer(int pixel)(Code)(Java Doc) public String buttonBarSeparator(int leftPixel, int rightPixel)(Code)(Java Doc) public String buttonBarSpacer(int width)(Code)(Java Doc) public String buttonBarStartTab(int leftPixel, int rightPixel)(Code)(Java Doc) public void checkLock(String resource) throws CmsException(Code)(Java Doc) public void checkLock(String resource, CmsLockType type) throws CmsException(Code)(Java Doc) protected void checkRole() throws CmsRoleViolationException(Code)(Java Doc) protected String decodeParamValue(String paramName, String paramValue)(Code)(Java Doc) public void fillParamValues(CmsWorkplaceSettings settings, HttpServletRequest request)(Code)(Java Doc) public void fillParamValues(HttpServletRequest request)(Code)(Java Doc) public String getBroadcastMessageString()(Code)(Java Doc) public CmsObject getCms()(Code)(Java Doc) public String getEncoding()(Code)(Java Doc) public String getExplorerFileListFullUri()(Code)(Java Doc) public String getFrameSource(String frameName, String uri)(Code)(Java Doc) public CmsJspActionElement getJsp()(Code)(Java Doc) public Locale getLocale()(Code)(Java Doc) public CmsMacroResolver getMacroResolver()(Code)(Java Doc) public CmsMessages getMessages()(Code)(Java Doc) public List getMultiPartFileItems()(Code)(Java Doc) protected Map getParameterMap()(Code)(Java Doc) public static String getResourceUri(String resourceName)(Code)(Java Doc) public String getResourceUri()(Code)(Java Doc) public HttpSession getSession()(Code)(Java Doc) public CmsWorkplaceSettings getSettings()(Code)(Java Doc) public static String getSkinUri()(Code)(Java Doc) public static String getStyleUri(CmsJspActionElement jsp)(Code)(Java Doc) public static String getStyleUri(CmsJspActionElement jsp, String filename)(Code)(Java Doc) public String getStyleUri(String filename)(Code)(Java Doc) public static String getTemporaryFileName(String resourceName)(Code)(Java Doc) public String htmlEnd()(Code)(Java Doc) public String htmlStart(String title)(Code)(Java Doc) protected void initMessages()(Code)(Java Doc) public boolean initSettings(CmsWorkplaceSettings settings, HttpServletRequest request)(Code)(Java Doc) protected void initTimeWarp(CmsUserSettings settings, HttpSession session)(Code)(Java Doc) public static CmsWorkplaceSettings initUserSettings(CmsObject cms, CmsWorkplaceSettings settings, boolean update)(Code)(Java Doc) protected void initWorkplaceMembers(CmsJspActionElement jsp)(Code)(Java Doc) abstract protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, HttpServletRequest request)(Code)(Java Doc) public static synchronized CmsWorkplaceSettings initWorkplaceSettings(CmsObject cms, CmsWorkplaceSettings settings, boolean update)(Code)(Java Doc) public boolean isForwarded()(Code)(Java Doc) public boolean isHelpEnabled()(Code)(Java Doc) public boolean isSubElement()(Code)(Java Doc) public static boolean isTemporaryFile(CmsResource resource)(Code)(Java Doc) public static boolean isTemporaryFileName(String resourceName)(Code)(Java Doc) public String key(String keyName)(Code)(Java Doc) public String key(String keyName, Object[] params)(Code)(Java Doc) public String keyDefault(String keyName, String defaultValue)(Code)(Java Doc) public String nullToEmpty(String value)(Code)(Java Doc) public String pageBody(int segment, String className, String parameters)(Code)(Java Doc) public String pageHtml(int segment, String title)(Code)(Java Doc) public String pageHtmlStyle(int segment, String title, String stylesheet)(Code)(Java Doc) protected Map paramValues()(Code)(Java Doc) public String paramsAsHidden()(Code)(Java Doc) public String paramsAsHidden(Collection excludes)(Code)(Java Doc) public Map paramsAsParameterMap()(Code)(Java Doc) public String paramsAsRequest()(Code)(Java Doc) public String resolveMacros(String input)(Code)(Java Doc) public void sendCmsRedirect(String location) throws IOException(Code)(Java Doc) public void sendForward(String location, Map params) throws IOException, ServletException(Code)(Java Doc) public void setForwarded(boolean forwarded)(Code)(Java Doc) public String shortKey(String keyName)(Code)(Java Doc) static void storeSettings(HttpSession session, CmsWorkplaceSettings settings)(Code)(Java Doc) protected void switchToCurrentProject() throws CmsException(Code)(Java Doc) protected CmsUUID switchToTempProject() throws CmsException(Code)(Java Doc)
|
|
|