Java Gui Builder |
|
You are here: | Home > Documentation > JGB Elements Documentation > Object Element |
Group membership: Property & method calls
object elements describe the act of instantiating objects. Any class of object may be instantiated through the object tag. Even the layout and control tags are just extensions of the object.
One advantage that object has over control and layout is that it can be instantiated through any constructor. The control and layout elements must be instantiated through a no-arg constructor.
object elements must have a constructor child, and may also have one or more property children.
Name | Type | Required | Description |
---|---|---|---|
class | CDATA | Yes |
The fully qualified class name of object that will 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. |
<object id="tableModel" class="javax.swing.DefaultTableModel"> <constructor> <parameter> <value type="int" data="4"/> </parameter> <parameter> <value type="int" data="20"/> </parameter> </constructor> </object>
Hosted on SourceForge.net |
Valid XHTML 1.0 ! |
Valid CSS ! |
Code Coverage provided by Clover |