Enum Class PopoverOn
- All Implemented Interfaces:
Serializable,Comparable<PopoverOn>,Constable
Controls when the hover popover on a
SideNavRailItem with children appears.
Has no effect on root items with children while SideNavRail.setChildrenOnlyInPopover(boolean) is enabled — that mode forces the popover on
regardless of this enum.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPopover appears for every non-expanded item with children, regardless of depth in the hierarchy and regardless of whether the nav is in rail mode.Popover appears only when the nav as a whole is in rail mode (SideNavRail.isRailMode()== true).Popover appears only for non-expanded items that are direct children of theSideNavRail— not for nested items further down the tree. -
Method Summary
-
Enum Constant Details
-
ALL_COLLAPSED_ITEMS
Popover appears for every non-expanded item with children, regardless of depth in the hierarchy and regardless of whether the nav is in rail mode. This is the default and mirrors the customer-requested behaviour ofSideNavRail. -
ONLY_ROOT_COLLAPSED_ITEMS
Popover appears only for non-expanded items that are direct children of theSideNavRail— not for nested items further down the tree. Useful when only top-level navigation should get the hover preview but deeper levels should behave like a plainSideNav.In rail mode this is effectively the same as
ALL_COLLAPSED_ITEMSbecause rail mode hides nested items anyway. -
ONLY_RAIL_MODE
Popover appears only when the nav as a whole is in rail mode (SideNavRail.isRailMode()== true). Inline-closed items in normal mode behave like a standardSideNav— they only open on click.
-
-
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
-