39 lines
3.0 KiB
Plaintext
39 lines
3.0 KiB
Plaintext
|
|
<type name="menu-dynamic" extends="abstract" inherit-styles="true">
|
||
|
|
<builder jar="menu-dynamic.jar">
|
||
|
|
<thin-swt class="com.foundation.tcv.swt.builder.DynamicMenuBuilder"/>
|
||
|
|
<thick-swt class="com.foundation.view.swt.builder.DynamicMenuBuilder"/>
|
||
|
|
</builder>
|
||
|
|
|
||
|
|
<!-- Used exclusively in the code generation and debugging. -->
|
||
|
|
<property name="name" type="String" required="false" allow-resource="false"/>
|
||
|
|
<!-- Given an input value, generates a collection of values that are used as input to the dynamic-abstract-menu's defined in this control. -->
|
||
|
|
<association function="collection" association-type="single" unique-row-type="true" getter="required" setter="none" data-type="java.lang.Object" allow-resource="false"/>
|
||
|
|
<!-- The 'components' that are used to generate menus given values from the collection's. -->
|
||
|
|
<component type="dynamic-abstract-menu" required="false" mulitple="true"/>
|
||
|
|
|
||
|
|
<type name="dynamic-abstract-menu" abstract="true">
|
||
|
|
<!-- The class defines the type of object that the menu applies to. -->
|
||
|
|
<property name="class" type="string" required="true" allow-resource="false"/>
|
||
|
|
|
||
|
|
<association function="text" association-type="multi" unique-row-type="true" getter="required" setter="none" data-type="java.lang.String" allow-resource="true"/>
|
||
|
|
<association function="image" association-type="multi" unique-row-type="true" getter="required" setter="none" data-type="com.foundation.view.JefImage" allow-resource="true"/>
|
||
|
|
<association function="is-visible" association-type="multi" unique-row-type="true" getter="required" setter="none" data-type="java.lang.Boolean" allow-resource="false"/>
|
||
|
|
<association function="is-enabled" association-type="multi" unique-row-type="true" getter="required" setter="none" data-type="java.lang.Boolean" allow-resource="false"/>
|
||
|
|
</type>
|
||
|
|
<type name="dynamic-cascade-menu" extends="dynamic-abstract-menu">
|
||
|
|
<association function="collection" association-type="multi" unique-row-type="true" getter="required" setter="none" data-type="java.lang.Object" allow-resource="false"/>
|
||
|
|
</type>
|
||
|
|
<type name="dynamic-push-menu" extends="dynamic-abstract-menu">
|
||
|
|
<!-- Whether the selection method is called synchronously (in other words the thread waits for a response before returning control to the user). -->
|
||
|
|
<property name="synchronous-selection" type="boolean" required="false" default="false" allow-resource="false"/>
|
||
|
|
<!-- The method called when the menu is selected. This should be on the controller and it should take a single java.lang.Object parameter which would be the value that the menu represents. -->
|
||
|
|
<method function="selection" required="false" multiple="false" requires-value-holder="true"/>
|
||
|
|
</type>
|
||
|
|
<type name="dynamic-toggle-menu" extends="dynamic-abstract-menu" abstract="true">
|
||
|
|
<association function="selection" association-type="multi" unique-row-type="true" getter="required" setter="required" data-type="java.lang.Boolean" allow-resource="false"/>
|
||
|
|
</type>
|
||
|
|
<type name="dynamic-check-menu" extends="dynamic-toggle-menu">
|
||
|
|
</type>
|
||
|
|
<type name="dynamic-radio-menu" extends="dynamic-toggle-menu">
|
||
|
|
</type>
|
||
|
|
</type>
|