Package org.patternfly.component.form
Class FormGroup
java.lang.Object
org.patternfly.component.SubComponent<HTMLElement,FormGroup>
org.patternfly.component.form.FormGroup
- All Implemented Interfaces:
ElementAttributeMethods<HTMLElement,,FormGroup> ElementClassListMethods<HTMLElement,,FormGroup> ElementConsumerMethods<HTMLElement,,FormGroup> ElementContainerMethods<HTMLElement,,FormGroup> ElementEventMethods<HTMLElement,,FormGroup> ElementIdMethods<HTMLElement,,FormGroup> ElementQueryMethods<HTMLElement>,HTMLElementAttributeMethods<HTMLElement,,FormGroup> HTMLElementDataMethods<HTMLElement,,FormGroup> HTMLElementStyleMethods<HTMLElement,,FormGroup> HTMLElementVisibilityMethods<HTMLElement,,FormGroup> IsElement<HTMLElement>,TypedBuilder<HTMLElement,,FormGroup> HasIdentifier<HTMLElement,,FormGroup> org.patternfly.core.ComponentContext<HTMLElement,FormGroup>
public class FormGroup
extends SubComponent<HTMLElement,FormGroup>
implements HasIdentifier<HTMLElement,FormGroup>, org.patternfly.core.ComponentContext<HTMLElement,FormGroup>
-
Method Summary
Modifier and TypeMethodDescriptionaddControl(FormGroupControl control) addLabel(FormGroupLabel label) static FormGroupstatic FormGroup<T> Tbooleanrequired()required(boolean required) role(FormGroupRole role) Sets the role of the form group.<T> FormGroupthat()Methods inherited from class org.patternfly.component.SubComponent
elementMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.patternfly.core.ComponentContext
get, getMethods 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.ElementContainerMethods
add, add, add, 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
hidden
-
Method Details
-
formGroup
-
formGroup
-
addLabel
-
addControl
-
required
-
required
-
role
Sets the role of the form group. Pass inFormGroupRole.radiogroupwhen the form group contains multiple radio inputs, or pass inFormGroupRole.groupwhen the form group contains multiple of any other input type (e.g. checkboxes).Please note that if you set a role, the internal structure of the
FormGroupLabelchanges. Without a role the label contains a<label>element. With a role the<label>element is replaced by a<span>element. In this case it is expected that theFormGroupControlcontains label elements. -
store
- Specified by:
storein interfaceorg.patternfly.core.ComponentContext<HTMLElement,FormGroup>
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,FormGroup>
-
identifier
- Specified by:
identifierin interfaceHasIdentifier<HTMLElement,FormGroup>
-
has
- Specified by:
hasin interfaceorg.patternfly.core.ComponentContext<HTMLElement,FormGroup>
-
get
- Specified by:
getin interfaceorg.patternfly.core.ComponentContext<HTMLElement,FormGroup>
-