Files
Brainstorm/Foundation Widget Test Application/src/test/remote/view/ComboPageView.vml
2014-05-30 10:31:51 -07:00

93 lines
5.0 KiB
XML

<?xml version="1.0"?>
<!--
Copyright (c) 2009,2008 Declarative Engineering LLC.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Declarative Engineering LLC
verson 1 which accompanies this distribution, and is available at
http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
-->
<vml>
<metadata>
<platform name="thin:swt"/>
</metadata>
<panel name="ComboPageView" style="" container-title="Combo">
<grid-layout column-count="2" equal-width-columns="true" margin-width="5" margin-height="5"/>
<value-holder name="controllerHolder" type="test.remote.view.controller.ComboPageViewController"/>
<panel name="column1Panel">
<grid-layout column-count="1" margin-width="0" margin-height="0"/>
<grid-layout-data horizontal-fill="true" vertical-fill="true" vertical-alignment="beginning"/>
<label name="projectComboLabel" style="" text="Projects:"/>
<combo name="projectCombo" style="border | read only" auto-synchronize-selection="true" tab-order="1">
<association function="collection" attribute="projects" value-holder="controllerHolder"/>
<association function="selection" attribute="selectedProject" value-holder="controllerHolder"/>
<association function="item-text" attribute="name" row-type="test.model.Project"/>
<hidden-color data="#FFFF00">
<association function="data" getter="getObjectColor" getter-signature="Ljava.lang.Object;" row-type="java.lang.Object" value-holder="controllerHolder"/>
<link function="selection" component="projectComboLabel" target="background-color"/>
</hidden-color>
</combo>
<label name="contactComboLabel" style="" text="Contacts:"/>
<combo name="contactCombo" style="border | read only" auto-synchronize-selection="true" tab-order="1">
<association-group function="collection" value-holder="controllerHolder">
<association-link attribute="selectedProject" row-type="test.remote.view.controller.ComboPageViewController">
<association-target-attribute attribute="contacts" row-type="test.model.Project"/>
</association-link>
</association-group>
<association function="selection" attribute="selectedContact" value-holder="controllerHolder"/>
<association function="item-text" attribute="name" row-type="test.model.Contact"/>
<hidden-color data="#FFFF00">
<association function="data" getter="getObjectColor" getter-signature="Ljava.lang.Object;" row-type="java.lang.Object" value-holder="controllerHolder"/>
<link function="selection" component="contactComboLabel" target="background-color"/>
</hidden-color>
</combo>
<label name="addressComboLabel" style="" text="Contacts:"/>
<combo name="addressCombo" style="border | read only" auto-synchronize-selection="true" tab-order="1">
<association-group function="collection" value-holder="controllerHolder">
<association-link attribute="selectedContact" row-type="test.remote.view.controller.ComboPageViewController">
<association-target-attribute attribute="addresses" row-type="test.model.Contact"/>
</association-link>
</association-group>
<association function="selection" attribute="selectedAddress" value-holder="controllerHolder"/>
<association function="item-text" attribute="name" row-type="test.model.Address"/>
<hidden-color data="#FFFF00">
<association function="data" getter="getObjectColor" getter-signature="Ljava.lang.Object;" row-type="java.lang.Object" value-holder="controllerHolder"/>
<link function="selection" component="addressComboLabel" target="background-color"/>
</hidden-color>
</combo>
</panel>
<panel name="column2Panel">
<grid-layout column-count="1" margin-width="0" margin-height="0"/>
<grid-layout-data horizontal-fill="true" vertical-alignment="beginning" vertical-fill="true"/>
<label name="projectNoteComboLabel" style="" text="Project Note:"/>
<combo name="projectNoteCombo" style="border" auto-synchronize-selection="true" tab-order="1">
<association-group function="collection" value-holder="controllerHolder">
<association-link attribute="selectedProject" row-type="test.remote.view.controller.ComboPageViewController">
<association-target-attribute attribute="recentNotes" row-type="test.model.Project"/>
</association-link>
</association-group>
<association-group function="selection" value-holder="controllerHolder">
<association-link attribute="selectedProject" row-type="test.remote.view.controller.ComboPageViewController">
<association-target-attribute attribute="note" row-type="test.model.Project"/>
</association-link>
</association-group>
</combo>
</panel>
<panel-viewer name="innerView" style="border" is-visible="false" tab-order="1">
<fill-layout/>
<grid-layout-data horizontal-span="2" horizontal-alignment="fill" horizontal-fill="true"/>
<association function="is-visible" attribute="editor" value-holder="controllerHolder"/>
<association function="controller" attribute="editor" value-holder="controllerHolder"/>
</panel-viewer>
</panel>
</vml>