DescribeLayoutItem Class
Represents an individual item in a QuickAction.DescribeLayoutRow.
For most fields on a layout, there is only one component per layout item. However, in a display-only view, the QuickAction.DescribeLayoutItem might be a composite of the individual fields (for example, an address can consist of street, city, state, country, and postal code data). On the corresponding edit view, each component of the address field would be split up into separate QuickAction.DescribeLayoutItems.
The following are methods for DescribeLayoutItem. All are instance methods.
-
Returns the label text for this item.
-
Returns a list of
QuickAction.DescribeLayoutComponentsfor this item. -
Indicates whether this item can be edited for new (
true) or not (false). -
Indicates whether this item can be edited for update(
true) or not (false). -
Indicates whether this item is a placeholder (
true) or not (false). Iftrue, then this item is blank. -
Indicates whether this item is required (
true) or not (false).
Returns the label text for this item.
public String getLabel()
Type: String
Returns a list of QuickAction.DescribeLayoutComponents for this item.
public List<QuickAction.DescribeLayoutComponent> getLayoutComponents()
Type: List<QuickAction.DescribeLayoutComponent>
Indicates whether this item can be edited for new (true) or not (false).
public Boolean isEditableForNew()
Type: Boolean
Indicates whether this item can be edited for update(true) or not (false).
public Boolean isEditableForUpdate()
Type: Boolean
Indicates whether this item is a placeholder (true) or not (false). If true, then this item is blank.
public Boolean isPlaceholder()
Type: Boolean
Indicates whether this item is required (true) or not (false).
public Boolean isRequired()
Type: Boolean
This is useful if, for example, you want to render required fields in a contrasting color.