Java Gui Builder |
|
You are here: | Home > Documentation > JGB Elements Documentation > Control Element |
Group membership: Controls
The mother of all controls. This element adds a new control to the parent container, using the currently defined constraints.
When JGB encounters this element, it will add the newly instantiated control to the parent element. JGB will try to find a method like add(Component, Object) in the parent objects. This method is defined in the Container class.
Name | Type | Required | Description |
---|---|---|---|
class | CDATA | No |
A fully qualified class name that extends Component. This class must have a public, no-arg constructor for it to be instantiated. |
id | ID | No |
Identifies the name by which this control will be referenced by other parts of the JGB XML file or Java code. |
refaction | IDREF | No |
More information forthcoming |
reflabel | IDREF | No |
Identifies a control that prompts this one. |
… <label id="controlLabel"/> <control id="customListBox" class="com.mycompany.gui.CustomListBox" reflabel="controlLabel"> … </control> …
Hosted on SourceForge.net |
Valid XHTML 1.0 ! |
Valid CSS ! |
Code Coverage provided by Clover |