Divides the screen in visual areas.
Constructor for a new HorizontalDivider.
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.commons.HorizontalDivider(sId?, mSettings?)
Param | Type | Default Value | Description |
---|---|---|---|
sId? | string | id for the new control, generated automatically if no id is given |
|
mSettings? | object | initial settings for the new control |
Name | Type | Default Value | Description |
---|---|---|---|
height | sap.ui.commons.HorizontalDividerHeight | Medium | Defines the height of the divider. Visibility: public |
type | sap.ui.commons.HorizontalDividerType | Area | Defines the type of the divider. Visibility: public |
width | sap.ui.core.CSSSize | 100% | Defines the width of the divider. Visibility: public |
Method | Description |
---|---|
sap.ui.commons.HorizontalDivider.extend |
Creates a new subclass of class sap.ui.commons.HorizontalDivider with name
|
getHeight |
Gets current value of property height. Defines the height of the divider. Default value is |
sap.ui.commons.HorizontalDivider.getMetadata |
Returns a metadata object for class sap.ui.commons.HorizontalDivider. |
getType |
Gets current value of property type. Defines the type of the divider. Default value is |
getWidth |
Gets current value of property width. Defines the width of the divider. Default value is |
setHeight |
Sets a new value for property height. Defines the height of the divider. When called with a value of Default value is |
setType |
Sets a new value for property type. Defines the type of the divider. When called with a value of Default value is |
setWidth |
Sets a new value for property width. Defines the width of the divider. When called with a value of Default value is |
Creates a new subclass of class sap.ui.commons.HorizontalDivider 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 |
Gets current value of property height.
Defines the height of the divider.
Default value is Medium
.
Returns a metadata object for class sap.ui.commons.HorizontalDivider.
Gets current value of property width.
Defines the width of the divider.
Default value is '100%'
.
Sets a new value for property height.
Defines the height of the divider.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Medium
.
Param | Type | DefaultValue | Description |
---|---|---|---|
sHeight | sap.ui.commons.HorizontalDividerHeight | Medium |
New value for property |
Sets a new value for property type.
Defines the type of the divider.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Area
.
Param | Type | DefaultValue | Description |
---|---|---|---|
sType | sap.ui.commons.HorizontalDividerType | Area |
New value for property |
Sets a new value for property width.
Defines the width of the divider.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is '100%'
.
Param | Type | DefaultValue | Description |
---|---|---|---|
sWidth | sap.ui.core.CSSSize | '100%' |
New value for property |