Class ListBoxControlImpl

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

public class ListBoxControlImpl extends AbstractFormControlAdv
List box form control implementation.
Since:
7.0.0
See Also:
  • Constructor Details

    • ListBoxControlImpl

      public ListBoxControlImpl(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
    • 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