Changeset 209
- Timestamp:
- 03/03/10 13:20:53 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/common/components/CMDComponentXMLEditor.as
r206 r209 144 144 } 145 145 146 // protected override function createFormHeading(name:String):UIComponent {147 // var heading:UIComponent = super.createFormHeading(name);148 // if (name == COMPONENT) {149 // var editBar:HBox = new HBox();150 // editBar.addChild(heading);151 // editBar.percentWidth = 100;152 // var spacer:Spacer = new Spacer();153 // spacer.percentWidth = 90;154 // editBar.addChild(spacer);155 // var removeButton:Button = new Button();156 // removeButton.height = 20;157 // removeButton.label = "X";158 // removeButton.addEventListener(MouseEvent.CLICK, removeComponent);159 // editBar.addChild(removeButton);160 // return editBar;161 // } else {162 // return heading;163 // }164 // }165 //166 // protected override function createAndAddFormChild(name:String, value:String, bindingFunction:Function = null):void {167 // addFormChild(createFormItem(name, value, bindingFunction)); //Always add all children so they can be edited168 // }169 //170 // private function removeComponent(event:MouseEvent):void {171 // Alert.show("Fire remove!");172 // }173 //174 // protected override function createFormItemFieldValue(name:String, value:String, bindingFunction:Function = null):DisplayObject {175 // if (name == COMPONENT_ID) {176 // return createComponentIdLabel(value);177 // } else {178 // return createDefaultEditField(name, value, bindingFunction);179 // }180 // }181 //182 // private function createDefaultEditField(name:String, value:String, bindingFunction:Function = null):UIComponent {183 // var result:UIComponent;184 // if (name == DESCRIPTION) {185 // var editArea:TextArea = new TextArea();186 // editArea.text = value;187 // editArea.styleName = StyleConstants.XMLEDITOR_EDIT_FIELD;188 // editArea.width = 400;189 // result = editArea;190 // } else {191 // var editField:TextInput = new TextInput();192 // editField.text = value;193 // editField.styleName = StyleConstants.XMLEDITOR_EDIT_FIELD;194 // editField.width = 400;195 // result = editField;196 // BindingUtils.bindSetter(bindingFunction, editField, "text");197 // }198 // return result;199 // }200 //201 // private function createComponentIdLabel(value:String):ExpandingComponentLabel {202 // var componentLabel:ExpandingComponentLabel = new ExpandingComponentLabel(value, true);203 // return componentLabel;204 // }205 //206 146 } 207 147
Note: See TracChangeset
for help on using the changeset viewer.