Package org.opencms.widgets
Class A_CmsWidget.CmsDummyWidgetDialog
java.lang.Object
org.opencms.widgets.A_CmsWidget.CmsDummyWidgetDialog
- All Implemented Interfaces:
I_CmsWidgetDialog
- Enclosing class:
- A_CmsWidget
Inner class to generate the I_CmsWidgetDialog.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGenerates a button for the widget dialog.buttonBar
(int segment) Returns the html for a button bar.Generates a horizontal button bar separator line with maximum width.buttonBarSeparator
(int leftPixel, int rightPixel) Generates a button bar separator.buttonBarSpacer
(int width) Returns the html for an invisible spacer between button bar contents like buttons, labels, etc.buttonBarStartTab
(int leftPixel, int rightPixel) Generates a button bar starter tab.dialogHorizontalSpacer
(int width) Builds an invisible horiziontal spacer with the specified width.int
Returns the style setting to use when generating buttons for this widget dialog.Returns a set of help messages ids that are already included on the widget dialog.Returns the current users locale setting.Returns a messages object used to render localized keys for the widget dialog.Gets the resource being edited.Returns the "user-agent" of the current request, ornull
in case no request is available.void
setResource
(CmsResource resource) Sets the resource being edited.boolean
Tests if we are working with the new administration dialog style.
-
Constructor Details
-
CmsDummyWidgetDialog
Constructor.- Parameters:
locale
- the locale of the dialogmessage
- the message of the dialog
-
-
Method Details
-
button
Description copied from interface:I_CmsWidgetDialog
Generates a button for the widget dialog.- Specified by:
button
in interfaceI_CmsWidgetDialog
- Parameters:
href
- the href link for the button, if none is given the button will be disabledtarget
- the href link target for the button, if none is given the target will be same windowimage
- the image name for the button, skin path will be automattically added as prefixlabel
- the label for the text of the buttontype
- 0: image only (default), 1: image and text, 2: text only- Returns:
- a button for the OpenCms workplace
- See Also:
-
buttonBar
Description copied from interface:I_CmsWidgetDialog
Returns the html for a button bar.- Specified by:
buttonBar
in interfaceI_CmsWidgetDialog
- Parameters:
segment
- the HTML segment (START / END)- Returns:
- a button bar html start / end segment
- See Also:
-
buttonBarHorizontalLine
Description copied from interface:I_CmsWidgetDialog
Generates a horizontal button bar separator line with maximum width.- Specified by:
buttonBarHorizontalLine
in interfaceI_CmsWidgetDialog
- Returns:
- a horizontal button bar separator line
- See Also:
-
buttonBarSeparator
Description copied from interface:I_CmsWidgetDialog
Generates a button bar separator.- Specified by:
buttonBarSeparator
in interfaceI_CmsWidgetDialog
- Parameters:
leftPixel
- the amount of pixel left to the separatorrightPixel
- the amount of pixel right to the separator- Returns:
- a button bar separator
- See Also:
-
buttonBarSpacer
Description copied from interface:I_CmsWidgetDialog
Returns the html for an invisible spacer between button bar contents like buttons, labels, etc.- Specified by:
buttonBarSpacer
in interfaceI_CmsWidgetDialog
- Parameters:
width
- the width of the invisible spacer- Returns:
- the html for the invisible spacer
- See Also:
-
buttonBarStartTab
Description copied from interface:I_CmsWidgetDialog
Generates a button bar starter tab.- Specified by:
buttonBarStartTab
in interfaceI_CmsWidgetDialog
- Parameters:
leftPixel
- the amount of pixel left to the starterrightPixel
- the amount of pixel right to the starter- Returns:
- a button bar starter tab
- See Also:
-
dialogHorizontalSpacer
Description copied from interface:I_CmsWidgetDialog
Builds an invisible horiziontal spacer with the specified width.- Specified by:
dialogHorizontalSpacer
in interfaceI_CmsWidgetDialog
- Parameters:
width
- the width of the spacer in pixels- Returns:
- an invisible horiziontal spacer with the specified width
- See Also:
-
getButtonStyle
Description copied from interface:I_CmsWidgetDialog
Returns the style setting to use when generating buttons for this widget dialog.- Specified by:
getButtonStyle
in interfaceI_CmsWidgetDialog
- Returns:
- the style setting to use when generating buttons for this widget dialog
- See Also:
-
getHelpMessageIds
Description copied from interface:I_CmsWidgetDialog
Returns a set of help messages ids that are already included on the widget dialog.This is used to prevent the occurence of multiple html
div
id's with the same value when generating the help texts. For valid html, each id can be used only once.- Specified by:
getHelpMessageIds
in interfaceI_CmsWidgetDialog
- Returns:
- a set of help messages ids that are already included on the widget dialog
- See Also:
-
getLocale
Description copied from interface:I_CmsWidgetDialog
Returns the current users locale setting.- Specified by:
getLocale
in interfaceI_CmsWidgetDialog
- Returns:
- the current users locale setting
- See Also:
-
getMessages
Description copied from interface:I_CmsWidgetDialog
Returns a messages object used to render localized keys for the widget dialog.- Specified by:
getMessages
in interfaceI_CmsWidgetDialog
- Returns:
- a messages object used to render localized keys for the widget dialog
- See Also:
-
getResource
Gets the resource being edited.- Returns:
- the resource being edited
-
getUserAgent
Description copied from interface:I_CmsWidgetDialog
Returns the "user-agent" of the current request, ornull
in case no request is available.- Specified by:
getUserAgent
in interfaceI_CmsWidgetDialog
- Returns:
- the "user-agent" of the current request
- See Also:
-
setResource
Sets the resource being edited.- Parameters:
resource
- the resource being edited
-
useNewStyle
Description copied from interface:I_CmsWidgetDialog
Tests if we are working with the new administration dialog style.This param is not intended for external use.
- Specified by:
useNewStyle
in interfaceI_CmsWidgetDialog
- Returns:
true
if using the new style- See Also:
-