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.core.OuiaSupport<HTMLElement, Button>, org.patternfly.style.Modifiers.Circle<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 org.patternfly.style.Modifiers.Circle<HTMLElement, Button>, 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 TypeMethodDescriptionariaDisabled(boolean disabled) ariaExpanded(boolean expanded) block()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) static ButtonCreates a button with an<a/>tag.static ButtonCreates a button with an<a/>tag.clicked()control()danger()disabled(boolean disabled) favorite()favorited(boolean favorited) iconAndText(Element icon, String text, IconPosition position) link()settings()small()stateful(org.patternfly.style.NotificationStatus status) tertiary()text()Changes the text of this button.that()warning()Methods inherited from class BaseComponent
componentType, element, ouiaComponentType, registerComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ComponentIcon
iconMethods inherited from interface ComponentIconAndText
iconAndText, iconAndTextMethods inherited from interface ComponentProgress
inProgress, progress, progress, progress, startProgress, stopProgress, toggleProgressMethods inherited from interface ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface ElementConsumerMethods
apply, runMethods inherited from interface ElementContainerDelegate
add, add, addMethods inherited from interface ElementContainerMethods
add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface ElementEventMethods
on, on, onMethods inherited from interface ElementIdMethods
id, uniqueIdMethods inherited from interface ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface HTMLElementVisibilityMethods
hiddenMethods inherited from interface org.patternfly.style.Modifiers.Circle
circle, circleMethods 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, secondaryMethods inherited from interface org.patternfly.core.OuiaSupport
initOuia, initOuia, ouiaId, ouiaSafe, ouiaTransition
-
Method Details
-
button
-
button
-
button
-
button
-
button
-
button
-
button
-
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
-
settings
-
hamburger
-
favorite
-
favorited
-
block
-
clicked
-
callToAction
-
ariaDisabled
-
ariaDisabled
-
ariaExpanded
-
ariaLabel
-
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>
-
textElement
-