public class EditorResourceStatus extends Object implements ResourceStatus
Implementation of a ResourceStatus for resources that are authored in the Editor
(such as pages or templates). EditorResourceStatuses are retrieved and displayed in a
status bar in the Editor.
An EditorResourceStatus consists of the following information:
ResourceStatus.getPriority())EditorResourceStatus.Variant)getIcon())EditorResourceStatus.Action)com.adobe.granite.resourcestatus,
ResourceStatus| Modifier and Type | Class and Description |
|---|---|
static class |
EditorResourceStatus.Action
Defines an action for an
EditorResourceStatus. |
static class |
EditorResourceStatus.Builder
Builder class to build
EditorResourceStatus instances. |
static class |
EditorResourceStatus.Variant
Defines the possible variants of statuses, in line with CoralUI.Alert variants.
|
| Constructor and Description |
|---|
EditorResourceStatus(String type,
String title,
String message,
Integer priority,
EditorResourceStatus.Variant variant,
String icon,
List<EditorResourceStatus.Action> actions,
Map<String,Object> data)
Creates a status.
|
| Modifier and Type | Method and Description |
|---|---|
List<EditorResourceStatus.Action> |
getActions()
Returns the actions of this status.
|
Map<String,Object> |
getAdditionalData()
Returns the additional data defined for this status, corresponding to the data that was
added using
EditorResourceStatus.Builder.addData(String, Object). |
Map<String,Object> |
getData()
Returns an unmodifiable map containing the status information and data needed to render this
status.
|
String |
getIcon()
Returns the name of a CoralUI icon to be displayed in the status.
|
String |
getMessage()
Returns the status message.
|
int |
getPriority()
Returns the priority of this status corresponding to its importance
(
Integer.MAX_VALUE being the highest priority). |
String |
getResourceSuperType()
Returns the resource super type to render this status.
|
String |
getResourceType()
Returns the resource type to render this status.
|
String |
getTitle()
Returns the title of this status, which describes the module or feature the status is
associated with.
|
String |
getType()
Returns the type of this status defining the module or feature this status is associated
with.
|
EditorResourceStatus.Variant |
getVariant()
Returns the variant of this status.
|
public EditorResourceStatus(@Nonnull String type, @Nonnull String title, @Nonnull String message, @Nullable Integer priority, @Nullable EditorResourceStatus.Variant variant, @Nullable String icon, @Nullable List<EditorResourceStatus.Action> actions, @Nullable Map<String,Object> data)
type - the status type (see ResourceStatus.getType())title - the titlemessage - the messagepriority - the priority or nullvariant - the variant or nullicon - the icon or nullactions - a list of actions or nulldata - additional status data or nullEditorResourceStatus@Nonnull public String getType()
ResourceStatusgetType in interface ResourceStatusResourceStatusProvider.getType()public int getPriority()
ResourceStatusInteger.MAX_VALUE being the highest priority).getPriority in interface ResourceStatus@Nullable public Map<String,Object> getData()
ResourceStatusgetData in interface ResourceStatus@Nullable public String getResourceType()
ResourceStatusgetResourceType in interface ResourceStatusnull@Nullable public String getResourceSuperType()
ResourceStatusgetResourceSuperType in interface ResourceStatusnull@Nonnull public String getTitle()
getType()), the title is
meant to be displayed in the user interface.public String getMessage()
@Nonnull public EditorResourceStatus.Variant getVariant()
EditorResourceStatus.Variant@Nullable public String getIcon()
EditorResourceStatus.Variant).null@Nonnull public Map<String,Object> getAdditionalData()
EditorResourceStatus.Builder.addData(String, Object). In contrast, getData() returns
a map containing all information defining this status (i.e. including title,
message etc).@Nonnull public List<EditorResourceStatus.Action> getActions()
EditorResourceStatus.ActionCopyright © 2010 - 2020 Adobe. All Rights Reserved