Package com.vaadin.featurepack.util
Class TooltipUtils
java.lang.Object
com.vaadin.featurepack.util.TooltipUtils
Utility class for setting and getting tooltip descriptions for components.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetDescription(com.vaadin.flow.component.Component component) static ContentModegetDescriptionContentMode(com.vaadin.flow.component.Component component) static StringgetFormattedMessage(String message, ContentMode mode) static com.vaadin.flow.component.popover.PopovergetPopover(com.vaadin.flow.component.Component component) static booleanhasTooltip(com.vaadin.flow.component.Component component) static voidsetDescription(com.vaadin.flow.component.Component component, String description) static voidsetDescription(com.vaadin.flow.component.Component component, String description, ContentMode mode) static voidsetDescriptionContentMode(com.vaadin.flow.component.Component component, ContentMode descriptionContentMode) static voidsetDescriptionValue(com.vaadin.flow.component.Component component, String description) static voidsetPopover(com.vaadin.flow.component.Component component, com.vaadin.flow.component.popover.Popover popover) static voidsetTooltip(com.vaadin.flow.component.Component component, String description, ContentMode mode) static voidsetupPopover(com.vaadin.flow.component.Component component, String description, ContentMode mode) Sets up a popover for the component with the given description and mode.
-
Constructor Details
-
TooltipUtils
public TooltipUtils()
-
-
Method Details
-
hasTooltip
public static boolean hasTooltip(com.vaadin.flow.component.Component component) -
setDescription
public static void setDescription(com.vaadin.flow.component.Component component, String description) -
getDescription
-
setDescriptionValue
public static void setDescriptionValue(com.vaadin.flow.component.Component component, String description) -
getDescriptionContentMode
-
getPopover
public static com.vaadin.flow.component.popover.Popover getPopover(com.vaadin.flow.component.Component component) -
setPopover
public static void setPopover(com.vaadin.flow.component.Component component, com.vaadin.flow.component.popover.Popover popover)
-