Load choice editor images through the FileBank
[potlatch2.git] / net / systemeD / potlatch2 / RelationEditorPanel.mxml
1 <?xml version="1.0" encoding="utf-8"?>
2 <mx:TitleWindow
3         xmlns:fx="http://ns.adobe.com/mxml/2009"
4         xmlns:mx="library://ns.adobe.com/flex/mx"
5         xmlns:potlatch2="net.systemeD.potlatch2.*"
6         title="Edit Relation" width="350" height="400"
7         showCloseButton="true" close="PopUpManager.removePopUp(this);">
8         
9         <potlatch2:TagViewer width="100%" height="100%" id="tagViewer"
10             creationComplete="checkRelation()"/>
11         
12         <fx:Script><![CDATA[
13                 import net.systemeD.halcyon.*;
14                 import net.systemeD.halcyon.connection.*;
15                 import net.systemeD.potlatch2.*;
16                 import mx.managers.PopUpManager;
17
18         private var _relation:Relation;
19         
20                 public function setRelation(relation:Relation):void {
21             _relation = relation;
22 //            if ( tagViewer != null )
23 //                tagViewer.setEntity(_relation);
24                 }
25
26         public function checkRelation():void {
27             if ( _relation != null )
28                 tagViewer.setEntity([_relation]);
29         }
30     ]]></fx:Script>
31 </mx:TitleWindow>
32