Package io.keikai.model.impl
Class ListBoxControlImpl
java.lang.Object
io.keikai.model.impl.AbstractFormControlAdv
io.keikai.model.impl.ListBoxControlImpl
- All Implemented Interfaces:
SFormControl,Serializable
List box 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 TypeMethodDescriptionint[]Returns the 0-based indices of selected items.getType()Returns the type of this form control.booleanReturns whether this list box allows multiple selections.voidsetMultiSelect(boolean multiSelect) Sets whether this list box allows multiple selections.voidsetSelectedIndices(int[] selectedIndices) Sets the selected item indices (0-based).Methods inherited from class io.keikai.model.impl.AbstractFormControlAdv
getAnchor, getLinkedCell, getListFillRange, getName, isEnabled, isVisible, setEnabled, setLinkedCell, setListFillRange, setVisible
-
Constructor Details
-
ListBoxControlImpl
-
-
Method Details
-
getType
Description copied from interface:SFormControlReturns the type of this form control.- Returns:
- the control type
-
getSelectedIndices
public int[] getSelectedIndices()Returns the 0-based indices of selected items.- Returns:
- a copy of the selected indices array
-
setSelectedIndices
public void setSelectedIndices(int[] selectedIndices) Sets the selected item indices (0-based).- Parameters:
selectedIndices- the indices to select
-
isMultiSelect
public boolean isMultiSelect()Returns whether this list box allows multiple selections.- Returns:
- true if multi-select is enabled
-
setMultiSelect
public void setMultiSelect(boolean multiSelect) Sets whether this list box allows multiple selections.- Parameters:
multiSelect- true to enable multi-select
-