public enum UiPermissionVariant extends java.lang.Enum<UiPermissionVariant> implements com.haulmont.chile.core.datatypes.impl.EnumClass<java.lang.Integer>
Enum Constant and Description |
---|
HIDE
Hide
|
NOTSET
Permission not selected
|
READ_ONLY
Read-only
|
SHOW
Show
|
Modifier and Type | Method and Description |
---|---|
static UiPermissionVariant |
fromId(java.lang.Integer id) |
java.lang.String |
getColor() |
java.lang.Integer |
getId() |
static UiPermissionVariant |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UiPermissionVariant[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UiPermissionVariant READ_ONLY
public static final UiPermissionVariant HIDE
public static final UiPermissionVariant NOTSET
public static final UiPermissionVariant SHOW
public static UiPermissionVariant[] values()
for (UiPermissionVariant c : UiPermissionVariant.values()) System.out.println(c);
public static UiPermissionVariant valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.Integer getId()
getId
in interface com.haulmont.chile.core.datatypes.impl.EnumClass<java.lang.Integer>
public java.lang.String getColor()
public static UiPermissionVariant fromId(java.lang.Integer id)