Package org.patternfly.component.button
Class Button
- All Implemented Interfaces:
ElementAttributeMethods<HTMLElement,,Button> ElementClassListMethods<HTMLElement,,Button> ElementConsumerMethods<HTMLElement,,Button> ElementContainerDelegate<HTMLElement,,Button> ElementContainerMethods<HTMLElement,,Button> ElementEventMethods<HTMLElement,,Button> ElementIdMethods<HTMLElement,,Button> ElementQueryMethods<HTMLElement>,ElementTextMethods<HTMLElement,,Button> HTMLElementAttributeMethods<HTMLElement,,Button> HTMLElementDataMethods<HTMLElement,,Button> HTMLElementStyleMethods<HTMLElement,,Button> HTMLElementVisibilityMethods<HTMLElement,,Button> IsElement<HTMLElement>,TypedBuilder<HTMLElement,,Button> Component,ComponentIcon<HTMLElement,,Button> ComponentIconAndText<HTMLElement,,Button> ComponentProgress<HTMLElement,,Button> org.patternfly.style.Modifiers.Disabled<HTMLElement,,Button> org.patternfly.style.Modifiers.Inline<HTMLElement,,Button> org.patternfly.style.Modifiers.NoPadding<HTMLElement,,Button> org.patternfly.style.Modifiers.Plain<HTMLElement,,Button> org.patternfly.style.Modifiers.Primary<HTMLElement,,Button> org.patternfly.style.Modifiers.Secondary<HTMLElement,Button>
public class Button
extends BaseComponent<HTMLElement,Button>
implements ComponentIcon<HTMLElement,Button>, ComponentIconAndText<HTMLElement,Button>, ComponentProgress<HTMLElement,Button>, org.patternfly.style.Modifiers.Disabled<HTMLElement,Button>, ElementContainerDelegate<HTMLElement,Button>, ElementTextMethods<HTMLElement,Button>, org.patternfly.style.Modifiers.Inline<HTMLElement,Button>, org.patternfly.style.Modifiers.NoPadding<HTMLElement,Button>, org.patternfly.style.Modifiers.Plain<HTMLElement,Button>, org.patternfly.style.Modifiers.Primary<HTMLElement,Button>, org.patternfly.style.Modifiers.Secondary<HTMLElement,Button>
A button is a box area or text that communicates and triggers user actions when clicked or selected. Buttons can be used to
communicate and immediately trigger actions a user can take in an application, like submitting a form, canceling a process,
or creating a new object. Buttons can also be used to take a user to a new location, like another page inside a web
application, or an external site such as help or documentation.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionblock()static Buttonbutton()static Buttonstatic ButtonCreates a button with an<a/>tag.static ButtonCreates a button with an<a/>tag.static <E extends HTMLElement>
Buttonbutton(HTMLContainerBuilder<E> builder) static Buttonbutton(org.patternfly.icon.PredefinedIcon icon) control()danger()disabled(boolean disabled) iconAndText(Element icon, String text, IconPosition position) link()small()stateful(org.patternfly.style.NotificationStatus status) tertiary()text()Changes the text of this button.that()warning()Methods inherited from class org.patternfly.component.BaseComponent
componentType, elementMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.patternfly.component.ComponentIcon
iconMethods inherited from interface org.patternfly.component.ComponentIconAndText
iconAndText, iconAndTextMethods inherited from interface org.patternfly.component.ComponentProgress
inProgress, progress, progress, progress, startProgress, stopProgress, toggleProgressMethods inherited from interface org.jboss.elemento.ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface org.jboss.elemento.ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface org.jboss.elemento.ElementConsumerMethods
apply, runMethods inherited from interface org.jboss.elemento.ElementContainerDelegate
add, add, addMethods inherited from interface org.jboss.elemento.ElementContainerMethods
add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface org.jboss.elemento.ElementEventMethods
on, on, onMethods inherited from interface org.jboss.elemento.ElementIdMethods
id, uniqueIdMethods inherited from interface org.jboss.elemento.ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface org.jboss.elemento.HTMLElementAttributeMethods
titleMethods inherited from interface org.jboss.elemento.HTMLElementDataMethods
dataMethods inherited from interface org.jboss.elemento.HTMLElementStyleMethods
style, style, style, style, style, styleMethods inherited from interface org.jboss.elemento.HTMLElementVisibilityMethods
hiddenMethods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled, isDisabledMethods inherited from interface org.patternfly.style.Modifiers.Inline
inline, inlineMethods inherited from interface org.patternfly.style.Modifiers.NoPadding
noPadding, noPaddingMethods inherited from interface org.patternfly.style.Modifiers.Plain
plain, plainMethods inherited from interface org.patternfly.style.Modifiers.Primary
primary, primaryMethods inherited from interface org.patternfly.style.Modifiers.Secondary
secondary, secondary
-
Method Details
-
button
-
button
-
button
-
button
Creates a button with an<a/>tag. -
button
Creates a button with an<a/>tag. -
button
-
containerDelegate
- Specified by:
containerDelegatein interfaceElementContainerDelegate<HTMLElement,Button>
-
addBadge
-
add
-
icon
- Specified by:
iconin interfaceComponentIcon<HTMLElement,Button>
-
removeIcon
- Specified by:
removeIconin interfaceComponentIcon<HTMLElement,Button>
-
iconAndText
- Specified by:
iconAndTextin interfaceComponentIconAndText<HTMLElement,Button>
-
text
Changes the text of this button.- Specified by:
textin interfaceElementTextMethods<HTMLElement,Button>
-
href
-
target
-
danger
-
tertiary
-
warning
-
small
-
link
-
control
-
stateful
-
block
-
callToAction
-
disabled
- Specified by:
disabledin interfaceorg.patternfly.style.Modifiers.Disabled<HTMLElement,Button>
-
progress
- Specified by:
progressin interfaceComponentProgress<HTMLElement,Button>
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,Button>
-
onClick
-
text
- Specified by:
textin interfaceElementTextMethods<HTMLElement,Button>
-