|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<IconAnnotation>
org.openpermis.editor.policy.gui.icon.IconAnnotation
public enum IconAnnotation
Annotations for icons.
Enum Constant Summary | |
---|---|
ADD
Add annotation. |
|
DELETE
Delete annotation. |
|
EDIT
Edit annotation. |
|
EXCLUDE
Exclude annotation. |
|
MOVEDOWN
Move down annotation. |
|
MOVEUP
Move up annotation. |
|
WARNING
Warning sign annotation. |
Method Summary | |
---|---|
String |
annotate(String iconKey)
Annotates the specified icon key with this annotation. |
static String[] |
decompose(String iconKey)
Decomposes an annotated key into its parts. |
String |
getKey()
Returns the lower case key of the icon annotation. |
static String |
getKey(String iconKey)
Returns the key portion of a possibly annotated icon key. |
static boolean |
isAnnotated(String iconKey)
Tests if an icon key is annotated. |
String |
toString()
|
static IconAnnotation |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static IconAnnotation[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final IconAnnotation ADD
public static final IconAnnotation DELETE
public static final IconAnnotation EDIT
public static final IconAnnotation WARNING
public static final IconAnnotation MOVEUP
public static final IconAnnotation MOVEDOWN
public static final IconAnnotation EXCLUDE
Method Detail |
---|
public static IconAnnotation[] values()
for (IconAnnotation c : IconAnnotation.values()) System.out.println(c);
public static IconAnnotation valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static boolean isAnnotated(String iconKey)
iconKey
- the icon key to test.
true
if the key is annotated, false
otherwise.public static String getKey(String iconKey)
iconKey
- the icon key for which to retrieve the key portion.
public static String[] decompose(String iconKey)
iconKey
- the icon key to decompose.
IllegalArgumentException
- if an unknown annotation is encountered.public String annotate(String iconKey)
iconKey
- the icon key to annotate, must not be null
.
public String getKey()
public String toString()
toString
in class Enum<IconAnnotation>
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG