Package io.keikai.model.impl
Class ComboBoxControlImpl
java.lang.Object
io.keikai.model.impl.AbstractFormControlAdv
io.keikai.model.impl.ComboBoxControlImpl
- All Implemented Interfaces:
SFormControl,Serializable
Combo box (drop-down) form control implementation.
- Since:
- 7.0.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.keikai.model.SFormControl
SFormControl.ControlType -
Field Summary
Fields inherited from class io.keikai.model.impl.AbstractFormControlAdv
anchor, enabled, linkedCell, listFillRange, name, visible -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of visible lines in the drop-down list.intReturns the 0-based index of the currently selected item.getType()Returns the type of this form control.voidsetDropLines(int dropLines) Sets the number of visible lines in the drop-down list.voidsetSelectedIndex(int selectedIndex) Sets the selected item index (0-based).Methods inherited from class io.keikai.model.impl.AbstractFormControlAdv
getAnchor, getLinkedCell, getListFillRange, getName, isEnabled, isVisible, setEnabled, setLinkedCell, setListFillRange, setVisible
-
Constructor Details
-
ComboBoxControlImpl
-
-
Method Details
-
getType
Description copied from interface:SFormControlReturns 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
-