Enum Class RailTooltipMode
- All Implemented Interfaces:
Serializable,Comparable<RailTooltipMode>,Constable
SideNavRail surface their identity while the rail is in rail
mode. Tooltips are never shown in normal mode — the label text identifies the item in that case.
The label source is the item's own getLabel(). Tooltips apply to direct children of
the rail only; nested items never get a tooltip from the rail.
Both active modes (SIMPLE, POPOVER_HEADER) apply to every rail-mode
root item. Combine with PopoverHeaderMode when POPOVER_HEADER is selected to
control what the popover header shows.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo tooltips on root items.Default.Lumo-themed CSS pseudo-element tooltip. -
Method Summary
Modifier and TypeMethodDescriptionstatic RailTooltipModeReturns the enum constant of this class with the specified name.static RailTooltipMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No tooltips on root items. -
SIMPLE
Lumo-themed CSS pseudo-element tooltip. Reacts to both hover and keyboard focus (via:focus-within). Immune tovaadin-tooltip-mixin's overlay dismissal because it does not participate in the overlay system.When combined with a parent-popover, the tooltip and popover both appear on the same item — the tooltip sits below the icon (default tooltip position), the popover opens to the right, so they don't spatially overlap. Use
POPOVER_HEADERif you want a single overlay per item. -
POPOVER_HEADER
Default. Tooltip is rendered as aPopoverwith the configuredPopoverHeaderModeas its content. For items with children the existing parent-popover doubles as the tooltip — there is exactly one overlay per item. For leaf items a popover is created on demand whose only content is the header.Reacts to hover and keyboard focus (via
Popover.setOpenOnFocus). Inherits hover/hide delays, position, and arrow visibility from the rail's existing popover settings.Constraint: requires a non-
PopoverHeaderMode.NONEheader — without one the popover would have no content. If the rail is attached withRailTooltipMode.POPOVER_HEADERandPopoverHeaderMode.NONEconfigured, the header mode is silently coerced toPopoverHeaderMode.LABEL_ONLY. Setting the combination via runtime setters after attach is not validated and may produce an empty popover.
-
-
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
-