make '+' work when tab focus is on Delete button, too
[potlatch2.git] / net / systemeD / potlatch2 / RelationEditorPanel.mxml
1 <?xml version="1.0" encoding="utf-8"?>
2 <mx:TitleWindow
3         xmlns:mx="http://www.adobe.com/2006/mxml"
4         xmlns:potlatch2="net.systemeD.potlatch2.*"
5         title="Edit Relation" width="350" height="400"
6         showCloseButton="true" close="PopUpManager.removePopUp(this);">
7         
8         <potlatch2:TagViewer width="100%" height="100%" id="tagViewer"
9             creationComplete="checkRelation()"/>
10         
11         <mx:Script><![CDATA[
12                 import net.systemeD.halcyon.*;
13                 import net.systemeD.halcyon.connection.*;
14                 import net.systemeD.potlatch2.*;
15                 import mx.managers.PopUpManager;
16
17         private var _relation:Relation;
18         
19                 public function setRelation(relation:Relation):void {
20             _relation = relation;
21 //            if ( tagViewer != null )
22 //                tagViewer.setEntity(_relation);
23                 }
24
25         public function checkRelation():void {
26             if ( _relation != null )
27                 tagViewer.setEntity([_relation]);
28         }
29     ]]></mx:Script>     
30 </mx:TitleWindow>
31