Enum RibbonExclude.EXCLUDETARGET
- java.lang.Object
-
- java.lang.Enum<RibbonExclude.EXCLUDETARGET>
-
- org.ametys.core.ui.ribbonconfiguration.RibbonExclude.EXCLUDETARGET
-
- All Implemented Interfaces:
Serializable
,Comparable<RibbonExclude.EXCLUDETARGET>
- Enclosing class:
- RibbonExclude
public static enum RibbonExclude.EXCLUDETARGET extends Enum<RibbonExclude.EXCLUDETARGET>
Target of exclusion in the ribbon configuration
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RibbonExclude.EXCLUDETARGET
createsFromString(String target)
Converts a string to a EXCLUDETARGETString
toString()
static RibbonExclude.EXCLUDETARGET
valueOf(String name)
Returns the enum constant of this type with the specified name.static RibbonExclude.EXCLUDETARGET[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLUGIN
public static final RibbonExclude.EXCLUDETARGET PLUGIN
Excluding by plugin
-
EXTENSION
public static final RibbonExclude.EXCLUDETARGET EXTENSION
Excluding by extension
-
FILE
public static final RibbonExclude.EXCLUDETARGET FILE
Excluding by file
-
LABEL
public static final RibbonExclude.EXCLUDETARGET LABEL
Excluding by label
-
ID
public static final RibbonExclude.EXCLUDETARGET ID
Excluding by id
-
-
Method Detail
-
values
public static RibbonExclude.EXCLUDETARGET[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RibbonExclude.EXCLUDETARGET c : RibbonExclude.EXCLUDETARGET.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RibbonExclude.EXCLUDETARGET valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<RibbonExclude.EXCLUDETARGET>
-
createsFromString
public static RibbonExclude.EXCLUDETARGET createsFromString(String target)
Converts a string to a EXCLUDETARGET- Parameters:
target
- The type to convert- Returns:
- The exclude type corresponding to the string or null if unknown
-
-