4.5 XMA CompProperty

A XMA CompProperty represents properties of an XMA Component and could be used through getter and setter methods. To change component properties the following dialogs are available:

component properties dialog

Figure 4.64. component properties dialog


This Dialog gives an overview about existing component properties. To insert / edit / delete the corresponding property you have to select the property and push the correspondend button. If you change or insert a new property the following dialog appears:

component property editor

Figure 4.65. component property editor


In an XMA Component Property you may change the following information:

PropertyTypeDescriptionEditable
DefaultValueStringContain an initial value of this property.X
DescriptionStringDescription of the property.X
DirectionSelectionList

Specifies the possible directions of the Property: Values: IN OUT IN_OUT, INTERNAL

X
NameStringName of the PropertyX
TypeSelectionListJava type of the property.X
BoundbooleanIf true, listeners will be informed on everey change event.X
MandatorybooleanIf true, this Property has to be set.X

Table 4.8. XMa Component Property Properties


The values of the direction property have the follwing meanings:

  • IN: input property. The generated setter is public, the getter is protected.

  • OUT: output property. The generated setter is protected, the getter is public.

  • IN_OUT: The property is input and output. The generated getter and setter are both public.

  • INTERNAL: The property is used only inside the component itself. It is not part of the component interface.The generated getter and setter are both protected.

The values of all properties are automatically replicated between client and server.

Learn more about CompProperty in Chapter Implementing a Component(Component Properties) and Calling a Component(String Representations of Properties).

A XMA CompProperty is only workable in the Outline View and at this time uses the Property View to edit its Properties. In the PreView the CompProperty is not shown.