Package com.vaadin.featurepack.data.ui
Enum Class FAbstractSelect.ItemCaptionMode
java.lang.Object
java.lang.Enum<FAbstractSelect.ItemCaptionMode>
com.vaadin.featurepack.data.ui.FAbstractSelect.ItemCaptionMode
- All Implemented Interfaces:
Serializable,Comparable<FAbstractSelect.ItemCaptionMode>,Constable
- Enclosing class:
FAbstractSelect
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionItem caption mode: Captions must be explicitly specified.Item caption mode: If an Item has a caption it's used, if not, Item's ID converted to a String usingis used as caption.invalid reference
VaadinSession#getConverterFactory()Item caption mode: Only icons are shown, captions are hidden.Item caption mode: Item's ID converted to a String usingis used as caption.invalid reference
VaadinSession#getConverterFactory()Item caption mode: Item's ID'sStringrepresentation is used as caption.Item caption mode: Index of the item is used as caption.Item caption mode: Item'sStringrepresentation is used as caption.Item caption mode: Item captions are read from property specified withsetItemCaptionPropertyId. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static FAbstractSelect.ItemCaptionMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ID
Item caption mode: Item's ID converted to a String usingis used as caption.invalid reference
VaadinSession#getConverterFactory() -
ID_TOSTRING
Item caption mode: Item's ID'sStringrepresentation is used as caption.- Since:
- 7.5.6
-
ITEM
Item caption mode: Item'sStringrepresentation is used as caption. -
INDEX
Item caption mode: Index of the item is used as caption. The index mode can only be used with the containers implementing theContainer.Indexedinterface. -
EXPLICIT_DEFAULTS_ID
Item caption mode: If an Item has a caption it's used, if not, Item's ID converted to a String usingis used as caption. This is the default.invalid reference
VaadinSession#getConverterFactory() -
EXPLICIT
Item caption mode: Captions must be explicitly specified. -
ICON_ONLY
Item caption mode: Only icons are shown, captions are hidden. -
PROPERTY
Item caption mode: Item captions are read from property specified withsetItemCaptionPropertyId.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-