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
Fields Modifier and Type Field Description static intANIMATION_DURATIONstatic intDISTANCEstatic intENTRY_DELAYstatic intEXIT_DELAYstatic intZ_INDEX
-
Method Summary
-
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, id, innerHtml, on, run, textContent, textNode, toggle, toggle, toggle, uniqueId
-
-
-
-
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()
-
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
-
appendToBody
public Tooltip appendToBody()
-
animationDuration
public Tooltip animationDuration(int animationDuration)
-
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()
-
text
public Tooltip text(String text)
- Specified by:
textin interfaceWithText<HTMLDivElement,Tooltip>
-
trigger
public Tooltip trigger(HTMLElement trigger)
-
trigger
public Tooltip trigger(Supplier<HTMLElement> trigger)
-
triggerActions
public Tooltip triggerActions(TriggerAction... triggerActions)
-
zIndex
public Tooltip zIndex(int zIndex)
-
that
public Tooltip that()
- Specified by:
thatin interfaceTypedBuilder<HTMLDivElement,Tooltip>
-
aria
public Tooltip aria(TriggerAria aria)
-
onClose
public Tooltip onClose(CloseHandler<Tooltip> closeHandler)
- Specified by:
onClosein interfaceCloseable<HTMLDivElement,Tooltip>
-
show
public void show()
-
show
public void show(Event event)
-
close
public void close(Event event, boolean fireEvent)
- Specified by:
closein interfaceCloseable<HTMLDivElement,Tooltip>
-
text
public String text()
- Specified by:
textin interfaceWithText<HTMLDivElement,Tooltip>
-
-