DescribeTabResult Class

Contains tab metadata information for a tab in a standard or custom app available in the Salesforce user interface.

Schema

The getTabs method of the Schema.DescribeTabSetResult returns a list of Schema.DescribeTabResult objects that describe the tabs of one app.

The methods in the Schema.DescribeTabResult class can be called using their property counterparts. For each method starting with get, you can omit the get prefix and the ending parentheses () to call the property counterpart. For example, tabResultObj.label is equivalent to tabResultObj.getLabel(). Similarly, for each method starting with is, omit the is prefix and the ending parentheses (). For example, tabResultObj.isCustom is equivalent to tabResultObj.custom.

The following are methods for DescribeTabResult. All are instance methods.

  • getColors()

    Returns a list of color metadata information for all colors associated with this tab. Each color is associated with a theme and context.

  • getIconUrl()

    Returns the URL for the main 32 x 32-pixel icon for a tab. This icon corresponds to the current theme (theme3) and appears next to the heading at the top of most pages.

  • getIcons()

    Returns a list of icon metadata information for all icons associated with this tab. Each icon is associated with a theme and context.

  • getLabel()

    Returns the display label of this tab.

  • getMiniIconUrl()

    Returns the URL for the 16 x 16-pixel icon that represents a tab. This icon corresponds to the current theme (theme3) and appears in related lists and other locations.

  • getSobjectName()

    Returns the name of the sObject that is primarily displayed on this tab (for tabs that display a particular SObject).

  • getUrl()

    Returns a fully qualified URL for viewing this tab.

  • isCustom()

    Returns true if this is a custom tab, or false if this is a standard tab.

Returns a list of color metadata information for all colors associated with this tab. Each color is associated with a theme and context.

public List<Schema.DescribeColorResult> getColors()

Type: List<Schema.DescribeColorResult>

Returns the URL for the main 32 x 32-pixel icon for a tab. This icon corresponds to the current theme (theme3) and appears next to the heading at the top of most pages.

public String getIconUrl()

Type: String

Returns a list of icon metadata information for all icons associated with this tab. Each icon is associated with a theme and context.

public List<Schema.DescribeIconResult> getIcons()

Type: List<Schema.DescribeIconResult>

Returns the display label of this tab.

public String getLabel()

Type: String

Returns the URL for the 16 x 16-pixel icon that represents a tab. This icon corresponds to the current theme (theme3) and appears in related lists and other locations.

public String getMiniIconUrl()

Type: String

Returns the name of the sObject that is primarily displayed on this tab (for tabs that display a particular SObject).

public String getSobjectName()

Type: String

Returns a fully qualified URL for viewing this tab.

public String getUrl()

Type: String

Returns true if this is a custom tab, or false if this is a standard tab.

public Boolean isCustom()

Type: Boolean