public class CmsPreviewInfo
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable
限定符 | 构造器和说明 |
---|---|
protected |
CmsPreviewInfo()
Constructor.
|
|
CmsPreviewInfo(java.lang.String content,
java.lang.String url,
boolean newWindowRequired,
java.lang.String title,
java.lang.String sitePath,
java.lang.String locale)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
int |
getHeight()
Returns the required height.
|
java.lang.String |
getLocale()
Returns the locale.
|
java.util.Map<java.lang.String,java.lang.String> |
getLocales()
Returns the locales.
|
java.lang.String |
getPreviewContent()
Returns the preview content.
|
java.lang.String |
getPreviewUrl()
Returns the preview URL.
|
java.lang.String |
getSitePath()
Returns the site path.
|
java.lang.String |
getTitle()
Returns the title.
|
int |
getWidth()
Returns the required width.
|
boolean |
hasAdditionalLocales()
Returns if the given preview content has additional locales.
|
boolean |
hasDimensions()
Returns if the preview requires specific dimensions.
|
boolean |
hasPreviewContent()
Returns if preview HTML content is available to display directly.
|
boolean |
hasPreviewUrl()
Returns if there a URL available to call for the preview.
|
boolean |
isNewWindowRequired()
Returns if it is required to open the preview in a new window.
|
void |
setHeight(int height)
Sets the required height.
|
void |
setLocales(java.util.LinkedHashMap<java.lang.String,java.lang.String> locales)
Sets the locales.
|
void |
setWidth(int width)
Sets the required width.
|
public CmsPreviewInfo(java.lang.String content, java.lang.String url, boolean newWindowRequired, java.lang.String title, java.lang.String sitePath, java.lang.String locale)
content
- the preview contenturl
- the preview URLnewWindowRequired
- flag indicating that the preview should be opened in a new windowtitle
- the titlesitePath
- the site pathlocale
- the preview localeprotected CmsPreviewInfo()
public int getHeight()
public java.lang.String getLocale()
public java.util.Map<java.lang.String,java.lang.String> getLocales()
public java.lang.String getPreviewContent()
public java.lang.String getPreviewUrl()
public java.lang.String getSitePath()
public java.lang.String getTitle()
public int getWidth()
public boolean hasAdditionalLocales()
true
if the given preview content has additional localespublic boolean hasDimensions()
true
if the dialog requires dimensionspublic boolean hasPreviewContent()
public boolean hasPreviewUrl()
public boolean isNewWindowRequired()
true
if it is required to open the preview in a new windowpublic void setHeight(int height)
height
- the required height to setpublic void setLocales(java.util.LinkedHashMap<java.lang.String,java.lang.String> locales)
locales
- the locales to setpublic void setWidth(int width)
width
- the required width to set