Package org.patternfly.component.tooltip
Class Tooltip
- java.lang.Object
-
- org.patternfly.component.BaseComponent<HTMLElement,Tooltip>
-
- org.patternfly.component.tooltip.Tooltip
-
- All Implemented Interfaces:
Attachable,Container<HTMLElement,Tooltip>,Finder<HTMLElement>,HasElement<HTMLElement,Tooltip>,HasHTMLElement<HTMLElement,Tooltip>,IsElement<HTMLElement>,TypedBuilder<HTMLElement,Tooltip>,Component
public class Tooltip extends BaseComponent<HTMLElement,Tooltip> implements Attachable
A tooltip is in-app messaging used to identify elements on a page with short, clarifying text.
-
-
Field Summary
Fields Modifier and Type Field Description static intANIMATION_DURATIONstatic intDISTANCEstatic intENTRY_DELAYstatic intEXIT_DELAYstatic intZ_INDEX
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TooltipanimationDuration(int animationDuration)Tooltiparia(TriggerAria aria)voidattach(MutationRecord mutationRecord)voiddetach(MutationRecord mutationRecord)Tooltipdistance(int distance)TooltipentryDelay(int delay)TooltipexitDelay(int delay)Tooltipflip(boolean flip)voidhide()TooltipleftAligned()TooltiponHidden(ComponentHandler<Tooltip> handler)Tooltipposition(Position position)voidshow()Stringtext()Tooltiptext(String text)Tooltipthat()static Tooltiptooltip(HTMLElement trigger)static Tooltiptooltip(HTMLElement trigger, String text)static Tooltiptooltip(Supplier<HTMLElement> trigger)static Tooltiptooltip(Supplier<HTMLElement> trigger, String text)static Tooltiptooltip(By trigger)static Tooltiptooltip(By trigger, String text)Tooltiptrigger(Trigger... trigger)TooltipzIndex(int zIndex)-
Methods inherited from class org.patternfly.component.BaseComponent
componentType, element
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.elemento.Container
add, add, addAll, addAll, addAll, addAll, addAll
-
-
-
-
Field Detail
-
ANIMATION_DURATION
public static final int ANIMATION_DURATION
- See Also:
- Constant Field Values
-
ENTRY_DELAY
public static final int ENTRY_DELAY
- See Also:
- Constant Field Values
-
EXIT_DELAY
public static final int EXIT_DELAY
- See Also:
- Constant Field Values
-
DISTANCE
public static final int DISTANCE
- See Also:
- Constant Field Values
-
Z_INDEX
public static final int Z_INDEX
- See Also:
- Constant Field Values
-
-
Method Detail
-
tooltip
public static Tooltip tooltip(HTMLElement trigger)
-
tooltip
public static Tooltip tooltip(HTMLElement trigger, String text)
-
tooltip
public static Tooltip tooltip(Supplier<HTMLElement> trigger)
-
tooltip
public static Tooltip tooltip(Supplier<HTMLElement> trigger, String text)
-
attach
public void attach(MutationRecord mutationRecord)
- Specified by:
attachin interfaceAttachable
-
detach
public void detach(MutationRecord mutationRecord)
- Specified by:
detachin interfaceAttachable
-
animationDuration
public Tooltip animationDuration(int animationDuration)
-
aria
public Tooltip aria(TriggerAria aria)
-
distance
public Tooltip distance(int distance)
-
flip
public Tooltip flip(boolean flip)
-
entryDelay
public Tooltip entryDelay(int delay)
-
exitDelay
public Tooltip exitDelay(int delay)
-
leftAligned
public Tooltip leftAligned()
-
zIndex
public Tooltip zIndex(int zIndex)
-
that
public Tooltip that()
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,Tooltip>
-
onHidden
public Tooltip onHidden(ComponentHandler<Tooltip> handler)
-
show
public void show()
-
hide
public void hide()
-
text
public String text()
-
-