Package com.smartgwt.client.tools
Class StyleSetting
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.tools.StyleSetting
- All Implemented Interfaces:
HasHandlers
An ordinary JavaScript object with properties that configure a setting for use in a
CSS-editor
.-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCan this setting be edited asymmetrically? For example, a border-setting can be applied to all sides at once, or asymmetrically to each side, as four separate border-settings.The type of editor to use for this setting.FormItem properties to apply to editors for this setting.Name of thegroup
this setting will appear in for editing.getName()
Unique name that identifies this setting.static StyleSetting
getOrCreateRef
(JavaScriptObject jsObj) The CSS attribute name used when generating CSS from this item.If this setting allowsasymmetric editing
, should it be edited in that mode by default?getTitle()
Title for this setting when applied to a FormItem.setAllowAsymmetry
(Boolean allowAsymmetry) Can this setting be edited asymmetrically? For example, a border-setting can be applied to all sides at once, or asymmetrically to each side, as four separate border-settings.setDefaultEditorType
(FormItemType defaultEditorType) The type of editor to use for this setting.setEditorProperties
(FormItem editorProperties) FormItem properties to apply to editors for this setting.setGroupName
(String groupName) Name of thegroup
this setting will appear in for editing.Unique name that identifies this setting.setSettingName
(String settingName) The CSS attribute name used when generating CSS from this item.setShowAsymmetry
(Boolean showAsymmetry) If this setting allowsasymmetric editing
, should it be edited in that mode by default?Title for this setting when applied to a FormItem.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
-
StyleSetting
public StyleSetting() -
StyleSetting
-
-
Method Details
-
getOrCreateRef
-
setAllowAsymmetry
Can this setting be edited asymmetrically? For example, a border-setting can be applied to all sides at once, or asymmetrically to each side, as four separate border-settings.- Parameters:
allowAsymmetry
- New allowAsymmetry value. Default value is null- Returns:
StyleSetting
instance, for chaining setter calls
-
getAllowAsymmetry
Can this setting be edited asymmetrically? For example, a border-setting can be applied to all sides at once, or asymmetrically to each side, as four separate border-settings.- Returns:
- Current allowAsymmetry value. Default value is null
-
setDefaultEditorType
The type of editor to use for this setting.- Parameters:
defaultEditorType
- New defaultEditorType value. Default value is null- Returns:
StyleSetting
instance, for chaining setter calls
-
getDefaultEditorType
The type of editor to use for this setting.- Returns:
- Current defaultEditorType value. Default value is null
-
setEditorProperties
FormItem properties to apply to editors for this setting.- Parameters:
editorProperties
- New editorProperties value. Default value is null- Returns:
StyleSetting
instance, for chaining setter calls
-
getEditorProperties
FormItem properties to apply to editors for this setting.- Returns:
- Current editorProperties value. Default value is null
-
setGroupName
Name of thegroup
this setting will appear in for editing.- Parameters:
groupName
- New groupName value. Default value is null- Returns:
StyleSetting
instance, for chaining setter calls
-
getGroupName
Name of thegroup
this setting will appear in for editing.- Returns:
- Current groupName value. Default value is null
-
setName
Unique name that identifies this setting.- Parameters:
name
- New name value. Default value is null- Returns:
StyleSetting
instance, for chaining setter calls
-
getName
Unique name that identifies this setting.- Returns:
- Current name value. Default value is null
-
setSettingName
The CSS attribute name used when generating CSS from this item. Rarely used to override the default behavior of using thename
.- Parameters:
settingName
- New settingName value. Default value is null- Returns:
StyleSetting
instance, for chaining setter calls
-
getSettingName
The CSS attribute name used when generating CSS from this item. Rarely used to override the default behavior of using thename
.- Returns:
- Current settingName value. Default value is null
-
setShowAsymmetry
If this setting allowsasymmetric editing
, should it be edited in that mode by default?- Parameters:
showAsymmetry
- New showAsymmetry value. Default value is null- Returns:
StyleSetting
instance, for chaining setter calls
-
getShowAsymmetry
If this setting allowsasymmetric editing
, should it be edited in that mode by default?- Returns:
- Current showAsymmetry value. Default value is null
-
setTitle
Title for this setting when applied to a FormItem.- Parameters:
title
- New title value. Default value is null- Returns:
StyleSetting
instance, for chaining setter calls
-
getTitle
Title for this setting when applied to a FormItem.- Returns:
- Current title value. Default value is null
-