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

Check Element

Group membership: Controls

Adds a checkbox control to the window.

Check boxes represent an on/off state. Usually, they are used for single yes/no questions.

Attributes

Name Type Required Description
id ID No

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

mnemonic CDATA No

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

refaction IDREF No

More information forthcoming

reflabel IDREF No

Identifies a control that prompts this one.

selected CDATA No

Determines if this checkbox should be checked by default.

Literal values

Value Description
false

Keeps the checkbox in its default state when the window opens.

true

Checks this checkbox when the window opens.

text CDATA No

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.

Example usage

…
<check id="insuranceCoverage"
        text="Requests insurance coverage" selected="true" mnemonic="r"/>
…
        

Parent element(s)

controls, control, panel, tab.

Child element(s)

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 |