Interface Form<F extends Form<F>>

    • Method Detail

      • addField

        default F addField​(String name,
                           Field<?> field)
      • addField

        default F addField​(Field<?> field)
      • addField

        default F addField​(String name)
      • removeField

        default F removeField​(String name)
        Removes a field with the given name.
        Parameters:
        name - the name of the field
        Returns:
        this
      • field

        default F field​(String name,
                        UnaryOperator<Field<?>> fn)
        Selects or creates a field with the given name and provides it as an argument to the function for further customization.
        Parameters:
        name - the name of the field
        fn - the customize function
        Returns:
        this
      • getField

        default Field<?> getField​(String name)
      • addExternal

        default F addExternal​(String id,
                              External<?> external)
      • addExternal

        default F addExternal​(External<?> external)
      • removeExternal

        default F removeExternal​(String id)
      • addGroup

        default F addGroup​(String id,
                           Group<?> group)
      • addGroup

        default F addGroup​(Group<?> group)
      • removeGroup

        default F removeGroup​(String id)