Interface FormLayoutNode

All Known Subinterfaces:
FormContainer, FormModal, FormRow

public interface FormLayoutNode
The common interface of the Forms 2.0 layout nodes: FormRow, FormContainer and FormModal. A node is created from a FormLayout (via FormLayout.createRow(String), FormLayout.createContainer(String) or FormLayout.createModal(String)) and populated by attaching further nodes or built inputs with addChild(FormLayoutNode)/addChild(ContextParameter). Each concrete node type overrides both methods to return its own type, so calls can be chained fluently.
Since:
17.0 - Paloma
See Also:
  • Method Details

    • addChild

      FormLayoutNode addChild(FormLayoutNode child)
      Attaches child (another row, container or modal) to this node.
      Parameters:
      child - the layout node to attach
      Returns:
      this node, so that calls can be chained
      Since:
      17.0 - Paloma
    • addChild

      Attaches a built input directly to this node, without wrapping it in a further row, container or modal.
      Parameters:
      child - the input to attach, typically built with a create...Entry(...).buildFormInput() call
      Returns:
      this node, so that calls can be chained
      Since:
      17.0 - Paloma