Interface IControlCollection
Common members of form control collections
-
Method Summary
Modifier and TypeMethodDescriptionaddButton(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.voidclear()Removes all controls from aIControlCollection.get(int index) Gets control by index.Gets control by name.intgetCount()Gets the count of controls.intGets 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
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.- Parameters:
control- The control to find.- Returns:
- If found, returns the index of control. Otherwise, returns -1.
-
clear
void clear()Removes all controls from aIControlCollection.
-