public class A_CmsWidget.CmsDummyWidgetDialog extends java.lang.Object implements I_CmsWidgetDialog
| 构造器和说明 |
|---|
A_CmsWidget.CmsDummyWidgetDialog(java.util.Locale locale,
CmsMessages message)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
button(java.lang.String href,
java.lang.String target,
java.lang.String image,
java.lang.String label,
int type)
Generates a button for the widget dialog.
|
java.lang.String |
buttonBar(int segment)
Returns the html for a button bar.
|
java.lang.String |
buttonBarHorizontalLine()
Generates a horizontal button bar separator line with maximum width.
|
java.lang.String |
buttonBarSeparator(int leftPixel,
int rightPixel)
Generates a button bar separator.
|
java.lang.String |
buttonBarSpacer(int width)
Returns the html for an invisible spacer between button bar contents like buttons, labels, etc.
|
java.lang.String |
buttonBarStartTab(int leftPixel,
int rightPixel)
Generates a button bar starter tab.
|
java.lang.String |
dialogHorizontalSpacer(int width)
Builds an invisible horiziontal spacer with the specified width.
|
int |
getButtonStyle()
Returns the style setting to use when generating buttons for this widget dialog.
|
java.util.Set<java.lang.String> |
getHelpMessageIds()
Returns a set of help messages ids that are already included on the widget dialog.
|
java.util.Locale |
getLocale()
Returns the current users locale setting.
|
CmsMessages |
getMessages()
Returns a messages object used to render localized keys for the widget dialog.
|
CmsResource |
getResource()
Gets the resource being edited.
|
java.lang.String |
getUserAgent()
Returns the "user-agent" of the current request, or
null in case no
request is available. |
void |
setResource(CmsResource resource)
Sets the resource being edited.
|
boolean |
useNewStyle()
Tests if we are working with the new administration dialog style.
|
public A_CmsWidget.CmsDummyWidgetDialog(java.util.Locale locale,
CmsMessages message)
locale - the locale of the dialogmessage - the message of the dialogpublic java.lang.String button(java.lang.String href,
java.lang.String target,
java.lang.String image,
java.lang.String label,
int type)
I_CmsWidgetDialogbutton 在接口中 I_CmsWidgetDialoghref - 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 onlyI_CmsWidgetDialog.button(java.lang.String, java.lang.String, java.lang.String, java.lang.String, int)public java.lang.String buttonBar(int segment)
I_CmsWidgetDialogbuttonBar 在接口中 I_CmsWidgetDialogsegment - the HTML segment (START / END)I_CmsWidgetDialog.buttonBar(int)public java.lang.String buttonBarHorizontalLine()
I_CmsWidgetDialogbuttonBarHorizontalLine 在接口中 I_CmsWidgetDialogI_CmsWidgetDialog.buttonBarHorizontalLine()public java.lang.String buttonBarSeparator(int leftPixel,
int rightPixel)
I_CmsWidgetDialogbuttonBarSeparator 在接口中 I_CmsWidgetDialogleftPixel - the amount of pixel left to the separatorrightPixel - the amount of pixel right to the separatorI_CmsWidgetDialog.buttonBarSeparator(int, int)public java.lang.String buttonBarSpacer(int width)
I_CmsWidgetDialogbuttonBarSpacer 在接口中 I_CmsWidgetDialogwidth - the width of the invisible spacerI_CmsWidgetDialog.buttonBarSpacer(int)public java.lang.String buttonBarStartTab(int leftPixel,
int rightPixel)
I_CmsWidgetDialogbuttonBarStartTab 在接口中 I_CmsWidgetDialogleftPixel - the amount of pixel left to the starterrightPixel - the amount of pixel right to the starterI_CmsWidgetDialog.buttonBarStartTab(int, int)public java.lang.String dialogHorizontalSpacer(int width)
I_CmsWidgetDialogdialogHorizontalSpacer 在接口中 I_CmsWidgetDialogwidth - the width of the spacer in pixelsI_CmsWidgetDialog.dialogHorizontalSpacer(int)public int getButtonStyle()
I_CmsWidgetDialoggetButtonStyle 在接口中 I_CmsWidgetDialogI_CmsWidgetDialog.getButtonStyle()public java.util.Set<java.lang.String> getHelpMessageIds()
I_CmsWidgetDialog
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.
getHelpMessageIds 在接口中 I_CmsWidgetDialogI_CmsWidgetDialog.getHelpMessageIds()public java.util.Locale getLocale()
I_CmsWidgetDialoggetLocale 在接口中 I_CmsWidgetDialogI_CmsWidgetDialog.getLocale()public CmsMessages getMessages()
I_CmsWidgetDialoggetMessages 在接口中 I_CmsWidgetDialogI_CmsWidgetDialog.getMessages()public CmsResource getResource()
public java.lang.String getUserAgent()
I_CmsWidgetDialognull in case no
request is available.getUserAgent 在接口中 I_CmsWidgetDialogI_CmsWidgetDialog.getUserAgent()public void setResource(CmsResource resource)
resource - the resource being editedpublic boolean useNewStyle()
I_CmsWidgetDialogThis param is not intended for external use.
useNewStyle 在接口中 I_CmsWidgetDialogtrue if using the new styleI_CmsWidgetDialog.useNewStyle()