Class NativeTooltip
java.lang.Object
org.patternfly.component.BaseComponent<HTMLDivElement, NativeTooltip>
org.patternfly.component.tooltip.NativeTooltip
- All Implemented Interfaces:
Attachable, ElementAttributeMethods<HTMLDivElement, NativeTooltip>, ElementClassListMethods<HTMLDivElement, NativeTooltip>, ElementConsumerMethods<HTMLDivElement, NativeTooltip>, ElementContainerDelegate<HTMLDivElement, NativeTooltip>, ElementContainerMethods<HTMLDivElement, NativeTooltip>, ElementEventMethods<HTMLDivElement, NativeTooltip>, ElementIdMethods<HTMLDivElement, NativeTooltip>, ElementQueryMethods<HTMLDivElement>, ElementTextDelegate<HTMLDivElement, NativeTooltip>, ElementTextMethods<HTMLDivElement, NativeTooltip>, HTMLElementAttributeMethods<HTMLDivElement, NativeTooltip>, HTMLElementDataMethods<HTMLDivElement, NativeTooltip>, HTMLElementStyleMethods<HTMLDivElement, NativeTooltip>, HTMLElementVisibilityMethods<HTMLDivElement, NativeTooltip>, IsElement<HTMLDivElement>, TypedBuilder<HTMLDivElement, NativeTooltip>, Closeable<HTMLDivElement, NativeTooltip>, Component
public class NativeTooltip
extends BaseComponent<HTMLDivElement, NativeTooltip>
implements Attachable, Closeable<HTMLDivElement, NativeTooltip>, ElementContainerDelegate<HTMLDivElement, NativeTooltip>, ElementTextDelegate<HTMLDivElement, NativeTooltip>
A tooltip is in-app messaging used to identify elements on a page with short, clarifying text.
This implementation uses the Popover API and CSS anchor positioning instead of Popper.js. The tooltip uses the browser's top-layer rendering for correct stacking, eliminating z-index issues.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionaria(TriggerAria aria) voidattach(MutationRecord mutationRecord) voidvoiddetach(MutationRecord mutationRecord) distance(int distance) entryDelay(int delay) exitDelay(int delay) static NativeTooltipstatic NativeTooltipnativeTooltip(HTMLElement trigger) static NativeTooltipnativeTooltip(HTMLElement trigger, String text) static NativeTooltipnativeTooltip(String text) static NativeTooltipnativeTooltip(Supplier<HTMLElement> trigger) static NativeTooltipnativeTooltip(Supplier<HTMLElement> trigger, String text) static NativeTooltipnativeTooltip(By trigger) static NativeTooltipnativeTooltip(By trigger, String text) onClose(CloseHandler<NativeTooltip> closeHandler) voidshow()voidtext()that()trigger(HTMLElement trigger) trigger(Supplier<HTMLElement> trigger) 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 ElementContainerDelegate
add, add, addMethods inherited from interface ElementContainerMethods
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 ElementTextDelegate
textMethods inherited from interface HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface HTMLElementVisibilityMethods
hidden
-
Field Details
-
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:
-
-
Method Details
-
nativeTooltip
-
nativeTooltip
-
nativeTooltip
-
nativeTooltip
-
nativeTooltip
-
nativeTooltip
-
nativeTooltip
-
nativeTooltip
-
containerDelegate
- Specified by:
containerDelegatein interfaceElementContainerDelegate<HTMLDivElement, NativeTooltip>
-
textDelegate
- Specified by:
textDelegatein interfaceElementTextDelegate<HTMLDivElement, NativeTooltip>
-
attach
- Specified by:
attachin interfaceAttachable
-
detach
- Specified by:
detachin interfaceAttachable
-
entryDelay
-
exitDelay
-
distance
-
leftAligned
-
placement
-
trigger
-
trigger
-
trigger
-
trigger
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLDivElement, NativeTooltip>
-
aria
-
onClose
- Specified by:
onClosein interfaceCloseable<HTMLDivElement, NativeTooltip>
-
show
public void show() -
show
-
close
- Specified by:
closein interfaceCloseable<HTMLDivElement, NativeTooltip>
-
text
- Specified by:
textin interfaceElementTextDelegate<HTMLDivElement, NativeTooltip>- Specified by:
textin interfaceElementTextMethods<HTMLDivElement, NativeTooltip>
-