Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.
new sap.ui.integration.editor.fields.viz.ColorSelect()
Name | Type | Default Value | Description |
---|---|---|---|
allowCustomColors | boolean | false | Visibility: public |
background | boolean | true | Visibility: public |
colorEnum | string | sap.m.AvatarColor | Visibility: public |
colorValue | string | empty string | Visibility: public |
editable | boolean | true | Visibility: public |
enumValue | string | empty string | Visibility: public |
Default Aggregation:
Name | Cardinality | Type | Description |
---|---|---|---|
_button | 0..1 | sap.m.Button | |
_colorpalette | 0..1 | sap.m.ColorPalettePopover |
Method | Description |
---|---|
sap.ui.integration.editor.fields.viz.ColorSelect.extend |
Creates a new subclass of class sap.ui.integration.editor.fields.viz.ColorSelect with name
|
getAllowCustomColors |
Gets current value of property allowCustomColors. Default value is |
getBackground |
Gets current value of property background. Default value is |
getColorEnum |
Gets current value of property colorEnum. Default value is |
getColorValue |
Gets current value of property colorValue. Default value is |
getEditable |
Gets current value of property editable. Default value is |
getEnumValue |
Gets current value of property enumValue. Default value is |
sap.ui.integration.editor.fields.viz.ColorSelect.getMetadata |
Returns a metadata object for class sap.ui.integration.editor.fields.viz.ColorSelect. |
setAllowCustomColors |
Sets a new value for property allowCustomColors. When called with a value of Default value is |
setBackground |
Sets a new value for property background. When called with a value of Default value is |
setColorEnum |
Sets a new value for property colorEnum. When called with a value of Default value is |
setColorValue |
Sets a new value for property colorValue. When called with a value of Default value is |
setEditable |
Sets a new value for property editable. When called with a value of Default value is |
setEnumValue |
Sets a new value for property enumValue. When called with a value of Default value is |
Creates a new subclass of class sap.ui.integration.editor.fields.viz.ColorSelect with name sClassName
and enriches it with the information contained in oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.ui.core.Control.extend.
Param | Type | DefaultValue | Description |
---|---|---|---|
sClassName | string |
Name of the class being created |
|
oClassInfo | object |
Object literal with information about the class |
|
FNMetaImpl | function |
Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class |
Returns a metadata object for class sap.ui.integration.editor.fields.viz.ColorSelect.
Sets a new value for property allowCustomColors.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Param | Type | DefaultValue | Description |
---|---|---|---|
bAllowCustomColors | boolean | false |
New value for property |
Sets a new value for property background.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Param | Type | DefaultValue | Description |
---|---|---|---|
bBackground | boolean | true |
New value for property |
Sets a new value for property colorEnum.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is "sap.m.AvatarColor"
.
Param | Type | DefaultValue | Description |
---|---|---|---|
sColorEnum | string | "sap.m.AvatarColor" |
New value for property |
Sets a new value for property colorValue.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is empty string
.
Param | Type | DefaultValue | Description |
---|---|---|---|
sColorValue | string | "" |
New value for property |
Sets a new value for property editable.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Param | Type | DefaultValue | Description |
---|---|---|---|
bEditable | boolean | true |
New value for property |
Sets a new value for property enumValue.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is empty string
.
Param | Type | DefaultValue | Description |
---|---|---|---|
sEnumValue | string | "" |
New value for property |