Package org.patternfly.component.popover
Class Popover
- java.lang.Object
-
- org.patternfly.component.BaseComponent<HTMLDivElement,Popover>
-
- org.patternfly.component.popover.Popover
-
- All Implemented Interfaces:
Attachable,Container<HTMLDivElement,Popover>,Finder<HTMLDivElement>,HasElement<HTMLDivElement,Popover>,HasHTMLElement<HTMLDivElement,Popover>,IsElement<HTMLDivElement>,TypedBuilder<HTMLDivElement,Popover>,Closeable<HTMLDivElement,Popover>,Component,WithIcon<HTMLDivElement,Popover>,Modifiers.NoPadding<HTMLDivElement,Popover>
public class Popover extends BaseComponent<HTMLDivElement,Popover> implements Closeable<HTMLDivElement,Popover>, Modifiers.NoPadding<HTMLDivElement,Popover>, WithIcon<HTMLDivElement,Popover>, Attachable
A popover is in-app messaging that provides more information on specific product areas. Popovers display content in a new window that overlays the current page. Unlike modals, popovers don't block the current page.
-
-
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
-
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, title
-
Methods inherited from interface org.patternfly.style.Modifiers.NoPadding
noPadding, noPadding
-
-
-
-
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
-
popover
public static Popover popover()
-
popover
public static Popover popover(HTMLElement trigger)
-
popover
public static Popover popover(Supplier<HTMLElement> trigger)
-
attach
public void attach(MutationRecord mutationRecord)
- Specified by:
attachin interfaceAttachable
-
detach
public void detach(MutationRecord mutationRecord)
- Specified by:
detachin interfaceAttachable
-
addHeader
public Popover addHeader(PopoverHeader header)
-
add
public Popover add(PopoverHeader header)
-
addBody
public Popover addBody(PopoverBody body)
-
add
public Popover add(PopoverBody body)
-
addFooter
public Popover addFooter(PopoverFooter footer)
-
add
public Popover add(PopoverFooter footer)
-
appendToBody
public Popover appendToBody()
-
animationDuration
public Popover animationDuration(int animationDuration)
-
autoWidth
public Popover autoWidth()
-
closable
public Popover closable()
-
closable
public Popover closable(CloseHandler<Popover> closeHandler)
-
distance
public Popover distance(int distance)
-
flip
public Popover flip(boolean flip)
-
icon
public Popover icon(Element icon)
- Specified by:
iconin interfaceWithIcon<HTMLDivElement,Popover>
-
removeIcon
public Popover removeIcon()
- Specified by:
removeIconin interfaceWithIcon<HTMLDivElement,Popover>
-
noClose
public Popover noClose()
-
trigger
public Popover trigger(HTMLElement trigger)
-
trigger
public Popover trigger(Supplier<HTMLElement> trigger)
-
triggerActions
public Popover triggerActions(TriggerAction... triggerActions)
-
zIndex
public Popover zIndex(int zIndex)
-
that
public Popover that()
- Specified by:
thatin interfaceTypedBuilder<HTMLDivElement,Popover>
-
ariaLabel
public Popover ariaLabel(String label)
Accessible label for the popover, required when header is not present.
-
onClose
public Popover onClose(CloseHandler<Popover> closeHandler)
- Specified by:
onClosein interfaceCloseable<HTMLDivElement,Popover>
-
show
public void show()
-
show
public void show(Event event)
-
close
public void close(Event event, boolean fireEvent)
- Specified by:
closein interfaceCloseable<HTMLDivElement,Popover>
-
-