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
-
Constructor Summary
ConstructorsConstructorDescriptionAddRootControl(List<RootOption> options) Creates a new add record entry control. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRow()Adds the root value at the current index, if possible.intgetIndex()Gets the currently selected index of the root option to add.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 Details
-
AddRootControl
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
Gets the available options for adding a new root entry.- Returns:
- The options.
-