Class AddRootControl

java.lang.Object
de.xima.fc.gui.model.value_descriptor_form.Control
de.xima.fc.gui.model.value_descriptor_form.AddRootControl
All Implemented Interfaces:
Serializable

public final class AddRootControl extends Control
A Control for adding a new entry to a record value. Records specify the keys they allow. Required keys are always added, optional keys can be added using this control.
Since:
8.5.0
See Also:
  • Constructor Details

    • AddRootControl

      public AddRootControl(List<RootOption> options)
      Creates a new add record entry control.
      Parameters:
      options - The available options for adding a new root entry.
  • Method Details

    • addRow

      public void addRow()
      Adds the root value at the current index, if possible. Does nothing if the index is out of bounds.
    • getIndex

      public int getIndex()
      Gets the currently selected index of the root option to add.
      Returns:
      The index.
    • setIndex

      public void setIndex(int index)
      Sets the currently selected index of the root option to add.
      Parameters:
      index - The index.
    • getOptions

      public List<RootOption> getOptions()
      Gets the available options for adding a new root entry.
      Returns:
      The options.