Package org.jboss.hal.ballroom.form
Class FormLinks<T>
- java.lang.Object
-
- org.jboss.hal.ballroom.form.FormLinks<T>
-
- All Implemented Interfaces:
org.jboss.elemento.IsElement
public class FormLinks<T> extends Object implements org.jboss.elemento.IsElement
Links for commons form operations placed above the actual form. Depending on the state links are displayed or hidden.The following links are part of this element:
- Edit: Visible in the read-only state. Switches to the editing state
- Reset: Visible in the read-only state. Resets the form's model. If a
Form.PrepareResetcallback is defined, the callback is called. OtherwiseForm.reset()is called. - Remove: Visible in the read-only state. Removes the form's model. If a
Form.PrepareRemovecallback is defined, the callback is called, otherwiseForm.remove()is called. - Help: Visible in the read-only and the editing states. Provides access to the help texts.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description elemental2.dom.HTMLElementelement()voidsetVisible(boolean edit, boolean reset, boolean remove, boolean help)voidsetVisible(Form.Operation operation, boolean visible)
-
-
-
Method Detail
-
element
public elemental2.dom.HTMLElement element()
- Specified by:
elementin interfaceorg.jboss.elemento.IsElement<T>
-
setVisible
public void setVisible(boolean edit, boolean reset, boolean remove, boolean help)
-
setVisible
public void setVisible(Form.Operation operation, boolean visible)
-
-