Class JumpLinks
- java.lang.Object
-
- org.patternfly.component.BaseComponentFlat<HTMLElement,JumpLinks>
-
- org.patternfly.component.jumplinks.JumpLinks
-
- All Implemented Interfaces:
Attachable,Finder<HTMLElement>,HasElement<HTMLElement,JumpLinks>,HasHTMLElement<HTMLElement,JumpLinks>,IsElement<HTMLElement>,TypedBuilder<HTMLElement,JumpLinks>,Component,Expandable<HTMLElement,JumpLinks>,Modifiers.Vertical<HTMLElement,JumpLinks>
public class JumpLinks extends BaseComponentFlat<HTMLElement,JumpLinks> implements Attachable, Expandable<HTMLElement,JumpLinks>, Modifiers.Vertical<HTMLElement,JumpLinks>
Jump links allow users to navigate to sections within a page.
-
-
Method Summary
-
Methods inherited from class org.patternfly.component.BaseComponentFlat
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.Attachable
detach
-
Methods inherited from interface org.patternfly.component.Expandable
collapse, expand, expanded, toggle, toggle
-
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.Vertical
vertical
-
-
-
-
Method Detail
-
jumpLinks
public static JumpLinks jumpLinks()
-
attach
public void attach(MutationRecord mutationRecord)
- Specified by:
attachin interfaceAttachable
-
addItems
public <T> JumpLinks addItems(Iterable<T> items, Function<T,JumpLinksItem> display)
-
addItem
public JumpLinks addItem(JumpLinksItem item)
-
add
public JumpLinks add(JumpLinksItem item)
-
center
public JumpLinks center()
Same as center(true)
-
center
public JumpLinks center(boolean center)
Adds/removes modifier(center)
-
expandable
public JumpLinks expandable(Breakpoints<ExpandableModifier> expandable)
When to collapse/expand at different breakpoints (Modifiers.Vertical.vertical()should be set to true for this to work).
-
scrollableSelector
public JumpLinks scrollableSelector(HTMLElement element)
-
scrollableSelector
public JumpLinks scrollableSelector(Supplier<HTMLElement> element)
-
vertical
public JumpLinks vertical(boolean vertical)
- Specified by:
verticalin interfaceModifiers.Vertical<HTMLElement,JumpLinks>
-
that
public JumpLinks that()
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,JumpLinks>
-
onSelect
public JumpLinks onSelect(SelectHandler<JumpLinksItem> selectHandler)
-
onToggle
public JumpLinks onToggle(ToggleHandler<JumpLinks> toggleHandler)
-
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
public void select(String itemId)
-
select
public void select(String itemId, boolean fireEvent)
-
select
public void select(JumpLinksItem item)
-
select
public void select(JumpLinksItem item, boolean fireEvent)
-
select
public void select(JumpLinksItem item, boolean selected, boolean fireEvent)
-
-