Class SkipToContent
- java.lang.Object
-
- org.patternfly.component.BaseComponent<HTMLDivElement,SkipToContent>
-
- org.patternfly.component.skiptocontent.SkipToContent
-
- All Implemented Interfaces:
Container<HTMLDivElement,SkipToContent>,Finder<HTMLDivElement>,HasElement<HTMLDivElement,SkipToContent>,HasHTMLElement<HTMLDivElement,SkipToContent>,IsElement<HTMLDivElement>,TypedBuilder<HTMLDivElement,SkipToContent>,Component,WithText<HTMLDivElement,SkipToContent>
public class SkipToContent extends BaseComponent<HTMLDivElement,SkipToContent> implements WithText<HTMLDivElement,SkipToContent>
A skip to content component allows screen reader and keyboard users to bypass navigation rather than tabbing through it.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SkipToContentskipToContent(String mainId)Creates a new component with the given main ID and a default text.static SkipToContentskipToContent(String mainId, String text)Creates a new component with the given main ID and a text.Stringtext()SkipToContenttext(String text)SkipToContentthat()-
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
-
-
-
-
Method Detail
-
skipToContent
public static SkipToContent skipToContent(String mainId)
Creates a new component with the given main ID and a default text.
-
skipToContent
public static SkipToContent skipToContent(String mainId, String text)
Creates a new component with the given main ID and a text.
-
text
public SkipToContent text(String text)
- Specified by:
textin interfaceWithText<HTMLDivElement,SkipToContent>
-
that
public SkipToContent that()
- Specified by:
thatin interfaceTypedBuilder<HTMLDivElement,SkipToContent>
-
text
public String text()
- Specified by:
textin interfaceWithText<HTMLDivElement,SkipToContent>
-
-