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

Tab Element

Group membership: Controls

Declares that a tab should be added to the enclosing sheet.

Attributes

Name Type Required Description
alignment CDATA No

Will try to set the alignment property on the layout manager. If the layout manager does not have a proper method, a parsing exception will be thrown.

Literal values

Value Description
center

Centers controls in the container.

left

Aligns controls on the left side of the container.

right

Aligns controls on the right side of the container.

columns CDATA No

Will try to set the columns property on the layout manager. If the layout manager does not have a proper method, a parsing exception will be thrown.

hgap CDATA No

Will try to set the hgap property on the layout manager. If the layout manager does not have a proper method, a parsing exception will be thrown.

id ID No

Identifies the name by which this control will be referenced by other parts of the JGB XML file or Java code.

layout CDATA No

A fully qualified class name that declares which class to instantiate and add as a layout manager.

As a shortcut, it is possible to not prefix the full package information in the attribute's value. If the class cannot be found using the fully qualified class name, JGB will prefix java.awt. to the attribute value and try again.

mnemonic CDATA No

Identifies the character that will be used as this control's mnemonic.

refaction IDREF No

More information forthcoming

rows CDATA No

Will try to set the rows property on the layout manager. If the layout manager does not have a proper method, a parsing exception will be thrown.

text CDATA Yes

Specifies the text that will appear on the control.

Do not add an underline (_) or ampersand (&) to the text attribute to identify the mnemonic. Use this element's mnemonic attribute for that purpose.

vgap CDATA No

Will try to set the vgap property on the layout manager. If the layout manager does not have a proper method, a parsing exception will be thrown.

Example usage

…
<sheet>
    <tab text="Basic" layout="GridLayout" columns="3">
        …
    </tab>
    <tab text="Advanced" mnemonic="d">
        …
    </tab>
</sheet>
…
        

Parent element(s)

sheet.

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 |