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>, Modifiers.Disabled<HTMLElement, Button>, Modifiers.Inline<HTMLElement, Button>, Modifiers.NoPadding<HTMLElement, Button>, Modifiers.Plain<HTMLElement, Button>, Modifiers.Primary<HTMLElement, Button>, Modifiers.Secondary<HTMLElement, Button>
public class Button
extends BaseComponent<HTMLElement, Button>
implements ComponentIcon<HTMLElement, Button>, ComponentIconAndText<HTMLElement, Button>, ComponentProgress<HTMLElement, Button>, Modifiers.Disabled<HTMLElement, Button>, ElementContainerDelegate<HTMLElement, Button>, ElementTextMethods<HTMLElement, Button>, Modifiers.Inline<HTMLElement, Button>, Modifiers.NoPadding<HTMLElement, Button>, Modifiers.Plain<HTMLElement, Button>, Modifiers.Primary<HTMLElement, Button>, 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(PredefinedIcon icon) static Buttonbutton(PredefinedIcon icon, String href) Creates a button with an<a/>tag.static Buttonbutton(PredefinedIcon icon, String href, String target) Creates a button with an<a/>tag.control()danger()disabled(boolean disabled) Adds/removes modifier(disabled)iconAndText(Element icon, String text, IconPosition position) link()onClick(ComponentHandler<Button> actionHandler) small()stateful(NotificationStatus status) tertiary()text()Changes the text of this button.that()warning()Methods inherited from class BaseComponent
componentType, element, 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 Modifiers.Disabled
disabled, isDisabledMethods inherited from interface Modifiers.Inline
inline, inlineMethods inherited from interface Modifiers.NoPadding
noPadding, noPaddingMethods inherited from interface Modifiers.Plain
plain, plainMethods inherited from interface Modifiers.Primary
primary, primaryMethods inherited from interface Modifiers.Secondary
secondary, secondary
-
Method Details
-
button
-
button
-
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
Description copied from interface:Modifiers.DisabledAdds/removes modifier(disabled)- Specified by:
disabledin interfaceModifiers.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
-