public static enum AbstractSelect.ItemCaptionMode extends Enum<AbstractSelect.ItemCaptionMode>
Enum Constant and Description |
---|
EXPLICIT
Item caption mode: Captions must be explicitly specified.
|
EXPLICIT_DEFAULTS_ID
Item caption mode: If an Item has a caption it's used, if not, Item's
ID converted to a String using
VaadinSession.getConverterFactory() is used as caption. |
ICON_ONLY
Item caption mode: Only icons are shown, captions are hidden.
|
ID
Item caption mode: Item's ID converted to a String using
VaadinSession.getConverterFactory() is used as caption. |
ID_TOSTRING
Item caption mode: Item's ID's
String representation is
used as caption. |
INDEX
Item caption mode: Index of the item is used as caption.
|
ITEM
Item caption mode: Item's
String representation is used
as caption. |
PROPERTY
Item caption mode: Item captions are read from property specified
with
setItemCaptionPropertyId . |
Modifier and Type | Method and Description |
---|---|
static AbstractSelect.ItemCaptionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AbstractSelect.ItemCaptionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractSelect.ItemCaptionMode ID
VaadinSession.getConverterFactory()
is used as caption.public static final AbstractSelect.ItemCaptionMode ID_TOSTRING
String
representation is
used as caption.public static final AbstractSelect.ItemCaptionMode ITEM
String
representation is used
as caption.public static final AbstractSelect.ItemCaptionMode INDEX
Container.Indexed
interface.public static final AbstractSelect.ItemCaptionMode EXPLICIT_DEFAULTS_ID
VaadinSession.getConverterFactory()
is used as caption.
This is the default.public static final AbstractSelect.ItemCaptionMode EXPLICIT
public static final AbstractSelect.ItemCaptionMode ICON_ONLY
public static final AbstractSelect.ItemCaptionMode PROPERTY
setItemCaptionPropertyId
.public static AbstractSelect.ItemCaptionMode[] values()
for (AbstractSelect.ItemCaptionMode c : AbstractSelect.ItemCaptionMode.values()) System.out.println(c);
public static AbstractSelect.ItemCaptionMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2021 Vaadin Ltd. All rights reserved.