Class sap.ui.commons.ToolbarSeparatorModule: sap/ui/commons/ToolbarSeparator

extends Element
implements ToolbarItem

A small vertical line that is generally added to the tool bar between the items to visually separate them.

Deprecated API:Since version 1.38. Instead, use the sap.m.Toolbar control.

Constructor Summary
new sap.ui.commons.ToolbarSeparator(sId?, mSettings?)Constructor for a new ToolbarSeparator.
Method Summary
sap.ui.commons.ToolbarSeparator.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.commons.ToolbarSeparator with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.commons.ToolbarSeparator.getMetadata()Returns a metadata object for class sap.ui.commons.ToolbarSeparator.
getDesign()Gets current value of property design.
getDisplayVisualSeparator()Gets current value of property displayVisualSeparator.
setDesign(sDesign)Sets a new value for property design.
setDisplayVisualSeparator(bDisplayVisualSeparator)Sets a new value for property displayVisualSeparator.
Constructor Detail
new sap.ui.commons.ToolbarSeparator(sId?, mSettings?)
Constructor for a new ToolbarSeparator.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.

The supported settings are:

In addition, all settings applicable to the base type sap.ui.core.Element can be used as well.

Parameters:
{string}sId? id for the new control, generated automatically if no id is given
{object}mSettings? initial settings for the new control
Deprecated:
Since version 1.38. Instead, use the sap.m.Toolbar control.
Method Detail
sap.ui.commons.ToolbarSeparator.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.commons.ToolbarSeparator 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.Element.extend.

Parameters:
{string}sClassName Name of the class being created
{object}oClassInfo? Object literal with information about the class
{function}FNMetaImpl? Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata
Returns:
{function} Created class / constructor function
sap.ui.commons.ToolbarSeparator.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.commons.ToolbarSeparator.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
Gets current value of property design.

Design of the Separator.

Returns:
{sap.ui.commons.ToolbarSeparatorDesign} Value of property design
getDisplayVisualSeparator(): boolean
Gets current value of property displayVisualSeparator.

When set to false, there is no visual indication of separation by a vertical line but by a wider space.

Default value is true.

Returns:
{boolean} Value of property displayVisualSeparator
setDesign(sDesign): sap.ui.commons.ToolbarSeparator
Sets a new value for property design.

Design of the Separator.

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{sap.ui.commons.ToolbarSeparatorDesign}sDesign New value for property design
Returns:
{sap.ui.commons.ToolbarSeparator} Reference to this in order to allow method chaining
setDisplayVisualSeparator(bDisplayVisualSeparator): sap.ui.commons.ToolbarSeparator
Sets a new value for property displayVisualSeparator.

When set to false, there is no visual indication of separation by a vertical line but by a wider space.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is true.

Parameters:
{boolean}bDisplayVisualSeparator New value for property displayVisualSeparator
Returns:
{sap.ui.commons.ToolbarSeparator} Reference to this in order to allow method chaining