[]
        
(Showing Draft Content)

IControlCollection

Interface IControlCollection

All Superinterfaces:
Iterable<IControl>

public interface IControlCollection extends Iterable<IControl>
Common members of form control collections
  • Method Summary

    Modifier and Type
    Method
    Description
    addButton(double left, double top, double width, double height)
    Adds a new IButton.
    addCheckBox(double left, double top, double width, double height)
    Adds a new ICheckBox.
    addDropDown(double left, double top, double width, double height)
    Adds a new IDropDown.
    addGroupBox(double left, double top, double width, double height)
    Adds a new IGroupBox.
    addLabel(double left, double top, double width, double height)
    Adds a new ILabel.
    addListBox(double left, double top, double width, double height)
    Adds a new IListBox.
    addOptionButton(double left, double top, double width, double height)
    Adds a new IOptionButton.
    addScrollBar(double left, double top, double width, double height)
    Adds a new IScrollBar.
    addSpinner(double left, double top, double width, double height)
    Adds a new ISpinner.
    void
    Removes all controls from a IControlCollection.
    get(int index)
    Gets control by index.
    get(String name)
    Gets control by name.
    int
    Gets the count of controls.
    int
    indexOf(IControl control)
    Gets index of a control.

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Method Details

    • getCount

      int getCount()
      Gets the count of controls.
    • get

      IControl get(int index)
      Gets control by index.
    • get

      IControl get(String name)
      Gets control by name.
    • addButton

      IButton addButton(double left, double top, double width, double height)
      Adds a new IButton.
    • addDropDown

      IDropDown addDropDown(double left, double top, double width, double height)
      Adds a new IDropDown.
    • addCheckBox

      ICheckBox addCheckBox(double left, double top, double width, double height)
      Adds a new ICheckBox.
    • addSpinner

      ISpinner addSpinner(double left, double top, double width, double height)
      Adds a new ISpinner.
    • addListBox

      IListBox addListBox(double left, double top, double width, double height)
      Adds a new IListBox.
    • addOptionButton

      IOptionButton addOptionButton(double left, double top, double width, double height)
      Adds a new IOptionButton.
    • addGroupBox

      IGroupBox addGroupBox(double left, double top, double width, double height)
      Adds a new IGroupBox.
    • addLabel

      ILabel addLabel(double left, double top, double width, double height)
      Adds a new ILabel.
    • addScrollBar

      IScrollBar addScrollBar(double left, double top, double width, double height)
      Adds a new IScrollBar.
    • indexOf

      int indexOf(IControl control)
      Gets index of a control.
      Parameters:
      control - The control to find.
      Returns:
      If found, returns the index of control. Otherwise, returns -1.
    • clear

      void clear()
      Removes all controls from a IControlCollection.