Class 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:

    1. Edit: Visible in the read-only state. Switches to the editing state
    2. Reset: Visible in the read-only state. Resets the form's model. If a Form.PrepareReset callback is defined, the callback is called. Otherwise Form.reset() is called.
    3. Remove: Visible in the read-only state. Removes the form's model. If a Form.PrepareRemove callback is defined, the callback is called, otherwise Form.remove() is called.
    4. Help: Visible in the read-only and the editing states. Provides access to the help texts.
    • Method Detail

      • element

        public elemental2.dom.HTMLElement element()
        Specified by:
        element in interface org.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)