Package org.patternfly.component.tooltip
Class Tooltip
java.lang.Object
org.patternfly.component.BaseComponent<HTMLDivElement,Tooltip>
org.patternfly.component.tooltip.Tooltip
- All Implemented Interfaces:
Attachable
,Container<HTMLDivElement,
,Tooltip> Finder<HTMLDivElement>
,HasElement<HTMLDivElement,
,Tooltip> HasHTMLElement<HTMLDivElement,
,Tooltip> IsElement<HTMLDivElement>
,TypedBuilder<HTMLDivElement,
,Tooltip> Closeable<HTMLDivElement,
,Tooltip> Component
,WithText<HTMLDivElement,
Tooltip>
public class Tooltip
extends BaseComponent<HTMLDivElement,Tooltip>
implements Closeable<HTMLDivElement,Tooltip>, WithText<HTMLDivElement,Tooltip>, Attachable
A tooltip is in-app messaging used to identify elements on a page with short, clarifying text.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionanimationDuration
(int animationDuration) aria
(TriggerAria aria) void
attach
(MutationRecord mutationRecord) void
void
detach
(MutationRecord mutationRecord) distance
(int distance) entryDelay
(int delay) exitDelay
(int delay) flip
(boolean flip) onClose
(CloseHandler<Tooltip> closeHandler) void
show()
void
text()
that()
static Tooltip
tooltip()
static Tooltip
tooltip
(HTMLElement trigger) static Tooltip
tooltip
(HTMLElement trigger, String text) static Tooltip
static Tooltip
tooltip
(Supplier<HTMLElement> trigger) static Tooltip
tooltip
(Supplier<HTMLElement> trigger, String text) static Tooltip
static Tooltip
trigger
(HTMLElement trigger) trigger
(Supplier<HTMLElement> trigger) triggerActions
(TriggerAction... triggerActions) zIndex
(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, add, addAll, addAll, addAll, addAll, addAll, addAll
Methods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, classList, classList, css, id, innerHtml, on, on, on, run, textContent, textNode, toggle, toggle, toggle, uniqueId
-
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:
attach
in interfaceAttachable
-
detach
- Specified by:
detach
in interfaceAttachable
-
appendToBody
-
appendTo
-
animationDuration
-
distance
-
flip
-
entryDelay
-
exitDelay
-
leftAligned
-
placement
-
text
- Specified by:
text
in interfaceWithText<HTMLDivElement,
Tooltip>
-
trigger
-
trigger
-
trigger
-
trigger
-
triggerActions
-
zIndex
-
that
- Specified by:
that
in interfaceTypedBuilder<HTMLDivElement,
Tooltip>
-
aria
-
onClose
- Specified by:
onClose
in interfaceCloseable<HTMLDivElement,
Tooltip>
-
show
public void show() -
show
-
close
- Specified by:
close
in interfaceCloseable<HTMLDivElement,
Tooltip>
-
text
- Specified by:
text
in interfaceWithText<HTMLDivElement,
Tooltip>
-