Interface IControlCollection
表单控件集合的常见成员
-
Method Summary
Modifier and TypeMethodDescriptionaddButton(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。voidclear()从IControlCollection中移除所有控件。get(int index) 获取按索引控制的控件。获取按名称控制的控件。intgetCount()获取控件数量。int获取控件的索引。Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getCount
int getCount()获取控件数量。 -
get
获取按索引控制的控件。 -
get
获取按名称控制的控件。 -
addButton
添加一个新的IButton。 -
addDropDown
添加一个新的IDropDown。 -
addCheckBox
添加一个新的ICheckBox。 -
addSpinner
添加一个新的ISpinner。 -
addListBox
添加一个新的IListBox。 -
addOptionButton
添加一个新的IOptionButton。 -
addGroupBox
添加一个新的IGroupBox。 -
addLabel
添加一个新的ILabel。 -
addScrollBar
添加一个新的IScrollBar。 -
indexOf
获取控件的索引。- Parameters:
control- 要查找的控件。- Returns:
- 如果找到,返回控件的索引。否则,返回-1。
-
clear
void clear()从IControlCollection中移除所有控件。
-