You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2013/11/18 22:03:02 UTC
[07/21] move AS code into a projects/FlexJSUI
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/createjs/core/UIBase.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/createjs/core/UIBase.as b/frameworks/as/src/org/apache/flex/createjs/core/UIBase.as
deleted file mode 100644
index d0761a0..0000000
--- a/frameworks/as/src/org/apache/flex/createjs/core/UIBase.as
+++ /dev/null
@@ -1,141 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.createjs.core
-{
- import flash.display.DisplayObjectContainer;
- import flash.display.Sprite;
- import org.apache.flex.core.IStrand;
- import org.apache.flex.core.IBeadModel;
- import org.apache.flex.core.IBead;
- import org.apache.flex.events.Event;
- import org.apache.flex.events.IEventDispatcher;
-
- public class UIBase extends Sprite implements IStrand, IEventDispatcher
- {
- public function UIBase()
- {
- super();
- }
-
- private var _width:Number = 0;
- override public function get width():Number
- {
- return _width;
- }
- override public function set width(value:Number):void
- {
- if (_width != value)
- {
- _width = value;
- dispatchEvent(new Event("widthChanged"));
- }
- }
- protected function get $width():Number
- {
- return super.width;
- }
-
- private var _height:Number = 0;
- override public function get height():Number
- {
- return _height;
- }
- override public function set height(value:Number):void
- {
- if (_height != value)
- {
- _height = value;
- dispatchEvent(new Event("heightChanged"));
- }
- }
- protected function get $height():Number
- {
- return super.height;
- }
-
- private var _model:IBeadModel;
- public function get model():IBeadModel
- {
- return _model;
- }
- public function set model(value:IBeadModel):void
- {
- if (_model != value)
- {
- addBead(value as IBead);
- dispatchEvent(new Event("modelChanged"));
- }
- }
-
- private var _id:String;
- public function get id():String
- {
- return _id;
- }
- public function set id(value:String):void
- {
- if (_id != value)
- {
- _id = value;
- dispatchEvent(new Event("idChanged"));
- }
- }
-
- // beads declared in MXML are added to the strand.
- // from AS, just call addBead()
- public var beads:Array;
-
- private var _beads:Vector.<IBead>;
- public function addBead(bead:IBead):void
- {
- if (!_beads)
- _beads = new Vector.<IBead>;
- _beads.push(bead);
- if (bead is IBeadModel)
- _model = bead as IBeadModel;
- bead.strand = this;
- }
-
- public function getBeadByType(classOrInterface:Class):IBead
- {
- for each (var bead:IBead in _beads)
- {
- if (bead is classOrInterface)
- return bead;
- }
- return null;
- }
-
- public function removeBead(value:IBead):IBead
- {
- var n:int = _beads.length;
- for (var i:int = 0; i < n; i++)
- {
- var bead:IBead = _beads[i];
- if (bead == value)
- {
- _beads.splice(i, 1);
- return bead;
- }
- }
- return null;
- }
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/createjs/core/ViewBase.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/createjs/core/ViewBase.as b/frameworks/as/src/org/apache/flex/createjs/core/ViewBase.as
deleted file mode 100644
index 195821f..0000000
--- a/frameworks/as/src/org/apache/flex/createjs/core/ViewBase.as
+++ /dev/null
@@ -1,86 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.createjs.core
-{
- import flash.display.DisplayObject;
-
- import org.apache.flex.core.IParent;
- import org.apache.flex.core.IUIBase;
- import org.apache.flex.events.Event;
- import org.apache.flex.utils.MXMLDataInterpreter;
-
- [DefaultProperty("mxmlContent")]
- public class ViewBase extends UIBase implements IParent
- {
- public function ViewBase()
- {
- super();
- }
-
- public function initUI(model:Object):void
- {
- _applicationModel = model;
- dispatchEvent(new Event("modelChanged"));
- MXMLDataInterpreter.generateMXMLProperties(this, MXMLProperties);
- MXMLDataInterpreter.generateMXMLInstances(this, this, MXMLDescriptor);
- }
-
- public function get MXMLDescriptor():Array
- {
- return null;
- }
-
- public function get MXMLProperties():Array
- {
- return null;
- }
-
- public var mxmlContent:Array;
-
- private var _applicationModel:Object;
-
- [Bindable("modelChanged")]
- public function get applicationModel():Object
- {
- return _applicationModel;
- }
-
- public function addElement(c:Object):void
- {
- addChild(c as DisplayObject);
- }
-
- public function addElementAt(c:Object, index:int):void
- {
- addChildAt(c as DisplayObject, index);
- }
-
- public function getElementIndex(c:Object):int
- {
- return getChildIndex(c as DisplayObject);
- }
-
- public function removeElement(c:Object):void
- {
- removeChild(c as DisplayObject);
- }
-
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/createjs/staticControls/CheckBox.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/createjs/staticControls/CheckBox.as b/frameworks/as/src/org/apache/flex/createjs/staticControls/CheckBox.as
deleted file mode 100644
index b4dc469..0000000
--- a/frameworks/as/src/org/apache/flex/createjs/staticControls/CheckBox.as
+++ /dev/null
@@ -1,26 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.createjs.staticControls
-{
- import org.apache.flex.html.staticControls.CheckBox;
-
- public class CheckBox extends org.apache.flex.html.staticControls.CheckBox
- {
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/createjs/staticControls/Label.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/createjs/staticControls/Label.as b/frameworks/as/src/org/apache/flex/createjs/staticControls/Label.as
deleted file mode 100644
index fb8fb7e..0000000
--- a/frameworks/as/src/org/apache/flex/createjs/staticControls/Label.as
+++ /dev/null
@@ -1,27 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.createjs.staticControls
-{
- import org.apache.flex.html.staticControls.Label;
-
- public class Label extends org.apache.flex.html.staticControls.Label
- {
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/createjs/staticControls/TextButton.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/createjs/staticControls/TextButton.as b/frameworks/as/src/org/apache/flex/createjs/staticControls/TextButton.as
deleted file mode 100644
index 6764b22..0000000
--- a/frameworks/as/src/org/apache/flex/createjs/staticControls/TextButton.as
+++ /dev/null
@@ -1,52 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.createjs.staticControls
-{
- import flash.display.DisplayObject;
-
- import org.apache.flex.core.ITextModel;
- import org.apache.flex.html.staticControls.Button;
-
- public class TextButton extends Button
- {
- public function TextButton(upState:DisplayObject=null, overState:DisplayObject=null, downState:DisplayObject=null, hitTestState:DisplayObject=null)
- {
- super(upState, overState, downState, hitTestState);
- }
-
- public function get text():String
- {
- return ITextModel(model).text;
- }
- public function set text(value:String):void
- {
- ITextModel(model).text = value;
- }
-
- public function get html():String
- {
- return ITextModel(model).html;
- }
- public function set html(value:String):void
- {
- ITextModel(model).html = value;
- }
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/data/ICollection.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/data/ICollection.as b/frameworks/as/src/org/apache/flex/data/ICollection.as
deleted file mode 100644
index b1d706f..0000000
--- a/frameworks/as/src/org/apache/flex/data/ICollection.as
+++ /dev/null
@@ -1,25 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.data
-{
- public interface ICollection
- {
- function getItemAt(index:int):Object
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/data/IStringCollection.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/data/IStringCollection.as b/frameworks/as/src/org/apache/flex/data/IStringCollection.as
deleted file mode 100644
index b978a58..0000000
--- a/frameworks/as/src/org/apache/flex/data/IStringCollection.as
+++ /dev/null
@@ -1,25 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.data
-{
- public interface IStringCollection
- {
- function getItemAt(index:int):String
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/events/CustomEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/events/CustomEvent.as b/frameworks/as/src/org/apache/flex/events/CustomEvent.as
deleted file mode 100644
index 0776e22..0000000
--- a/frameworks/as/src/org/apache/flex/events/CustomEvent.as
+++ /dev/null
@@ -1,36 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.events
-{
- /**
- * MXML auto-imports flash.events.Event which then requires
- * full qualification to use org.apache.flex.events.Event.
- * Use CustomEvent to skip all that extra typing. Eventually
- * we should add a flag to strip out the default auto-imports.
- * Like org.apache.flex.events.Event events on the JS side
- * are DOMEvents and not really instances of this class
- */
- public class CustomEvent extends Event
- {
- public function CustomEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
- {
- super(type, bubbles, cancelable);
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/events/Event.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/events/Event.as b/frameworks/as/src/org/apache/flex/events/Event.as
deleted file mode 100644
index 91fd83a..0000000
--- a/frameworks/as/src/org/apache/flex/events/Event.as
+++ /dev/null
@@ -1,38 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.events
-{
- import flash.events.Event;
-
- /**
- * This class simply wraps flash.events.Event so that
- * no flash packages are needed on the JS side.
- * At runtime, this class is not always the event object
- * that is dispatched. In most cases we are dispatching
- * DOMEvents instead, so as long as you don't actually
- * check the typeof(event) it will work
- */
- public class Event extends flash.events.Event
- {
- public function Event(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
- {
- super(type, bubbles, cancelable);
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/events/EventDispatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/events/EventDispatcher.as b/frameworks/as/src/org/apache/flex/events/EventDispatcher.as
deleted file mode 100644
index 64c6f87..0000000
--- a/frameworks/as/src/org/apache/flex/events/EventDispatcher.as
+++ /dev/null
@@ -1,34 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.events
-{
- import flash.events.EventDispatcher;
-
- /**
- * This class simply wraps flash.events.EventDispatcher so that
- * no flash packages are needed on the JS side.
- */
- public class EventDispatcher extends flash.events.EventDispatcher implements IEventDispatcher
- {
- public function EventDispatcher()
- {
- super();
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/events/IEventDispatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/events/IEventDispatcher.as b/frameworks/as/src/org/apache/flex/events/IEventDispatcher.as
deleted file mode 100644
index b838d23..0000000
--- a/frameworks/as/src/org/apache/flex/events/IEventDispatcher.as
+++ /dev/null
@@ -1,31 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.events
-{
- import flash.events.IEventDispatcher;
-
- /**
- * This class simply wraps flash.events.EventDispatcher so that
- * no flash packages are needed on the JS side.
- */
- public interface IEventDispatcher extends flash.events.IEventDispatcher
- {
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/events/ValueChangeEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/events/ValueChangeEvent.as b/frameworks/as/src/org/apache/flex/events/ValueChangeEvent.as
deleted file mode 100644
index 4a759f7..0000000
--- a/frameworks/as/src/org/apache/flex/events/ValueChangeEvent.as
+++ /dev/null
@@ -1,46 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.events
-{
- public class ValueChangeEvent extends Event
- {
- public function ValueChangeEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false,
- oldValue:Object = null, newValue:Object = null)
- {
- super(type, bubbles, cancelable);
- this.oldValue = oldValue;
- this.newValue = newValue;
- }
-
- public var oldValue:Object;
- public var newValue:Object;
- public var propertyName:String;
- public var source:Object;
-
- public static const VALUE_CHANGE:String = "valueChange";
-
- public static function createUpdateEvent(source:Object, name:String, oldValue:Object, newValue:Object):ValueChangeEvent
- {
- var event:ValueChangeEvent = new ValueChangeEvent(VALUE_CHANGE, false, false, oldValue, newValue);
- event.propertyName = name;
- event.source = source;
- return event;
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/Alert.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/Alert.as b/frameworks/as/src/org/apache/flex/html/staticControls/Alert.as
deleted file mode 100644
index b3cf5e2..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/Alert.as
+++ /dev/null
@@ -1,85 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import org.apache.flex.core.IAlertModel;
- import org.apache.flex.core.IPopUp;
- import org.apache.flex.core.UIBase;
-
- public class Alert extends UIBase implements IPopUp
- {
- public static const YES:uint = 0x000001;
- public static const NO:uint = 0x000002;
- public static const OK:uint = 0x000004;
- public static const CANCEL:uint = 0x000008;
-
- public function Alert()
- {
- super();
-
- className = "Alert";
- }
-
- // note: only passing parent to this function as I don't see a way to identify
- // the 'application' or top level view without supplying a place to start to
- // look for it.
- static public function show( text:String, parent:Object, title:String="", flags:uint=Alert.OK ) : void
- {
- var alert:Alert = new Alert();
- alert.message = text;
- alert.title = title;
- alert.flags = flags;
-
- alert.show(parent);
- }
-
- public function show(parent:Object) : void
- {
- parent.addElement(this);
- }
-
- public function get title():String
- {
- return IAlertModel(model).title;
- }
- public function set title(value:String):void
- {
- IAlertModel(model).title = value;
- }
-
- public function get message():String
- {
- return IAlertModel(model).message;
- }
- public function set message(value:String):void
- {
- IAlertModel(model).message = value;
- }
-
- public function get flags():uint
- {
- return IAlertModel(model).flags;
- }
- public function set flags(value:uint):void
- {
- IAlertModel(model).flags = value;
- }
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/Button.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/Button.as b/frameworks/as/src/org/apache/flex/html/staticControls/Button.as
deleted file mode 100644
index ce28dc5..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/Button.as
+++ /dev/null
@@ -1,37 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import flash.display.DisplayObject;
-
- import org.apache.flex.core.IStrand;
- import org.apache.flex.core.IUIBase;
- import org.apache.flex.core.UIButtonBase;
- import org.apache.flex.events.IEventDispatcher;
-
- [Event(name="click", type="org.apache.flex.events.Event")]
-
- public class Button extends UIButtonBase implements IStrand, IEventDispatcher, IUIBase
- {
- public function Button(upState:DisplayObject=null, overState:DisplayObject=null, downState:DisplayObject=null, hitTestState:DisplayObject=null)
- {
- super(upState, overState, downState, hitTestState);
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/ButtonBar.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/ButtonBar.as b/frameworks/as/src/org/apache/flex/html/staticControls/ButtonBar.as
deleted file mode 100644
index ee7c0e3..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/ButtonBar.as
+++ /dev/null
@@ -1,28 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- public class ButtonBar extends List
- {
- public function ButtonBar()
- {
- super();
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/CheckBox.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/CheckBox.as b/frameworks/as/src/org/apache/flex/html/staticControls/CheckBox.as
deleted file mode 100644
index ceaf488..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/CheckBox.as
+++ /dev/null
@@ -1,65 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import flash.display.DisplayObject;
- import flash.events.MouseEvent;
-
- import org.apache.flex.core.IToggleButtonModel;
- import org.apache.flex.core.IStrand;
- import org.apache.flex.core.UIButtonBase;
- import org.apache.flex.events.Event;
-
- [Event(name="change", type="org.apache.flex.events.Event")]
-
- public class CheckBox extends UIButtonBase implements IStrand
- {
- public function CheckBox(upState:DisplayObject=null, overState:DisplayObject=null, downState:DisplayObject=null, hitTestState:DisplayObject=null)
- {
- super(upState, overState, downState, hitTestState);
-
- addEventListener(MouseEvent.CLICK, internalMouseHandler);
- }
-
- public function get text():String
- {
- return IToggleButtonModel(model).text;
- }
- public function set text(value:String):void
- {
- IToggleButtonModel(model).text = value;
- }
-
- public function get selected():Boolean
- {
- return IToggleButtonModel(model).selected;
- }
-
- public function set selected(value:Boolean):void
- {
- IToggleButtonModel(model).selected = value;
- }
-
- private function internalMouseHandler(event:Event) : void
- {
- selected = !selected;
- dispatchEvent(new Event("change"));
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/ComboBox.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/ComboBox.as b/frameworks/as/src/org/apache/flex/html/staticControls/ComboBox.as
deleted file mode 100644
index d70e644..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/ComboBox.as
+++ /dev/null
@@ -1,61 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import org.apache.flex.core.IComboBoxModel;
- import org.apache.flex.core.UIBase;
-
- [Event(name="change", type="org.apache.flex.events.Event")]
-
- public class ComboBox extends UIBase
- {
- public function ComboBox()
- {
- super();
- }
-
- public function get dataProvider():Object
- {
- return IComboBoxModel(model).dataProvider;
- }
- public function set dataProvider(value:Object):void
- {
- IComboBoxModel(model).dataProvider = value;
- }
-
- public function get selectedIndex():int
- {
- return IComboBoxModel(model).selectedIndex;
- }
- public function set selectedIndex(value:int):void
- {
- IComboBoxModel(model).selectedIndex = value;
- }
-
- public function get selectedItem():Object
- {
- return IComboBoxModel(model).selectedItem;
- }
- public function set selectedItem(value:Object):void
- {
- IComboBoxModel(model).selectedItem = value;
- }
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/Container.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/Container.as b/frameworks/as/src/org/apache/flex/html/staticControls/Container.as
deleted file mode 100644
index 05a59b1..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/Container.as
+++ /dev/null
@@ -1,125 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import flash.display.DisplayObject;
- import flash.display.DisplayObjectContainer;
-
- import org.apache.flex.core.IChrome;
- import org.apache.flex.core.IContainer;
- import org.apache.flex.core.IUIBase;
- import org.apache.flex.core.UIBase;
- import org.apache.flex.events.Event;
-
- [Event(name="change", type="org.apache.flex.events.Event")]
-
- [DefaultProperty("mxmlContent")]
- public class Container extends UIBase implements IContainer
- {
- public function Container()
- {
- super();
- actualParent = this;
- }
-
- public var mxmlContent:Array;
-
- private var actualParent:DisplayObjectContainer;
-
- public function setActualParent(parent:DisplayObjectContainer):void
- {
- actualParent = parent;
- }
-
- override public function getElementIndex(c:Object):int
- {
- if (c is IUIBase)
- return actualParent.getChildIndex(IUIBase(c).element as DisplayObject);
- else
- return actualParent.getChildIndex(c as DisplayObject);
- }
-
- override public function addElement(c:Object):void
- {
- if (c is IUIBase)
- {
- if (c is IChrome ) {
- addChild(IUIBase(c).element as DisplayObject);
- IUIBase(c).addedToParent();
- }
- else {
- actualParent.addChild(IUIBase(c).element as DisplayObject);
- IUIBase(c).addedToParent();
- }
- }
- else {
- if (c is IChrome) {
- addChild(c as DisplayObject);
- }
- else {
- actualParent.addChild(c as DisplayObject);
- }
- }
- }
-
- override public function addElementAt(c:Object, index:int):void
- {
- if (c is IUIBase)
- {
- if (c is IChrome) {
- addChildAt(IUIBase(c).element as DisplayObject, index);
- IUIBase(c).addedToParent();
- }
- else {
- actualParent.addChildAt(IUIBase(c).element as DisplayObject, index);
- IUIBase(c).addedToParent();
- }
- }
- else {
- if (c is IChrome) {
- addChildAt(c as DisplayObject, index);
- } else {
- actualParent.addChildAt(c as DisplayObject, index);
- }
- }
- }
-
- override public function removeElement(c:Object):void
- {
- if (c is IUIBase)
- actualParent.removeChild(IUIBase(c).element as DisplayObject);
- else
- actualParent.removeChild(c as DisplayObject);
- }
-
- public function getChildren():Array
- {
- var children:Array = [];
- var n:int = actualParent.numChildren;
- for (var i:int = 0; i < n; i++)
- children.push(actualParent.getChildAt(i));
- return children;
- }
-
- public function childrenAdded():void
- {
- dispatchEvent(new Event("childrenAdded"));
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/ContainerContentArea.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/ContainerContentArea.as b/frameworks/as/src/org/apache/flex/html/staticControls/ContainerContentArea.as
deleted file mode 100644
index fd846a4..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/ContainerContentArea.as
+++ /dev/null
@@ -1,30 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import org.apache.flex.core.UIBase;
-
- public class ContainerContentArea extends UIBase
- {
- public function ContainerContentArea()
- {
- super();
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/ControlBar.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/ControlBar.as b/frameworks/as/src/org/apache/flex/html/staticControls/ControlBar.as
deleted file mode 100644
index 8f0a46b..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/ControlBar.as
+++ /dev/null
@@ -1,46 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
-
- import org.apache.flex.core.IBeadLayout;
- import org.apache.flex.core.IChrome;
- import org.apache.flex.core.IContainer;
- import org.apache.flex.core.ValuesManager;
-
- public class ControlBar extends Container implements IContainer, IChrome
- {
- public function ControlBar()
- {
- super();
-
- className = "ControlBar";
- }
-
- override public function addedToParent():void
- {
- super.addedToParent();
-
- if( getBeadByType(IBeadLayout) == null ) {
- var layout:IBeadLayout = new (ValuesManager.valuesImpl.getValue(this, "iBeadLayout")) as IBeadLayout;
- addBead(layout);
- }
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/DataGrid.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/DataGrid.as b/frameworks/as/src/org/apache/flex/html/staticControls/DataGrid.as
deleted file mode 100644
index 9a02831..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/DataGrid.as
+++ /dev/null
@@ -1,56 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import org.apache.flex.core.IDataGridModel;
- import org.apache.flex.core.UIBase;
-
- [Event(name="change", type="org.apache.flex.events.Event")]
-
- public class DataGrid extends UIBase
- {
- public function DataGrid()
- {
- super();
- }
-
- public function get dataProvider():Object
- {
- return IDataGridModel(model).dataProvider;
- }
- public function set dataProvider(value:Object):void
- {
- IDataGridModel(model).dataProvider = value;
- }
-
- public function get labelFields():Object
- {
- return IDataGridModel(model).labelFields;
- }
- public function set labelFields(value:Object):void
- {
- IDataGridModel(model).labelFields = value;
- }
-
- public function get selectedIndex():int
- {
- return IDataGridModel(model).selectedIndex;
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/DropDownList.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/DropDownList.as b/frameworks/as/src/org/apache/flex/html/staticControls/DropDownList.as
deleted file mode 100644
index 57f1a88..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/DropDownList.as
+++ /dev/null
@@ -1,59 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import org.apache.flex.core.ISelectionModel;
-
- [Event(name="change", type="org.apache.flex.events.Event")]
-
- public class DropDownList extends Button
- {
- public function DropDownList()
- {
- }
-
- public function get dataProvider():Object
- {
- return ISelectionModel(model).dataProvider;
- }
- public function set dataProvider(value:Object):void
- {
- ISelectionModel(model).dataProvider = value;
- }
-
- public function get selectedIndex():int
- {
- return ISelectionModel(model).selectedIndex;
- }
- public function set selectedIndex(value:int):void
- {
- ISelectionModel(model).selectedIndex = value;
- }
-
- public function get selectedItem():Object
- {
- return ISelectionModel(model).selectedItem;
- }
- public function set selectedItem(value:Object):void
- {
- ISelectionModel(model).selectedItem = value;
- }
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/Image.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/Image.as b/frameworks/as/src/org/apache/flex/html/staticControls/Image.as
deleted file mode 100644
index eebfe40..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/Image.as
+++ /dev/null
@@ -1,41 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import org.apache.flex.core.IImageModel;
- import org.apache.flex.core.UIBase;
-
- public class Image extends UIBase
- {
- public function Image()
- {
- super();
- }
-
- public function get source():String
- {
- return IImageModel(model).source;
- }
-
- public function set source(value:String):void
- {
- IImageModel(model).source = value;
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/Label.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/Label.as b/frameworks/as/src/org/apache/flex/html/staticControls/Label.as
deleted file mode 100644
index 30565d6..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/Label.as
+++ /dev/null
@@ -1,70 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import org.apache.flex.core.ITextModel;
- import org.apache.flex.core.UIBase;
- import org.apache.flex.events.Event;
- import org.apache.flex.events.IEventDispatcher;
-
- /**
- * Label probably should extend TextField directly,
- * but the player's APIs for TextLine do not allow
- * direct instantiation, and we might want to allow
- * Labels to be declared and have their actual
- * view be swapped out.
- */
- public class Label extends UIBase
- {
- public function Label()
- {
- super();
- }
-
- public function get text():String
- {
- return ITextModel(model).text;
- }
- public function set text(value:String):void
- {
- ITextModel(model).text = value;
- }
-
- public function get html():String
- {
- return ITextModel(model).html;
- }
- public function set html(value:String):void
- {
- ITextModel(model).html = value;
- }
-
- override public function set width(value:Number):void
- {
- super.width = value;
- IEventDispatcher(model).dispatchEvent( new Event("widthChanged") );
- }
-
- override public function set height(value:Number):void
- {
- super.height = value;
- IEventDispatcher(model).dispatchEvent( new Event("heightChanged") );
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/List.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/List.as b/frameworks/as/src/org/apache/flex/html/staticControls/List.as
deleted file mode 100644
index da1638e..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/List.as
+++ /dev/null
@@ -1,91 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import org.apache.flex.core.IRollOverModel;
- import org.apache.flex.core.ISelectionModel;
- import org.apache.flex.core.UIBase;
- import org.apache.flex.core.ValuesManager;
- import org.apache.flex.html.staticControls.beads.IDataProviderItemRendererMapper;
-
- [Event(name="change", type="org.apache.flex.events.Event")]
-
- /**
- * Label probably should extend TextField directly,
- * but the player's APIs for TextLine do not allow
- * direct instantiation, and we might want to allow
- * Labels to be declared and have their actual
- * view be swapped out.
- */
- public class List extends UIBase
- {
- public function List()
- {
- super();
- }
-
- public function get dataProvider():Object
- {
- return ISelectionModel(model).dataProvider;
- }
- public function set dataProvider(value:Object):void
- {
- ISelectionModel(model).dataProvider = value;
- }
-
- public function get selectedIndex():int
- {
- return ISelectionModel(model).selectedIndex;
- }
- public function set selectedIndex(value:int):void
- {
- ISelectionModel(model).selectedIndex = value;
- }
-
- public function get rollOverIndex():int
- {
- return IRollOverModel(model).rollOverIndex;
- }
- public function set rollOverIndex(value:int):void
- {
- IRollOverModel(model).rollOverIndex = value;
- }
-
- public function get selectedItem():Object
- {
- return ISelectionModel(model).selectedItem;
- }
- public function set selectedItem(value:Object):void
- {
- ISelectionModel(model).selectedItem = value;
- }
-
- override public function addedToParent():void
- {
- super.addedToParent();
-
- if (getBeadByType(IDataProviderItemRendererMapper) == null)
- {
- var mapper:IDataProviderItemRendererMapper = new (ValuesManager.valuesImpl.getValue(this, "iDataProviderItemRendererMapper")) as IDataProviderItemRendererMapper;
- addBead(mapper);
- }
- }
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/NumericStepper.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/NumericStepper.as b/frameworks/as/src/org/apache/flex/html/staticControls/NumericStepper.as
deleted file mode 100644
index c587ff3..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/NumericStepper.as
+++ /dev/null
@@ -1,77 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import org.apache.flex.core.IRangeModel;
-
- [Event(name="valueChanged", type="org.apache.flex.events.Event")]
- public class NumericStepper extends Container
- {
- public function NumericStepper()
- {
- super();
- }
-
- public function get value():Number
- {
- return IRangeModel(model).value;
- }
- public function set value(newValue:Number):void
- {
- IRangeModel(model).value = newValue;
- }
-
- public function get minimum():Number
- {
- return IRangeModel(model).minimum;
- }
- public function set minimum(value:Number):void
- {
- IRangeModel(model).minimum = value;
- }
-
- public function get maximum():Number
- {
- return IRangeModel(model).maximum;
- }
- public function set maximum(value:Number):void
- {
- IRangeModel(model).maximum = value;
- }
-
- public function get stepSize():Number
- {
- return IRangeModel(model).stepSize;
- }
- public function set stepSize(value:Number):void
- {
- IRangeModel(model).stepSize = value;
- }
-
- public function get snapInterval():Number
- {
- return IRangeModel(model).snapInterval;
- }
- public function set snapInterval(value:Number):void
- {
- IRangeModel(model).snapInterval = value;
- }
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/Panel.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/Panel.as b/frameworks/as/src/org/apache/flex/html/staticControls/Panel.as
deleted file mode 100644
index 90b637e..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/Panel.as
+++ /dev/null
@@ -1,70 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import org.apache.flex.core.IPanelModel;
-
- [Event(name="close", type="org.apache.flex.events.Event")]
-
- public class Panel extends Container
- {
- public function Panel()
- {
- super();
- }
-
- public function get title():String
- {
- return IPanelModel(model).title;
- }
- public function set title(value:String):void
- {
- IPanelModel(model).title = value;
- }
-
- public function get htmlTitle():String
- {
- return IPanelModel(model).htmlTitle;
- }
- public function set htmlTitle(value:String):void
- {
- IPanelModel(model).htmlTitle = value;
- }
-
- public function get showCloseButton():Boolean
- {
- return IPanelModel(model).showCloseButton;
- }
- public function set showCloseButton(value:Boolean):void
- {
- IPanelModel(model).showCloseButton = value;
- }
-
- private var _controlBar:Array;
- public function get controlBar():Array
- {
- return _controlBar;
- }
- public function set controlBar(value:Array):void
- {
- _controlBar = value;
- }
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/RadioButton.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/RadioButton.as b/frameworks/as/src/org/apache/flex/html/staticControls/RadioButton.as
deleted file mode 100644
index 8f31816..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/RadioButton.as
+++ /dev/null
@@ -1,142 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import flash.display.DisplayObject;
- import flash.events.MouseEvent;
- import flash.utils.Dictionary;
-
- import org.apache.flex.core.IStrand;
- import org.apache.flex.core.IValueToggleButtonModel;
- import org.apache.flex.core.UIButtonBase;
- import org.apache.flex.events.Event;
-
- [Event(name="change", type="org.apache.flex.events.Event")]
-
- public class RadioButton extends UIButtonBase implements IStrand
- {
- public function RadioButton(upState:DisplayObject=null, overState:DisplayObject=null, downState:DisplayObject=null, hitTestState:DisplayObject=null)
- {
- super(upState, overState, downState, hitTestState);
-
- addEventListener(MouseEvent.CLICK, internalMouseHandler);
- }
-
- protected static var dict:Dictionary = new Dictionary(true);
-
- private var _groupName:String;
-
- public function get groupName() : String
- {
- return IValueToggleButtonModel(model).groupName;
- }
-
- public function set groupName(value:String) : void
- {
- IValueToggleButtonModel(model).groupName = value;
- }
-
- public function get text():String
- {
- return IValueToggleButtonModel(model).text;
- }
- public function set text(value:String):void
- {
- IValueToggleButtonModel(model).text = value;
- }
-
- public function get selected():Boolean
- {
- return IValueToggleButtonModel(model).selected;
- }
-
- public function set selected(selValue:Boolean):void
- {
- IValueToggleButtonModel(model).selected = selValue;
-
- // if this button is being selected, its value should become
- // its group's selectedValue
- if( selValue ) {
- for each(var rb:RadioButton in dict)
- {
- if( rb.groupName == groupName )
- {
- rb.selectedValue = value;
- }
- }
- }
- }
-
- public function get value():Object
- {
- return IValueToggleButtonModel(model).value;
- }
-
- public function set value(newValue:Object):void
- {
- IValueToggleButtonModel(model).value = newValue;
- }
-
- public function get selectedValue():Object
- {
- return IValueToggleButtonModel(model).selectedValue;
- }
-
- public function set selectedValue(newValue:Object):void
- {
- // a radio button is really selected when its value matches that of the group's value
- IValueToggleButtonModel(model).selected = (newValue == value);
- IValueToggleButtonModel(model).selectedValue = newValue;
- }
-
- override public function addedToParent():void
- {
- super.addedToParent();
-
- // if this instance is selected, set the local selectedValue to
- // this instance's value
- if( selected ) selectedValue = value;
-
- else {
-
- // make sure this button's selectedValue is set from its group's selectedValue
- // to keep it in sync with the rest of the buttons in its group.
- for each(var rb:RadioButton in dict)
- {
- if( rb.groupName == groupName )
- {
- selectedValue = rb.selectedValue;
- break;
- }
- }
- }
-
- dict[this] = this;
- }
-
- private function internalMouseHandler(event:Event) : void
- {
- // prevent radiobutton from being turned off by a click
- if( !selected ) {
- selected = !selected;
- dispatchEvent(new Event("change"));
- }
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/SimpleAlert.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/SimpleAlert.as b/frameworks/as/src/org/apache/flex/html/staticControls/SimpleAlert.as
deleted file mode 100644
index cf4cc8c..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/SimpleAlert.as
+++ /dev/null
@@ -1,70 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import org.apache.flex.core.IAlertModel;
- import org.apache.flex.core.IPopUp;
- import org.apache.flex.core.UIBase;
- import org.apache.flex.events.Event;
-
- [Event(name="close", type="org.apache.flex.events.Event")]
-
- public class SimpleAlert extends UIBase implements IPopUp
- {
- public function SimpleAlert()
- {
- super();
-
- className = "SimpleAlert";
- }
-
- private function get message():String
- {
- return IAlertModel(model).message;
- }
- private function set message(value:String):void
- {
- IAlertModel(model).message = value;
- }
-
- private function get htmlMessage():String
- {
- return IAlertModel(model).htmlMessage;
- }
- private function set htmlMessage(value:String):void
- {
- IAlertModel(model).htmlMessage = value;
- }
-
- public function show(parent:Object) : void
- {
- parent.addElement(this);
- }
-
- static public function show(message:String, parent:Object):SimpleAlert
- {
- var alert:SimpleAlert = new SimpleAlert();
- alert.message = message;
- alert.show(parent);
-
- return alert;
- }
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/SimpleList.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/SimpleList.as b/frameworks/as/src/org/apache/flex/html/staticControls/SimpleList.as
deleted file mode 100644
index 9f19a72..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/SimpleList.as
+++ /dev/null
@@ -1,28 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- public class SimpleList extends List
- {
- public function SimpleList()
- {
- super();
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/Slider.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/Slider.as b/frameworks/as/src/org/apache/flex/html/staticControls/Slider.as
deleted file mode 100644
index 47a0db5..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/Slider.as
+++ /dev/null
@@ -1,77 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import org.apache.flex.core.IRangeModel;
- import org.apache.flex.core.UIBase;
-
- [Event(name="valueChanged", type="org.apache.flex.events.Event")]
-
- public class Slider extends UIBase
- {
- public function Slider()
- {
- super();
-
- className = "Slider";
-
- IRangeModel(model).value = 0;
- IRangeModel(model).minimum = 0;
- IRangeModel(model).maximum = 100;
- IRangeModel(model).stepSize = 1;
- IRangeModel(model).snapInterval = 1;
- }
-
- public function get value():Number
- {
- return IRangeModel(model).value;
- }
- public function set value(newValue:Number):void
- {
- IRangeModel(model).value = newValue;
- }
-
- public function get minimum():Number
- {
- return IRangeModel(model).minimum;
- }
- public function set minimum(value:Number):void
- {
- IRangeModel(model).minimum = value;
- }
-
- public function get maximum():Number
- {
- return IRangeModel(model).maximum;
- }
- public function set maximum(value:Number):void
- {
- IRangeModel(model).maximum = value;
- }
-
- public function get snapInterval():Number
- {
- return IRangeModel(model).snapInterval;
- }
- public function set snapInterval(value:Number):void
- {
- IRangeModel(model).snapInterval = value;
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/Spinner.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/Spinner.as b/frameworks/as/src/org/apache/flex/html/staticControls/Spinner.as
deleted file mode 100644
index d0eb443..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/Spinner.as
+++ /dev/null
@@ -1,81 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import org.apache.flex.core.IRangeModel;
- import org.apache.flex.core.UIBase;
-
- [Event(name="valueChanged", type="org.apache.flex.events.Event")]
-
- public class Spinner extends UIBase
- {
- public function Spinner()
- {
- super();
-
- className = "Spinner";
- }
-
- public function get value():Number
- {
- return IRangeModel(model).value;
- }
- public function set value(newValue:Number):void
- {
- IRangeModel(model).value = newValue;
- }
-
- public function get minimum():Number
- {
- return IRangeModel(model).minimum;
- }
- public function set minimum(value:Number):void
- {
- IRangeModel(model).minimum = value;
- }
-
- public function get maximum():Number
- {
- return IRangeModel(model).maximum;
- }
- public function set maximum(value:Number):void
- {
- IRangeModel(model).maximum = value;
- }
-
- public function get snapInterval():Number
- {
- return IRangeModel(model).snapInterval;
- }
- public function set snapInterval(value:Number):void
- {
- IRangeModel(model).snapInterval = value;
- }
-
- public function get stepSize():Number
- {
- return IRangeModel(model).stepSize;
- }
- public function set stepSize(value:Number):void
- {
- IRangeModel(model).stepSize = value;
- }
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/TextArea.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/TextArea.as b/frameworks/as/src/org/apache/flex/html/staticControls/TextArea.as
deleted file mode 100644
index b8bb750..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/TextArea.as
+++ /dev/null
@@ -1,50 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import org.apache.flex.core.ITextModel;
- import org.apache.flex.core.UIBase;
-
- public class TextArea extends UIBase
- {
- public function TextArea()
- {
- super();
- }
-
- public function get text():String
- {
- return ITextModel(model).text;
- }
- public function set text(value:String):void
- {
- ITextModel(model).text = value;
- }
-
- public function get html():String
- {
- return ITextModel(model).html;
- }
- public function set html(value:String):void
- {
- ITextModel(model).html = value;
- }
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/TextButton.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/TextButton.as b/frameworks/as/src/org/apache/flex/html/staticControls/TextButton.as
deleted file mode 100644
index 425af1e..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/TextButton.as
+++ /dev/null
@@ -1,51 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import flash.display.DisplayObject;
-
- import org.apache.flex.core.ITextModel;
-
- public class TextButton extends Button
- {
- public function TextButton(upState:DisplayObject=null, overState:DisplayObject=null, downState:DisplayObject=null, hitTestState:DisplayObject=null)
- {
- super(upState, overState, downState, hitTestState);
- }
-
- public function get text():String
- {
- return ITextModel(model).text;
- }
- public function set text(value:String):void
- {
- ITextModel(model).text = value;
- }
-
- public function get html():String
- {
- return ITextModel(model).html;
- }
- public function set html(value:String):void
- {
- ITextModel(model).html = value;
- }
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/html/staticControls/TextInput.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/TextInput.as b/frameworks/as/src/org/apache/flex/html/staticControls/TextInput.as
deleted file mode 100644
index c048564..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/TextInput.as
+++ /dev/null
@@ -1,49 +0,0 @@
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.html.staticControls
-{
- import org.apache.flex.core.ITextModel;
- import org.apache.flex.core.UIBase;
-
- public class TextInput extends UIBase
- {
- public function TextInput()
- {
- super();
- }
-
- public function get text():String
- {
- return ITextModel(model).text;
- }
- public function set text(value:String):void
- {
- ITextModel(model).text = value;
- }
-
- public function get html():String
- {
- return ITextModel(model).html;
- }
- public function set html(value:String):void
- {
- ITextModel(model).html = value;
- }
-
- }
-}
\ No newline at end of file