| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <s:Panel name="CustomEditor" |
| xmlns:s="library://ns.adobe.com/flex/spark" |
| xmlns:fx="http://ns.adobe.com/mxml/2009" |
| xmlns:mx="library://ns.adobe.com/flex/mx" |
| title="s:TextArea"> |
| <s:layout> |
| <s:HorizontalLayout gap="0" /> |
| </s:layout> |
| <fx:Script> |
| <![CDATA[ |
| [Bindable] private var _cg:int = 0; |
| [Bindable] private var _cc:int = 1; |
| [Bindable] private var _cw:int = 140; |
| [Bindable] private var _wsc:String = "collapse"; |
| [Bindable] private var _lst:String = "none"; |
| [Bindable] private var _lsp:String = "inside"; |
| [Bindable] private var _testID:String = ""; |
| |
| public function get cg():int |
| { |
| return _cg; |
| } |
| [Bindable] |
| public function set cg(value:int):void |
| { |
| _cg = value; |
| } |
| public function get cc():int |
| { |
| return _cc; |
| } |
| [Bindable] |
| public function set cc(value:int):void |
| { |
| _cc = value; |
| } |
| public function get cw():int |
| { |
| return _cw; |
| } |
| [Bindable] |
| public function set cw(value:int):void |
| { |
| _cw = value; |
| } |
| |
| public function get wsc():String |
| { |
| return _wsc; |
| } |
| [Bindable] |
| public function set wsc(value:String):void |
| { |
| _wsc = value; |
| } |
| public function get lst():String |
| { |
| return _lst; |
| } |
| [Bindable] |
| public function set lst(value:String):void |
| { |
| _lst = value; |
| } |
| public function get lsp():String |
| { |
| return _lsp; |
| } |
| [Bindable] |
| public function set lsp(value:String):void |
| { |
| _lsp = value; |
| } |
| public function get testID():String |
| { |
| return _testID; |
| } |
| [Bindable] |
| public function set testID(value:String):void |
| { |
| _testID = value; |
| } |
| |
| ]]> |
| </fx:Script> |
| <s:TextArea id="editor" |
| width="300" height="300" |
| focusEnabled="false" |
| whiteSpaceCollapse="{wsc}" listStyleType="{lst}" listStylePosition="{lsp}" |
| > |
| |
| </s:TextArea> |
| </s:Panel> |