Adjust behaviour of numberEditor - add clear button, and explanitory text for when...
[potlatch2.git] / net / systemeD / potlatch2 / mapfeatures / editors / SingleTagEditorFactory.as
index f6e858b2f43525277cd286bb8ea154497dbbb09f..05df6c9c58dca4e70578367104cedf9290304f7c 100644 (file)
@@ -6,10 +6,12 @@ package net.systemeD.potlatch2.mapfeatures.editors {
 
        public class SingleTagEditorFactory extends EditorFactory {
            private var tagKey:String;
+               private var boxDirection:String;
         
         public function SingleTagEditorFactory(inputXML:XML) {
             super(inputXML);
             tagKey = inputXML.@key;
+                       boxDirection = inputXML.@layout=='horizontal' ? 'horizontal' : 'vertical';
         }
         
         override public function areTagsMatching(entity:Entity):Boolean {
@@ -20,6 +22,10 @@ package net.systemeD.potlatch2.mapfeatures.editors {
             return tagKey;
         }
         
+        public function get direction():String {
+            return boxDirection;
+        }
+        
         override public function createEditorInstance(entity:Entity):DisplayObject {
             var editor:SingleTagEditor = createSingleTagEditor();
             editor.factory = this;