Package org.patternfly.component.form
Class FormGroup
- java.lang.Object
-
- org.patternfly.component.SubComponent<E,B>
-
- org.patternfly.component.form.FormGroup
-
- All Implemented Interfaces:
Attachable,Container<HTMLElement,FormGroup>,Finder<HTMLElement>,HasElement<HTMLElement,FormGroup>,HasHTMLElement<HTMLElement,FormGroup>,IsElement<HTMLElement>,TypedBuilder<HTMLElement,FormGroup>
public class FormGroup extends SubComponent<E,B> implements Attachable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FormGroupaddControl(FormGroupControl control)FormGroupaddLabel(FormGroupLabel label)voidattach(MutationRecord mutationRecord)FormGroupfieldId(String id)static FormGroupformGroup()FormGrouprequired()FormGrouprole(FormGroupRole role)Sets the role of the form group.FormGroupthat()-
Methods inherited from class org.patternfly.component.SubComponent
element
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.elemento.Attachable
detach
-
Methods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAll
-
-
-
-
Method Detail
-
formGroup
public static FormGroup formGroup()
-
attach
public void attach(MutationRecord mutationRecord)
- Specified by:
attachin interfaceAttachable
-
addLabel
public FormGroup addLabel(FormGroupLabel label)
-
addControl
public FormGroup addControl(FormGroupControl control)
-
required
public FormGroup required()
-
role
public FormGroup role(FormGroupRole 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.
-
that
public FormGroup that()
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,FormGroup>
-
-