Class sap.ui.vk.ToolbarModule: sap/ui/vk/Toolbar

extends Control

Provides buttons to hide or show certain sap.ui.vk controls.

Experimental API:Since 1.32.0 This class is experimental and might be modified or removed in future versions.

Constructor Summary
new sap.ui.vk.Toolbar(sId?, mSettings?)Constructor for a new Toolbar.
Events borrowed from class sap.ui.core.Control
Method Summary
sap.ui.vk.Toolbar.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.vk.Toolbar with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.vk.Toolbar.getMetadata()Returns a metadata object for class sap.ui.vk.Toolbar.
getTitle()Gets current value of property title.
getViewer()ID of the element which is the current target of the association viewer, or null.
setTitle(sTitle)Sets a new value for property title.
setViewer(oViewer)Sets the associated viewer.
Constructor Detail
new sap.ui.vk.Toolbar(sId?, mSettings?)
Constructor for a new Toolbar.

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:

  • Properties
    • title : string (default: )
  • Aggregations

    In addition, all settings applicable to the base type sap.ui.core.Control 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
    Method Detail
    sap.ui.vk.Toolbar.extend(sClassName, oClassInfo?, FNMetaImpl?): function
    Creates a new subclass of class sap.ui.vk.Toolbar 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.

    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.vk.Toolbar.getMetadata(): sap.ui.base.Metadata
    Returns a metadata object for class sap.ui.vk.Toolbar.
    Returns:
    {sap.ui.base.Metadata} Metadata object describing this class
    getTitle(): string
    Gets current value of property title.

    Used to set the title of the Toolbar

    Default value is .

    Returns:
    {string} Value of property title
    getViewer(): sap.ui.vk.Viewer
    ID of the element which is the current target of the association viewer, or null.
    Returns:
    {sap.ui.vk.Viewer}
    setTitle(sTitle): sap.ui.vk.Toolbar
    Sets a new value for property title.

    Used to set the title of the Toolbar

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

    Default value is .

    Parameters:
    {string}sTitle New value for property title
    Returns:
    {sap.ui.vk.Toolbar} Reference to this in order to allow method chaining
    setViewer(oViewer): sap.ui.vk.Toolbar
    Sets the associated viewer.
    Parameters:
    {sap.ui.vk.Viewer}oViewer Id of an element which becomes the new target of this viewer association; alternatively, an element instance may be given
    Returns:
    {sap.ui.vk.Toolbar} Reference to this in order to allow method chaining