public static final class NotificationDisplayer.Category extends Object implements Comparable<NotificationDisplayer.Category>
layer.xml
:
<folder name="Notification">
<folder name="Category">
<file name="categoryA.instance">
<attr name="instanceCreate" methodvalue="org.openide.awt.NotificationDisplayer.createCategory"/>
<attr name="localizingBundle" stringvalue="org.modules.mymodule.Bundle"/> <!-- Bundle file with used keys-->
<attr name="categoryName" stringvalue="categoryA_name/> <!-- Actual category name-->
<attr name="diplayNameKey" stringvalue="categoryA_displayName_key"/> <!-- Key to the Bundle file-->
<attr name="descriptionKey" stringvalue="categoryA_description_key"/> <!-- Key to the Bundle file-->
</file>
</folder>
</folder>
Modifier and Type | Field and Description |
---|---|
static NotificationDisplayer.Category |
ERROR |
static NotificationDisplayer.Category |
INFO |
static NotificationDisplayer.Category |
WARNING |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(NotificationDisplayer.Category other) |
static List<NotificationDisplayer.Category> |
getCategories()
Returns all available categories
|
String |
getDescription()
Returns category description
|
String |
getDisplayName()
Returns category display name
|
String |
getName()
Returns category name - unique id
|
public static final NotificationDisplayer.Category INFO
public static final NotificationDisplayer.Category WARNING
public static final NotificationDisplayer.Category ERROR
public String getName()
public String getDisplayName()
public String getDescription()
public int compareTo(NotificationDisplayer.Category other)
compareTo
in interface Comparable<NotificationDisplayer.Category>
public static List<NotificationDisplayer.Category> getCategories()