Interface IControlCollection

All Superinterfaces:
Iterable<IControl>

public interface IControlCollection extends Iterable<IControl>
表单控件集合的常见成员
  • Method Summary

    Modifier and Type
    Method
    Description
    addButton(double left, double top, double width, double height)
    添加一个新的 IButton。
    addCheckBox(double left, double top, double width, double height)
    添加一个新的 ICheckBox。
    addDropDown(double left, double top, double width, double height)
    添加一个新的 IDropDown。
    addGroupBox(double left, double top, double width, double height)
    添加一个新的 IGroupBox。
    addLabel(double left, double top, double width, double height)
    添加一个新的 ILabel。
    addListBox(double left, double top, double width, double height)
    添加一个新的 IListBox。
    addOptionButton(double left, double top, double width, double height)
    添加一个新的 IOptionButton。
    addScrollBar(double left, double top, double width, double height)
    添加一个新的 IScrollBar。
    addSpinner(double left, double top, double width, double height)
    添加一个新的 ISpinner。
    void
    从IControlCollection中移除所有控件。
    get(int index)
    获取按索引控制的控件。
    get(String name)
    获取按名称控制的控件。
    int
    获取控件数量。
    int
    indexOf(IControl control)
    获取控件的索引。

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Method Details

    • getCount

      int getCount()
      获取控件数量。
    • get

      IControl get(int index)
      获取按索引控制的控件。
    • get

      IControl get(String name)
      获取按名称控制的控件。
    • addButton

      IButton addButton(double left, double top, double width, double height)
      添加一个新的 IButton。
    • addDropDown

      IDropDown addDropDown(double left, double top, double width, double height)
      添加一个新的 IDropDown。
    • addCheckBox

      ICheckBox addCheckBox(double left, double top, double width, double height)
      添加一个新的 ICheckBox。
    • addSpinner

      ISpinner addSpinner(double left, double top, double width, double height)
      添加一个新的 ISpinner。
    • addListBox

      IListBox addListBox(double left, double top, double width, double height)
      添加一个新的 IListBox。
    • addOptionButton

      IOptionButton addOptionButton(double left, double top, double width, double height)
      添加一个新的 IOptionButton。
    • addGroupBox

      IGroupBox addGroupBox(double left, double top, double width, double height)
      添加一个新的 IGroupBox。
    • addLabel

      ILabel addLabel(double left, double top, double width, double height)
      添加一个新的 ILabel。
    • addScrollBar

      IScrollBar addScrollBar(double left, double top, double width, double height)
      添加一个新的 IScrollBar。
    • indexOf

      int indexOf(IControl control)
      获取控件的索引。
      Parameters:
      control - 要查找的控件。
      Returns:
      如果找到,返回控件的索引。否则,返回-1。
    • clear

      void clear()
      从IControlCollection中移除所有控件。