Class ComboBoxControlImpl

java.lang.Object
io.keikai.model.impl.AbstractFormControlAdv
io.keikai.model.impl.ComboBoxControlImpl
All Implemented Interfaces:
SFormControl, Serializable

public class ComboBoxControlImpl extends AbstractFormControlAdv
Combo box (drop-down) form control implementation.
Since:
7.0.0
See Also:
  • Constructor Details

    • ComboBoxControlImpl

      public ComboBoxControlImpl(String name, ViewAnchor anchor)
  • Method Details

    • getType

      public SFormControl.ControlType getType()
      Description copied from interface: SFormControl
      Returns the type of this form control.
      Returns:
      the control type
    • getSelectedIndex

      public int getSelectedIndex()
      Returns the 0-based index of the currently selected item. -1 means no selection.
      Returns:
      the selected index
    • setSelectedIndex

      public void setSelectedIndex(int selectedIndex)
      Sets the selected item index (0-based). Use -1 for no selection.
      Parameters:
      selectedIndex - the selected index
    • getDropLines

      public int getDropLines()
      Returns the number of visible lines in the drop-down list. Default: 8.
      Returns:
      the number of drop-down lines
    • setDropLines

      public void setDropLines(int dropLines)
      Sets the number of visible lines in the drop-down list.
      Parameters:
      dropLines - the number of lines