more
[potlatch2.git] / net / systemeD / potlatch2 / mapfeatures / editors / CheckboxEditorFactory.as
1 package net.systemeD.potlatch2.mapfeatures.editors {
2
3     import net.systemeD.halcyon.connection.*;
4     import net.systemeD.potlatch2.mapfeatures.*;
5     import flash.display.*;
6
7         public class CheckboxEditorFactory extends SingleTagEditorFactory {
8             private var _notPresentText:String;
9             private var _notBooleanText:String;
10         
11         public function CheckboxEditorFactory(inputXML:XML) {
12             super(inputXML);
13             _notPresentText = inputXML.hasOwnProperty("@absenceText") ? String(inputXML.@absenceText) : "Unset";
14             _notBooleanText = inputXML.hasOwnProperty("@invalidText") ? String(inputXML.@invalidText) : "Not yes/no";
15         }
16         
17         override protected function createSingleTagEditor():SingleTagEditor {
18             return new CheckboxEditor();
19         }
20         
21         public function get notPresentText():String { return _notPresentText; }
22         public function get notBooleanText():String { return _notBooleanText; }
23     }
24
25 }
26
27