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

Constant Element

Group membership: Property & method calls

Puts a constant on the stack ready for consumption by a methodCall, property or return element. The constant's value will be put on the JGB stack, and not the constant's name.

Attributes

Name Type Required Description
name CDATA Yes

Must resolve to a fully qualified class name, followed by a period, and the name of a public, static and final field in the class.

The class name will be resolved using the standard classpath. So, the class must be resolvable from the thread that is building the window.

Example usage

…
<property name="backgroundColor">
    <constant name="java.awt.Color.BLUE"/>
</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 |