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

Value Element

Group membership: Property & method calls

Declares a value that will be passed to an enclosing property, methodCall or parameter element.

The value may be any primitive type, but also includes java.lang.String since this is a very often used type.

Attributes

Name Type Required Description
data CDATA Yes

The actual value that must be passed as parameter. The contents of this attribute must match the type declaration. This means no characters in a numerical value, etc.

type CDATA Yes

Determines the type of value to store on the JGB stack. All of the primitive types are present, as well as a string object.

Literal values

Value Description
boolean

Declares a boolean value. The accepted values are true and false.

byte

Declares a byte value.

char

Declares a char value.

double

Declares a double value.

float

Declares a float value.

int

Declares a int value.

long

Declares a long value.

short

Declares a short value.

string

Declares a string value.

Example usage

…
<property name="title">
    <value type="string" data="Java Gui Builder, r102"/>
</property>
<property name="height">
    <value type="int" data="240"/>
</property>
<property name="visible">
    <value type="boolean" data="true"/>
</property>
…
        

Parent element(s)

constraints, parameter, property, sheet.

Child element(s)

None
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 |