Files
Brainstorm/Foundation Builder/controls/tool-item.cml
2014-05-30 10:31:51 -07:00

35 lines
2.5 KiB
Plaintext

<!-- Warning: SWT exhibits odd layout behavior when the tool items have a mix of text and images. Text is always placed below images, but one item with text and another with an image will cause the layout to get funky. -->
<type name="tool-item" extends="tool-item-abstract" inherit-styles="true">
<builder jar="tool-item.jar">
<thin-swt class="com.foundation.tcv.swt.builder.ToolItemBuilder"/>
<thick-swt class="com.foundation.view.swt.builder.ToolItemBuilder"/>
</builder>
<style name="push" required="true"/>
<property name="text" type="string" required="false" allow-resource="true"/>
<property name="image" type="image" required="false" allow-resource="true"/>
<property name="disabled-image" type="image" required="false" allow-resource="true"/>
<property name="rollover-image" type="image" required="false" allow-resource="true"/>
<property name="tool-tip-text" type="string" required="false" allow-resource="true"/>
<property name="is-enabled" type="boolean" required="false" allow-resource="true"/>
<association function="text" association-type="single" unique-row-type="true" getter="required" setter="none" data-type="java.lang.String"/>
<association function="image" association-type="single" unique-row-type="true" getter="required" setter="none" data-type="com.foundation.view.JefImage"/>
<association function="disabled-image" association-type="single" unique-row-type="true" getter="required" setter="none" data-type="com.foundation.view.JefImage"/>
<association function="rollover-image" association-type="single" unique-row-type="true" getter="required" setter="none" data-type="com.foundation.view.JefImage"/>
<association function="tool-tip-text" association-type="single" unique-row-type="true" getter="required" setter="none" data-type="java.lang.String"/>
<association function="is-enabled" association-type="single" unique-row-type="true" getter="required" setter="none" data-type="java.lang.Boolean"/>
<method function="selection" required="false" multiple="false" requires-value-holder="true"/>
<link-source function="selection" data-type=""/>
<link-target function="selection" data-type=""/>
<link-target function="text" data-type="java.lang.String"/>
<link-target function="image" data-type="com.foundation.view.JefImage"/>
<link-target function="disabled-image" data-type="com.foundation.view.JefImage"/>
<link-target function="rollover-image" data-type="com.foundation.view.JefImage"/>
<link-target function="tool-tip-text" data-type="java.lang.String"/>
<link-target function="is-enabled" data-type="java.lang.Boolean"/>
</type>