Class JumpLinks
java.lang.Object
org.patternfly.component.BaseComponentFlat<HTMLElement,JumpLinks>
org.patternfly.component.jumplinks.JumpLinks
- All Implemented Interfaces:
Iterable<JumpLinksItem>,Attachable,Finder<HTMLElement>,HasElement<HTMLElement,,JumpLinks> HasHTMLElement<HTMLElement,,JumpLinks> IsElement<HTMLElement>,TypedBuilder<HTMLElement,,JumpLinks> Component,Expandable<HTMLElement,,JumpLinks> HasItems<HTMLElement,,JumpLinks, JumpLinksItem> Modifiers.Center<HTMLElement,,JumpLinks> Modifiers.Vertical<HTMLElement,JumpLinks>
public class JumpLinks
extends BaseComponentFlat<HTMLElement,JumpLinks>
implements Attachable, Modifiers.Center<HTMLElement,JumpLinks>, Expandable<HTMLElement,JumpLinks>, HasItems<HTMLElement,JumpLinks,JumpLinksItem>, Modifiers.Vertical<HTMLElement,JumpLinks>
Jump links allow users to navigate to sections within a page.
-
Method Summary
Modifier and TypeMethodDescriptionadd(JumpLinksItem item) ariaToggleLabel(String label) voidattach(MutationRecord mutationRecord) voidclear()voidcollapse(boolean fireEvent) voidexpand(boolean fireEvent) expandable(Breakpoints<ExpandableModifier> expandable) When to collapse/expand at different breakpoints (Modifiers.Vertical.vertical()should be set to true for this to work).expandable(ExpandableModifier expandable) Same asexpandable(breakpoints(default_, expandable))booleanisEmpty()iterator()static JumpLinksstatic JumpLinksonSelect(SelectHandler<JumpLinksItem> selectHandler) onToggle(ToggleHandler<JumpLinks> toggleHandler) scrollableSelector(HTMLElement element) scrollableSelector(String selector) scrollableSelector(Supplier<HTMLElement> element) scrollableSelector(By selector) voidvoidvoidvoidselect(JumpLinksItem item) voidselect(JumpLinksItem item, boolean selected) voidselect(JumpLinksItem item, boolean fireEvent, boolean selected) intsize()that()vertical(boolean vertical) Methods inherited from class org.patternfly.component.BaseComponentFlat
componentType, elementMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.elemento.Attachable
detachMethods inherited from interface org.patternfly.component.Expandable
collapse, expand, expanded, toggle, toggleMethods 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, uniqueIdMethods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, titleMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.patternfly.style.Modifiers.Center
center, centerMethods inherited from interface org.patternfly.style.Modifiers.Vertical
vertical
-
Method Details
-
jumpLinks
-
jumpLinks
-
attach
- Specified by:
attachin interfaceAttachable
-
add
- Specified by:
addin interfaceHasItems<HTMLElement,JumpLinks, JumpLinksItem>
-
expandable
Same asexpandable(breakpoints(default_, expandable)) -
expandable
When to collapse/expand at different breakpoints (Modifiers.Vertical.vertical()should be set to true for this to work). -
label
-
scrollableSelector
-
scrollableSelector
-
scrollableSelector
-
scrollableSelector
-
vertical
- Specified by:
verticalin interfaceModifiers.Vertical<HTMLElement,JumpLinks>
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,JumpLinks>
-
ariaLabel
-
ariaToggleLabel
-
onSelect
-
onToggle
-
collapse
public void collapse(boolean fireEvent) - Specified by:
collapsein interfaceExpandable<HTMLElement,JumpLinks>
-
expand
public void expand(boolean fireEvent) - Specified by:
expandin interfaceExpandable<HTMLElement,JumpLinks>
-
select
-
select
-
select
-
select
-
select
-
select
-
iterator
- Specified by:
iteratorin interfaceIterable<JumpLinksItem>
-
size
public int size()- Specified by:
sizein interfaceHasItems<HTMLElement,JumpLinks, JumpLinksItem>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceHasItems<HTMLElement,JumpLinks, JumpLinksItem>
-
clear
public void clear()- Specified by:
clearin interfaceHasItems<HTMLElement,JumpLinks, JumpLinksItem>
-