接口 IControlCollection
Common members of form control collections
-
方法概要
修饰符和类型方法说明addButton
(double left, double top, double width, double height) Adds a newIButton
.addCheckBox
(double left, double top, double width, double height) Adds a newICheckBox
.addDropDown
(double left, double top, double width, double height) Adds a newIDropDown
.addGroupBox
(double left, double top, double width, double height) Adds a newIGroupBox
.addLabel
(double left, double top, double width, double height) Adds a newILabel
.addListBox
(double left, double top, double width, double height) Adds a newIListBox
.addOptionButton
(double left, double top, double width, double height) Adds a newIOptionButton
.addScrollBar
(double left, double top, double width, double height) Adds a newIScrollBar
.addSpinner
(double left, double top, double width, double height) Adds a newISpinner
.void
clear()
Removes all controls from aIControlCollection
.get
(int index) Gets control by index.Gets control by name.int
getCount()
Gets the count of controls.int
Gets index of a control.从接口继承的方法 java.lang.Iterable
forEach, iterator, spliterator
-
方法详细资料
-
getCount
int getCount()Gets the count of controls. -
get
Gets control by index. -
get
Gets control by name. -
addButton
Adds a newIButton
. -
addDropDown
Adds a newIDropDown
. -
addCheckBox
Adds a newICheckBox
. -
addSpinner
Adds a newISpinner
. -
addListBox
Adds a newIListBox
. -
addOptionButton
Adds a newIOptionButton
. -
addGroupBox
Adds a newIGroupBox
. -
addLabel
Adds a newILabel
. -
addScrollBar
Adds a newIScrollBar
. -
indexOf
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 aIControlCollection
.
-