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

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.

Attributes

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.

Example usage

<object id="tableModel" class="javax.swing.DefaultTableModel">
    <constructor>
        <parameter>
            <value type="int" data="4"/>
        </parameter>
        <parameter>
            <value type="int" data="20"/>
        </parameter>
    </constructor>
</object>
        

Parent element(s)

window.

Child element(s)

constructor, methodCall, property, register.
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 |