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
AControlfor 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AddRootControl(List<RootOption> options)Creates a new add record entry control.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRow()Adds the root value at the current index, if possible.intgetIndex()Gets the currently selected index of the root option to add.List<RootOption>getOptions()Gets the available options for adding a new root entry.voidsetIndex(int index)Sets the currently selected index of the root option to add.
-
-
-
Constructor Detail
-
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 Detail
-
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.
-
-