Package org.patternfly.components
Class Button
- java.lang.Object
-
- org.patternfly.components.BaseComponent<elemental2.dom.HTMLElement,Button>
-
- org.patternfly.components.Button
-
- All Implemented Interfaces:
Container<elemental2.dom.HTMLElement,Button>,Finder<elemental2.dom.HTMLElement>,HasElement<elemental2.dom.HTMLElement,Button>,HasHTMLElement<elemental2.dom.HTMLElement,Button>,IsElement<elemental2.dom.HTMLElement>,TypedBuilder<elemental2.dom.HTMLElement,Button>,Component,Aria<Button>,Modifiers.Disabled<elemental2.dom.HTMLElement,Button>
public class Button extends BaseComponent<elemental2.dom.HTMLElement,Button> implements Aria<Button>, Modifiers.Disabled<elemental2.dom.HTMLElement,Button>
PatternFly button component.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classButton.Type
-
Field Summary
-
Fields inherited from interface org.patternfly.core.Aria
current, disabled, expanded, hidden, invalid, label, labelledBy, multiSelectable, selected
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Buttonactive()Buttonblock()static Buttonbutton(elemental2.dom.HTMLElement element)static Buttonbutton(String text)static Buttonbutton(Icon icon, String text)Buttonclear()static Buttoncontrol(elemental2.dom.HTMLElement element)static Buttoncontrol(String text)static Buttoncontrol(Icon icon)static Buttoncontrol(Icon icon, String text)Buttondanger()Buttondisabled(boolean disabled)Adds/removes modifier(disabled)Buttonexpanded()Buttonfocus()static Buttonicon(String iconClass)static Buttonicon(String iconClass, String label)static Buttonicon(Icon icon)static Buttonicon(Icon icon, String label)static Buttoninline(String text)Buttonlabel(String label)static Buttonlink(elemental2.dom.HTMLElement element)static Buttonlink(elemental2.dom.HTMLElement element, String href)static Buttonlink(elemental2.dom.HTMLElement element, String href, String target)static Buttonlink(String text)static Buttonlink(String text, String href)static Buttonlink(String text, String href, String target)static Buttonlink(Icon icon, String text)static Buttonlink(Icon icon, String text, String href, String target)ButtononClick(Callback callback)static Buttonplain(String text)Buttonprimary()Buttonsecondary()Buttontertiary()Buttonthat()Buttontype(Button.Type type)-
Methods inherited from class org.patternfly.components.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, addAll, addAll, addAll, addAll, addAll
-
Methods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, css, id, id, innerHtml, on, textContent, toggle, toggle, toggle
-
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, title
-
Methods inherited from interface org.patternfly.core.Modifiers.Disabled
disabled
-
-
-
-
Method Detail
-
button
public static Button button(elemental2.dom.HTMLElement element)
-
link
public static Button link(elemental2.dom.HTMLElement element)
-
control
public static Button control(elemental2.dom.HTMLElement element)
-
that
public Button that()
- Specified by:
thatin interfaceTypedBuilder<elemental2.dom.HTMLElement,Button>
-
clear
public Button clear()
-
active
public Button active()
-
block
public Button block()
-
danger
public Button danger()
-
expanded
public Button expanded()
-
focus
public Button focus()
-
primary
public Button primary()
-
secondary
public Button secondary()
-
tertiary
public Button tertiary()
-
type
public Button type(Button.Type type)
-
disabled
public Button disabled(boolean disabled)
Description copied from interface:Modifiers.DisabledAdds/removes modifier(disabled)- Specified by:
disabledin interfaceModifiers.Disabled<elemental2.dom.HTMLElement,Button>
-
-