Package org.ametys.core.ui
Enum RibbonConfigurationManager.CONTROLSIZE
- java.lang.Object
-
- java.lang.Enum<RibbonConfigurationManager.CONTROLSIZE>
-
- org.ametys.core.ui.RibbonConfigurationManager.CONTROLSIZE
-
- All Implemented Interfaces:
Serializable
,Comparable<RibbonConfigurationManager.CONTROLSIZE>
- Enclosing class:
- RibbonConfigurationManager
public static enum RibbonConfigurationManager.CONTROLSIZE extends Enum<RibbonConfigurationManager.CONTROLSIZE>
Size constants for controls
-
-
Constructor Summary
Constructors Modifier Constructor Description private
CONTROLSIZE(String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RibbonConfigurationManager.CONTROLSIZE
createsFromString(String size)
Converts a string to a CONTROLSIZEString
toString()
static RibbonConfigurationManager.CONTROLSIZE
valueOf(String name)
Returns the enum constant of this type with the specified name.static RibbonConfigurationManager.CONTROLSIZE[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LARGE
public static final RibbonConfigurationManager.CONTROLSIZE LARGE
Control is large size
-
SMALL
public static final RibbonConfigurationManager.CONTROLSIZE SMALL
Control is small size
-
VERYSMALL
public static final RibbonConfigurationManager.CONTROLSIZE VERYSMALL
Control is very small (icon without text) size
-
-
Constructor Detail
-
CONTROLSIZE
private CONTROLSIZE(String value)
-
-
Method Detail
-
values
public static RibbonConfigurationManager.CONTROLSIZE[] 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 (RibbonConfigurationManager.CONTROLSIZE c : RibbonConfigurationManager.CONTROLSIZE.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RibbonConfigurationManager.CONTROLSIZE 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<RibbonConfigurationManager.CONTROLSIZE>
-
createsFromString
public static RibbonConfigurationManager.CONTROLSIZE createsFromString(String size)
Converts a string to a CONTROLSIZE- Parameters:
size
- The size to convert- Returns:
- The size corresponding to the string or null if unknown
-
-