接口 IControlCollection

所有超级接口:
Iterable<IControl>

public interface IControlCollection extends Iterable<IControl>
Common members of form control collections
  • 方法详细资料

    • 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.
      参数:
      control - The control to find.
      返回:
      If found, returns the index of control. Otherwise, returns -1.
    • clear

      void clear()
      Removes all controls from a IControlCollection.