public static class EditorResourceStatus.Builder
extends java.lang.Object
EditorResourceStatus
instances.Constructor and Description |
---|
Builder(java.lang.String type,
java.lang.String title,
java.lang.String message)
Creates a new
Builder . |
Modifier and Type | Method and Description |
---|---|
EditorResourceStatus.Builder |
addAction(java.lang.String id,
java.lang.String label)
Associates an action with this status.
|
EditorResourceStatus.Builder |
addData(java.lang.String key,
java.lang.Object value)
Associates additional data with this status.
|
EditorResourceStatus |
build()
Builds and returns the
EditorResourceStatus instance. |
EditorResourceStatus.Builder |
setIcon(java.lang.String icon)
Sets the status icon.
|
EditorResourceStatus.Builder |
setPriority(java.lang.Integer priority)
Sets the status priority.
|
EditorResourceStatus.Builder |
setVariant(EditorResourceStatus.Variant variant)
Sets the status variant.
|
public Builder(java.lang.String type, java.lang.String title, java.lang.String message)
Builder
.type
- the status type (see EditorResourceStatus.getType()
)title
- the status title (see EditorResourceStatus.getTitle()
)message
- the status message (see EditorResourceStatus.getMessage()
)public EditorResourceStatus.Builder setPriority(java.lang.Integer priority)
priority
- the status priority or null
to unset itBuilder
EditorResourceStatus.getPriority()
public EditorResourceStatus.Builder setVariant(EditorResourceStatus.Variant variant)
variant
- the status variant or null
to unset itBuilder
EditorResourceStatus.getVariant()
,
EditorResourceStatus.Variant
public EditorResourceStatus.Builder setIcon(java.lang.String icon)
icon
- the status icon or null
to unset itBuilder
EditorResourceStatus.getIcon()
public EditorResourceStatus.Builder addData(java.lang.String key, java.lang.Object value)
ResourceStatus
).key
- the keyvalue
- the valuepublic EditorResourceStatus.Builder addAction(java.lang.String id, java.lang.String label)
Associates an action with this status.
id
- the action id (see EditorResourceStatus.Action.getId()
)label
- the action label (see EditorResourceStatus.Action.getLabel()
)public EditorResourceStatus build()
EditorResourceStatus
instance.EditorResourceStatus
instance"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"