source: ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/FormItemInputText.as @ 206

Last change on this file since 206 was 206, checked in by patdui, 14 years ago
  • added as3httpclient for doing http DELETE commands etc...
  • implemented editor
  • Using Basic Header security to authorize POST and DELETEs
  • renamed Register to Importer
File size: 776 bytes
Line 
1package clarin.cmdi.componentregistry.editor {
2        import clarin.cmdi.componentregistry.common.StyleConstants;
3       
4        import mx.binding.utils.BindingUtils;
5        import mx.containers.FormItem;
6        import mx.controls.TextArea;
7
8        public class FormItemInputText extends FormItem {
9
10                private var editArea:TextArea = new TextArea();
11
12                public function FormItemInputText(name:String, value:String, bindingFunction:Function) {
13                        super();
14                        label = name;
15                        styleName = StyleConstants.XMLBROWSER_FIELD;
16                        editArea.styleName = StyleConstants.XMLEDITOR_EDIT_FIELD;
17                        editArea.width = 400;
18                        editArea.text = value;
19                        BindingUtils.bindSetter(bindingFunction, editArea, "text");
20                }
21
22                protected override function createChildren():void {
23                        super.createChildren();
24                        addChild(editArea);
25                }
26
27        }
28}
Note: See TracBrowser for help on using the repository browser.