Package com.smartgwt.client.tools
Class PublishScreenConfig
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.tools.PublishScreenConfig
- All Implemented Interfaces:
HasHandlers
Configuration for
Reify.publishScreen().-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe EditContext whose contents should be published.static PublishScreenConfiggetOrCreateRef(JavaScriptObject jsObj) Name of the Reify project the screen is added to.Name for the screen in Reify storage.Raw screen XML to publish.getSkin()Skin name baked into the published URL.setEditContext(EditContext editContext) The EditContext whose contents should be published.setProjectName(String projectName) Name of the Reify project the screen is added to.setScreenName(String screenName) Name for the screen in Reify storage.setScreenXml(String screenXml) Raw screen XML to publish.Skin name baked into the published URL.Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
PublishScreenConfig
public PublishScreenConfig() -
PublishScreenConfig
-
-
Method Details
-
getOrCreateRef
-
setEditContext
The EditContext whose contents should be published. Mutually exclusive withscreenXml. The EditContext is serialized and wrapped in a DataView root viaReify._ensureDataViewRoot()automatically.- Parameters:
editContext- New editContext value. Default value is null- Returns:
PublishScreenConfiginstance, for chaining setter calls
-
getEditContext
The EditContext whose contents should be published. Mutually exclusive withscreenXml. The EditContext is serialized and wrapped in a DataView root viaReify._ensureDataViewRoot()automatically.- Returns:
- Current editContext value. Default value is null
-
setProjectName
Name of the Reify project the screen is added to. Created if it does not exist.- Parameters:
projectName- New projectName value. Default value is "GeneratedReports"- Returns:
PublishScreenConfiginstance, for chaining setter calls
-
getProjectName
Name of the Reify project the screen is added to. Created if it does not exist.- Returns:
- Current projectName value. Default value is "GeneratedReports"
-
setScreenName
Name for the screen in Reify storage. If omitted, a timestamp-suffixed name is generated automatically (Screen_YYYYMMDD_HHMMSS).- Parameters:
screenName- New screenName value. Default value is null- Returns:
PublishScreenConfiginstance, for chaining setter calls
-
getScreenName
Name for the screen in Reify storage. If omitted, a timestamp-suffixed name is generated automatically (Screen_YYYYMMDD_HHMMSS).- Returns:
- Current screenName value. Default value is null
-
setScreenXml
Raw screen XML to publish. Mutually exclusive witheditContext. Must already have a DataView root.- Parameters:
screenXml- New screenXml value. Default value is null- Returns:
PublishScreenConfiginstance, for chaining setter calls
-
getScreenXml
Raw screen XML to publish. Mutually exclusive witheditContext. Must already have a DataView root.- Returns:
- Current screenXml value. Default value is null
-
setSkin
Skin name baked into the published URL.- Parameters:
skin- New skin value. Default value is null- Returns:
PublishScreenConfiginstance, for chaining setter calls
-
getSkin
Skin name baked into the published URL.- Returns:
- Current skin value. Default value is null
-