SourceForge.net Logo

Defining a FieldGroup

The following few lines of the UI config file define a FieldGroup on Tab0 of the Inspector:

Example 4-4. FieldGroup Definition

.
<!--FieldGroup0 in Tab0-->
<org.openmdx.ui1.ElementDefinition name="org:opencrx:kernel:segmentName:ClassName:Pane:Attr:Tab:0:Group:0">
  <_object>
    <active>true</active>
    <toolTip>
      <_item>ToolTip for FieldGroup0</_item>
    </toolTip>
    <label>
      <_item>FieldGroup0</_item>
    </label>
  </_object>
  <_content/>
</org.openmdx.ui1.ElementDefinition>
.

The above code defines the following FieldGroup properties (and Figure 4-1 shows what the customized Inspector looks like):

  • the number 0 is assigned to the FieldGroup (multiple FieldGroups are ordered by ascending numbers; this number is also important when assigning attributes to a particular FieldGroup)

  • the FieldGroup is active, i.e. visible

  • the toolTip of the FieldGroup

  • and the label (i.e. name) of the FieldGroup

http://www.crixp.com/ http://www.openmdx.org/