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(@Nonnull java.lang.String type, @Nonnull java.lang.String title, @Nonnull 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()
)@Nonnull public EditorResourceStatus.Builder setPriority(@Nullable java.lang.Integer priority)
priority
- the status priority or null
to unset itBuilder
EditorResourceStatus.getPriority()
@Nonnull public EditorResourceStatus.Builder setVariant(@Nullable EditorResourceStatus.Variant variant)
variant
- the status variant or null
to unset itBuilder
EditorResourceStatus.getVariant()
,
EditorResourceStatus.Variant
@Nonnull public EditorResourceStatus.Builder setIcon(@Nullable 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
instanceCopyright © 2010 - 2020 Adobe. All Rights Reserved