Java Gui Builder
You are here: Home   >   Documentation   >   JGB Elements Documentation   >   Control Element
JGB Element Navigation
tab
ref

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.

Attributes

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.

Example usage

…
<label id="controlLabel"/>
<control id="customListBox" class="com.mycompany.gui.CustomListBox"
            reflabel="controlLabel">
    …
</control>
…
        

Parent element(s)

controls, control, panel, tab.

Child element(s)

border, button, check, combo, constraints, control, glue, label, layout, list, methodCall, panel, property, radio, register, sheet, strut, table, textfield.
Back to top
SourceForge Logo
Hosted on SourceForge.net
Valid XHTML 1.0!
Valid XHTML 1.0 !
Valid CSS!
Valid CSS !
Code Coverage by Clover
Code Coverage provided by Clover
 |  Home |  License |  Downloads |  Documentation |  Developers |  Mailing Lists |  Dependencies |  Links |  Privacy Policy |  SF Project Home |