Class Tooltip
java.lang.Object
org.patternfly.component.BaseComponent<HTMLDivElement, Tooltip>
org.patternfly.component.tooltip.Tooltip
- All Implemented Interfaces:
Attachable, ElementAttributeMethods<HTMLDivElement, Tooltip>, ElementClassListMethods<HTMLDivElement, Tooltip>, ElementConsumerMethods<HTMLDivElement, Tooltip>, ElementContainerMethods<HTMLDivElement, Tooltip>, ElementEventMethods<HTMLDivElement, Tooltip>, ElementIdMethods<HTMLDivElement, Tooltip>, ElementQueryMethods<HTMLDivElement>, ElementTextMethods<HTMLDivElement, Tooltip>, HTMLElementAttributeMethods<HTMLDivElement, Tooltip>, HTMLElementDataMethods<HTMLDivElement, Tooltip>, HTMLElementStyleMethods<HTMLDivElement, Tooltip>, HTMLElementVisibilityMethods<HTMLDivElement, Tooltip>, IsElement<HTMLDivElement>, TypedBuilder<HTMLDivElement, Tooltip>, Closeable<HTMLDivElement, Tooltip>, Component
public class Tooltip
extends BaseComponent<HTMLDivElement, Tooltip>
implements Attachable, Closeable<HTMLDivElement, Tooltip>, ElementTextMethods<HTMLDivElement, Tooltip>
A tooltip is in-app messaging used to identify elements on a page with short, clarifying text.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionanimationDuration(int animationDuration) aria(TriggerAria aria) voidattach(MutationRecord mutationRecord) voidvoiddetach(MutationRecord mutationRecord) distance(int distance) entryDelay(int delay) exitDelay(int delay) flip(boolean flip) onClose(CloseHandler<Tooltip> closeHandler) voidshow()voidtext()that()static Tooltiptooltip()static Tooltiptooltip(HTMLElement trigger) static Tooltiptooltip(HTMLElement trigger, String text) static Tooltipstatic Tooltiptooltip(Supplier<HTMLElement> trigger) static Tooltiptooltip(Supplier<HTMLElement> trigger, String text) static Tooltipstatic Tooltiptrigger(HTMLElement trigger) trigger(Supplier<HTMLElement> trigger) triggerActions(TriggerAction... triggerActions) zIndex(int zIndex) Methods inherited from class BaseComponent
componentType, element, registerComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface ElementConsumerMethods
apply, runMethods inherited from interface ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface ElementEventMethods
on, on, onMethods inherited from interface ElementIdMethods
id, uniqueIdMethods inherited from interface ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface HTMLElementVisibilityMethods
hidden
-
Field Details
-
ANIMATION_DURATION
public static final int ANIMATION_DURATION- See Also:
-
ENTRY_DELAY
public static final int ENTRY_DELAY- See Also:
-
EXIT_DELAY
public static final int EXIT_DELAY- See Also:
-
DISTANCE
public static final int DISTANCE- See Also:
-
Z_INDEX
public static final int Z_INDEX- See Also:
-
-
Method Details
-
tooltip
-
tooltip
-
tooltip
-
tooltip
-
tooltip
-
tooltip
-
tooltip
-
tooltip
-
attach
- Specified by:
attachin interfaceAttachable
-
detach
- Specified by:
detachin interfaceAttachable
-
appendToBody
-
appendTo
-
animationDuration
-
distance
-
flip
-
entryDelay
-
exitDelay
-
leftAligned
-
placement
-
text
- Specified by:
textin interfaceElementTextMethods<HTMLDivElement, Tooltip>
-
trigger
-
trigger
-
trigger
-
trigger
-
triggerActions
-
zIndex
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLDivElement, Tooltip>
-
aria
-
onClose
- Specified by:
onClosein interfaceCloseable<HTMLDivElement, Tooltip>
-
show
public void show() -
show
-
close
- Specified by:
closein interfaceCloseable<HTMLDivElement, Tooltip>
-
text
- Specified by:
textin interfaceElementTextMethods<HTMLDivElement, Tooltip>
-