flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - Added Alert and modified measurement beads to help with layout.
Date Wed, 12 Jun 2013 14:34:09 GMT
Updated Branches:
  refs/heads/develop e9451a237 -> 5e153cf77


Added Alert and modified measurement beads to help with layout.


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/5e153cf7
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/5e153cf7
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/5e153cf7

Branch: refs/heads/develop
Commit: 5e153cf77ce8ec4b875383ec58795f8badf32f00
Parents: e9451a2
Author: Peter Ent <pent@apache.org>
Authored: Tue Jun 11 15:26:34 2013 -0400
Committer: Peter Ent <pent@apache.org>
Committed: Tue Jun 11 15:26:34 2013 -0400

----------------------------------------------------------------------
 frameworks/as/basic-manifest.xml                |   2 +-
 frameworks/as/defaults.css                      |  14 +-
 frameworks/as/src/FlexJSUIClasses.as            |   4 +
 .../as/src/org/apache/flex/core/IAlertModel.as  |   3 +
 .../as/src/org/apache/flex/core/IUIBase.as      |   6 +
 .../as/src/org/apache/flex/core/UIBase.as       |  10 ++
 .../apache/flex/html/staticControls/Alert.as    | 124 ++++++++++++++
 .../apache/flex/html/staticControls/Button.as   |  11 ++
 .../flex/html/staticControls/ControlBar.as      |   2 +
 .../flex/html/staticControls/SimpleAlert.as     |  18 +-
 .../apache/flex/html/staticControls/TitleBar.as |  35 ++--
 .../flex/html/staticControls/beads/AlertBead.as | 166 +++++++++++++++++++
 .../beads/AlertMeasurementBead.as               |  46 +++++
 .../beads/ControlBarMeasurementBead.as          |  73 ++++++++
 .../html/staticControls/beads/IAlertBead.as     |  27 +++
 .../staticControls/beads/ISimpleAlertBead.as    |   6 +-
 .../staticControls/beads/SimpleAlertBead.as     |  52 ------
 .../html/staticControls/beads/TextButtonBead.as |   6 +-
 .../beads/TextButtonMeasurementBead.as          |  50 ++++++
 .../beads/TextFieldLabelMeasurementBead.as      |   1 +
 .../beads/TitleBarMeasurementBead.as            |  64 +++++++
 .../staticControls/beads/models/AlertModel.as   |  14 ++
 .../html/staticControls/supportClasses/PopUp.as |  49 ------
 23 files changed, 655 insertions(+), 128 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/frameworks/as/basic-manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/basic-manifest.xml b/frameworks/as/basic-manifest.xml
index e8f05ff..6bed8a7 100644
--- a/frameworks/as/basic-manifest.xml
+++ b/frameworks/as/basic-manifest.xml
@@ -52,7 +52,7 @@
     <component id="NonVirtualVerticalLayout" class="org.apache.flex.html.staticControls.beads.layouts.NonVirtualVerticalLayout"/>
     <component id="NonVirtualHorizontalLayout" class="org.apache.flex.html.staticControls.beads.layouts.NonVirtualHorizontalLayout"/>
     <component id="PanelBead" class="org.apache.flex.html.staticControls.beads.PanelBead"/>
-    <component id="PopUp" class="org.apache.flex.html.staticControls.supportClasses.PopUp"/>
     <component id="SimpleAlert" class="org.apache.flex.html.staticControls.SimpleAlert"/>
+    <component id="Alert" class="org.apache.flex.html.staticControls.Alert"/>
 
 </componentPackage>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/frameworks/as/defaults.css
----------------------------------------------------------------------
diff --git a/frameworks/as/defaults.css b/frameworks/as/defaults.css
index fadcab6..a68bb5f 100644
--- a/frameworks/as/defaults.css
+++ b/frameworks/as/defaults.css
@@ -111,6 +111,7 @@ RadioButton
 TextButton
 {
 	ITextButtonBead: ClassReference("org.apache.flex.html.staticControls.beads.CSSTextButtonBead");
+    iMeasurementBead: ClassReference("org.apache.flex.html.staticControls.beads.TextButtonMeasurementBead");
 }
 
 TextInput
@@ -124,11 +125,13 @@ TitleBar
 {
     ITitleBarModel: ClassReference("org.apache.flex.html.staticControls.beads.models.TitleBarModel");
     ILayoutBead: ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtualHorizontalLayout");
+    iMeasurementBead: ClassReference("org.apache.flex.html.staticControls.beads.TitleBarMeasurementBead");
 }
 
 ControlBar
 {
     ILayoutBead: ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtualHorizontalLayout");
+    iMeasurementBead: ClassReference("org.apache.flex.html.staticControls.beads.ControlBarMeasurementBead");
 }
 
 Panel
@@ -141,7 +144,16 @@ SimpleAlert
 {
     IAlertModel: ClassReference("org.apache.flex.html.staticControls.beads.models.AlertModel");
     IAlertBead:  ClassReference("org.apache.flex.html.staticControls.beads.SimpleAlertBead");
-    IPopUp: ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDownListList");
+}
+
+Alert
+{
+    IAlertModel: ClassReference("org.apache.flex.html.staticControls.beads.models.AlertModel");
+    IAlertBead:  ClassReference("org.apache.flex.html.staticControls.beads.AlertBead");
+	background-color: #FFFFFF;
+	border-style: solid;
+	border-color: #000000;
+	border-thickness: 2;
 }
 
 /* HTML5 */

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/frameworks/as/src/FlexJSUIClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/FlexJSUIClasses.as b/frameworks/as/src/FlexJSUIClasses.as
index f39654c..42b2c55 100644
--- a/frameworks/as/src/FlexJSUIClasses.as
+++ b/frameworks/as/src/FlexJSUIClasses.as
@@ -40,7 +40,11 @@ internal class FlexJSUIClasses
     import org.apache.flex.html.staticControls.beads.ContainerBead; ContainerBead;
 	import org.apache.flex.html.staticControls.beads.PanelBead; PanelBead;
 	import org.apache.flex.html.staticControls.beads.SimpleAlertBead; SimpleAlertBead;
+	import org.apache.flex.html.staticControls.beads.AlertBead; AlertBead;
 	import org.apache.flex.html.staticControls.beads.TextFieldLabelMeasurementBead; TextFieldLabelMeasurementBead;
+	import org.apache.flex.html.staticControls.beads.TextButtonMeasurementBead; TextButtonMeasurementBead;
+	import org.apache.flex.html.staticControls.beads.TitleBarMeasurementBead; TitleBarMeasurementBead;
+	import org.apache.flex.html.staticControls.beads.ControlBarMeasurementBead; ControlBarMeasurementBead;
 	import org.apache.flex.html.staticControls.beads.models.TextModel; TextModel;
 	import org.apache.flex.html.staticControls.beads.models.ComboBoxModel; ComboBoxModel;
 	import org.apache.flex.html.staticControls.beads.models.ToggleButtonModel; ToggleButtonModel;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/frameworks/as/src/org/apache/flex/core/IAlertModel.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/core/IAlertModel.as b/frameworks/as/src/org/apache/flex/core/IAlertModel.as
index 8a3337e..577ba2e 100644
--- a/frameworks/as/src/org/apache/flex/core/IAlertModel.as
+++ b/frameworks/as/src/org/apache/flex/core/IAlertModel.as
@@ -33,5 +33,8 @@ package org.apache.flex.core
 		
 		function get htmlMessage():String;
 		function set htmlMessage(value:String):void;
+		
+		function get flags():uint;
+		function set flags(value:uint):void;
 	}
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/frameworks/as/src/org/apache/flex/core/IUIBase.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/core/IUIBase.as b/frameworks/as/src/org/apache/flex/core/IUIBase.as
index 1042315..934cde0 100644
--- a/frameworks/as/src/org/apache/flex/core/IUIBase.as
+++ b/frameworks/as/src/org/apache/flex/core/IUIBase.as
@@ -29,5 +29,11 @@ package org.apache.flex.core
 		function set className(value:String):void;
 		
 		function addToParent(p:Object):void;
+		
+		function getBeadByType(classOrInterface:Class):IBead;
+		function addBead(bead:IBead):void;
+		function removeBead(value:IBead):IBead;
+		
+		function get measurementBead():IMeasurementBead;
 	}
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/frameworks/as/src/org/apache/flex/core/UIBase.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/core/UIBase.as b/frameworks/as/src/org/apache/flex/core/UIBase.as
index bad368d..34187ee 100644
--- a/frameworks/as/src/org/apache/flex/core/UIBase.as
+++ b/frameworks/as/src/org/apache/flex/core/UIBase.as
@@ -213,6 +213,16 @@ package org.apache.flex.core
             return this;
         }
          */
+		
+		public function get measurementBead() : IMeasurementBead
+		{
+			var measurementBead:IMeasurementBead = getBeadByType(IMeasurementBead) as IMeasurementBead;
+			if( measurementBead == null ) {
+				addBead(measurementBead = new (ValuesManager.valuesImpl.getValue(this, "iMeasurementBead"))
as IMeasurementBead);
+			}
+			
+			return measurementBead;
+		}
         
 	}
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/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
new file mode 100644
index 0000000..80b1c6b
--- /dev/null
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/Alert.as
@@ -0,0 +1,124 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.IBead;
+	import org.apache.flex.core.IInitSkin;
+	import org.apache.flex.core.IPopUp;
+	import org.apache.flex.core.UIBase;
+	import org.apache.flex.core.ValuesManager;
+	import org.apache.flex.events.Event;
+	import org.apache.flex.events.IEventDispatcher;
+	import org.apache.flex.html.staticControls.beads.IAlertBead;
+	import org.apache.flex.html.staticControls.beads.SingleLineBorderBead;
+	import org.apache.flex.html.staticControls.beads.SolidBackgroundBead;
+	import org.apache.flex.html.staticControls.beads.models.SingleLineBorderModel;
+	import org.apache.flex.html.staticControls.supportClasses.Border;
+	
+	public class Alert extends UIBase implements IInitSkin, 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();
+		}
+		
+		// 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.initModel();
+			alert.message = text;
+			alert.title  = title;
+			alert.flags = flags;
+			alert.initSkin();
+			
+			alert.show(parent);
+		}
+		
+		public function show(parent:Object) : void
+		{
+			addToParent(parent);
+		}
+		
+		override public function initModel():void
+		{
+			if (getBeadByType(IAlertModel) == null)
+				addBead(new (ValuesManager.valuesImpl.getValue(this, "iAlertModel")) as IBead);
+		}
+		
+		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;
+		}
+		
+		
+		public function initSkin():void
+		{
+			var bdr:Border = new Border();
+			bdr.addToParent(this);
+			bdr.model = new SingleLineBorderModel();
+			bdr.addBead(new SingleLineBorderBead());
+			
+			var bb:SolidBackgroundBead = new SolidBackgroundBead();
+			bb.backgroundColor = 0xff0000;
+			addBead(bb);
+			
+			if( getBeadByType(IAlertBead) == null ) {
+				addBead(new (ValuesManager.valuesImpl.getValue(this, "iAlertBead")) as IBead);
+			}
+			
+			addEventListener("close",handleAlertClose);
+		}
+		
+		private function handleAlertClose(event:Event):void
+		{
+			this.parent.removeChild(this);
+		}
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/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
index f5bc308..ec51f7e 100644
--- a/frameworks/as/src/org/apache/flex/html/staticControls/Button.as
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/Button.as
@@ -27,6 +27,7 @@ package org.apache.flex.html.staticControls
 	import org.apache.flex.core.IBeadModel;
 	import org.apache.flex.core.IInitModel;
 	import org.apache.flex.core.IInitSkin;
+	import org.apache.flex.core.IMeasurementBead;
 	import org.apache.flex.core.IStrand;
 	import org.apache.flex.core.IUIBase;
 	import org.apache.flex.core.UIBase;
@@ -200,5 +201,15 @@ package org.apache.flex.html.staticControls
 				p.addChild(this);
 			}
 		}
+		
+		public function get measurementBead() : IMeasurementBead
+		{
+			var measurementBead:IMeasurementBead = getBeadByType(IMeasurementBead) as IMeasurementBead;
+			if( measurementBead == null ) {
+				addBead(measurementBead = new (ValuesManager.valuesImpl.getValue(this, "iMeasurementBead"))
as IMeasurementBead);
+			}
+			
+			return measurementBead;
+		}
 	}
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/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
index 6514041..d2cdca8 100644
--- a/frameworks/as/src/org/apache/flex/html/staticControls/ControlBar.as
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/ControlBar.as
@@ -18,6 +18,8 @@
 ////////////////////////////////////////////////////////////////////////////////
 package org.apache.flex.html.staticControls
 {
+	import flash.display.DisplayObject;
+	
 	import org.apache.flex.core.IBead;
 	import org.apache.flex.core.IContainer;
 	import org.apache.flex.core.IInitSkin;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/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
index 4482e2c..d4d7b7d 100644
--- a/frameworks/as/src/org/apache/flex/html/staticControls/SimpleAlert.as
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/SimpleAlert.as
@@ -23,13 +23,15 @@ package org.apache.flex.html.staticControls
 	import org.apache.flex.core.IAlertModel;
 	import org.apache.flex.core.IBead;
 	import org.apache.flex.core.IInitSkin;
+	import org.apache.flex.core.IPopUp;
 	import org.apache.flex.core.UIBase;
 	import org.apache.flex.core.ValuesManager;
+	import org.apache.flex.events.Event;
 	import org.apache.flex.html.staticControls.beads.ISimpleAlertBead;
 	
 	[Event(name="close", type="org.apache.flex.events.Event")]
 	
-	public class SimpleAlert extends UIBase implements IInitSkin
+	public class SimpleAlert extends UIBase implements IInitSkin, IPopUp
 	{
 		public function SimpleAlert()
 		{
@@ -65,16 +67,13 @@ package org.apache.flex.html.staticControls
 			if( getBeadByType(ISimpleAlertBead) == null ) {
 				addBead(new (ValuesManager.valuesImpl.getValue(this, "iAlertBead")) as IBead);
 			}
+			
+			addEventListener("close",handleAlertClose);
 		}
 		
 		public function show(parent:Object) : void
 		{
-			(getBeadByType(ISimpleAlertBead) as ISimpleAlertBead).showPopUp(parent as DisplayObjectContainer);
-		}
-		
-		public function hide() : void
-		{
-			(getBeadByType(ISimpleAlertBead) as ISimpleAlertBead).hidePopUp();
+			addToParent(parent);
 		}
 		
 		static public function show(message:String, parent:Object):SimpleAlert
@@ -87,5 +86,10 @@ package org.apache.flex.html.staticControls
 			
 			return alert;
 		}
+		
+		private function handleAlertClose(event:Event):void
+		{
+			this.parent.removeChild(this);
+		}
 	}
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/frameworks/as/src/org/apache/flex/html/staticControls/TitleBar.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/TitleBar.as b/frameworks/as/src/org/apache/flex/html/staticControls/TitleBar.as
index bac0fb7..7c364c8 100644
--- a/frameworks/as/src/org/apache/flex/html/staticControls/TitleBar.as
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/TitleBar.as
@@ -21,9 +21,11 @@ package org.apache.flex.html.staticControls
 	import flash.display.Shape;
 	
 	import org.apache.flex.core.IBead;
+	import org.apache.flex.core.IMeasurementBead;
 	import org.apache.flex.core.ITitleBarModel;
 	import org.apache.flex.core.ValuesManager;
 	import org.apache.flex.events.Event;
+	import org.apache.flex.html.staticControls.Label;
 	import org.apache.flex.html.staticControls.beads.layouts.NonVirtualHorizontalLayout;
 	
 	public class TitleBar extends Container
@@ -72,8 +74,17 @@ package org.apache.flex.html.staticControls
 			model.addEventListener('showCloseButtonChange',handlePropertyChange);
 		}
 		
-		private var titleLabel:Label;
-		private var closeButton:Button;
+		private var _titleLabel:Label;
+		public function get titleLabel():Label
+		{
+			return _titleLabel;
+		}
+		
+		private var _closeButton:Button;
+		public function get closeButton():Button
+		{
+			return closeButton;
+		}
 		
 		override public function initSkin():void
 		{
@@ -83,13 +94,13 @@ package org.apache.flex.html.staticControls
 				addBead(new (ValuesManager.valuesImpl.getValue(this, "iLayoutBead")) as IBead);
 			
 			// add the label for the title and the button for the close
-			titleLabel = createTitle();
-			titleLabel.className = className;
-			titleLabel.addToParent(this);
+			_titleLabel = createTitle();
+			_titleLabel.className = className;
+			_titleLabel.addToParent(this);
 			
-			closeButton = createCloseButton();
-			closeButton.className = className;
-			closeButton.addToParent(this);
+			_closeButton = createCloseButton();
+			_closeButton.className = className;
+			_closeButton.addToParent(this);
 			
 			childrenAdded();
 			
@@ -103,10 +114,14 @@ package org.apache.flex.html.staticControls
 				if( closeButton ) closeButton.visible = showCloseButton;
 			}
 			else if( event.type == "titleChange" ) {
-				if( titleLabel ) titleLabel.text = title;
+				if( titleLabel ) {
+					titleLabel.text = title;
+				}
 			}
 			else if( event.type == "htmlTitleChange" ) {
-				if( titleLabel ) titleLabel.html = htmlTitle;
+				if( titleLabel ) {
+					titleLabel.html = htmlTitle;
+				}
 			}
 			
 			dispatchEvent(new Event("widthChanged"));

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/frameworks/as/src/org/apache/flex/html/staticControls/beads/AlertBead.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/beads/AlertBead.as b/frameworks/as/src/org/apache/flex/html/staticControls/beads/AlertBead.as
new file mode 100644
index 0000000..6f4fb4e
--- /dev/null
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/beads/AlertBead.as
@@ -0,0 +1,166 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.beads
+{
+	import flash.display.DisplayObject;
+	import flash.display.DisplayObjectContainer;
+	
+	import org.apache.flex.core.IAlertModel;
+	import org.apache.flex.core.IInitModel;
+	import org.apache.flex.core.IInitSkin;
+	import org.apache.flex.core.IMeasurementBead;
+	import org.apache.flex.core.IStrand;
+	import org.apache.flex.core.UIBase;
+	import org.apache.flex.core.ValuesManager;
+	import org.apache.flex.createjs.staticControls.Label;
+	import org.apache.flex.events.Event;
+	import org.apache.flex.events.IEventDispatcher;
+	import org.apache.flex.html.staticControls.Alert;
+	import org.apache.flex.html.staticControls.ControlBar;
+	import org.apache.flex.html.staticControls.TextButton;
+	import org.apache.flex.html.staticControls.TitleBar;
+	
+	public class AlertBead implements IAlertBead
+	{
+		public function AlertBead()
+		{
+		}
+		
+		private var _titleBar:TitleBar;
+		private var _controlBar:ControlBar;
+		private var _label:Label;
+		private var _okButton:TextButton;
+		private var _cancelButton:TextButton;
+		private var _yesButton:TextButton;
+		private var _noButton:TextButton;
+		
+		private var _strand:IStrand;
+		public function set strand(value:IStrand):void
+		{
+			_strand = value;
+			
+			var flags:uint = IAlertModel(UIBase(_strand).model).flags;
+			if( flags & Alert.OK ) {
+				_okButton = new TextButton();
+				_okButton.initModel();
+				_okButton.text = "OK";
+				_okButton.initSkin();
+				_okButton.addEventListener("click",handleOK);
+			}
+			if( flags & Alert.CANCEL ) {
+				_cancelButton = new TextButton();
+				_cancelButton.initModel();
+				_cancelButton.text = "Cancel";
+				_cancelButton.initSkin();
+				_cancelButton.addEventListener("click",handleCancel);
+			}
+			if( flags & Alert.YES ) {
+				_yesButton = new TextButton();
+				_yesButton.initModel();
+				_yesButton.text = "YES";
+				_yesButton.initSkin();
+				_yesButton.addEventListener("click",handleYes);
+			}
+			if( flags & Alert.NO ) {
+				_noButton = new TextButton();
+				_noButton.initModel();
+				_noButton.text = "NO";
+				_noButton.initSkin();
+				_noButton.addEventListener("click",handleNo);
+			}
+			
+			_titleBar = new TitleBar();
+			_titleBar.initModel();
+			_titleBar.title = IAlertModel(UIBase(_strand).model).title;
+			_titleBar.initSkin();
+			
+			_label = new Label();
+			_label.initModel();
+			_label.text = IAlertModel(UIBase(_strand).model).message;
+			_label.initSkin();
+			
+			_controlBar = new ControlBar();
+			_controlBar.initModel();
+			_controlBar.initSkin();
+			if( _okButton ) _okButton.addToParent(_controlBar);
+			if( _cancelButton ) _cancelButton.addToParent(_controlBar);
+			if( _yesButton  ) _yesButton.addToParent(_controlBar);
+			if( _noButton ) _noButton.addToParent(_controlBar);
+			
+			_titleBar.addToParent(_strand);
+			_controlBar.addToParent(_strand);
+			_label.addToParent(_strand);
+			
+			sizeHandler(null);
+		}
+		
+		private function sizeHandler(event:Event):void
+		{
+			var labelMeasure:IMeasurementBead = _label.measurementBead;
+			var titleMeasure:IMeasurementBead = _titleBar.measurementBead;
+			var ctrlMeasure:IMeasurementBead  = _controlBar.measurementBead;
+			var maxWidth:Number = Math.max(titleMeasure.measuredWidth, ctrlMeasure.measuredWidth,
labelMeasure.measuredWidth);
+			
+			_titleBar.x = 0;
+			_titleBar.y = 0;
+			_titleBar.width = maxWidth;
+			
+			// content placement here
+			_label.x = 0;
+			_label.y = _titleBar.height + 2;
+			_label.width = maxWidth;
+			
+			_controlBar.x = 0;
+			_controlBar.y = _label.y + _label.height + 2;
+			_controlBar.width = maxWidth;
+			
+			UIBase(_strand).width = maxWidth;
+			UIBase(_strand).height = _controlBar.y + _controlBar.height;
+		}
+		
+		private function handleOK(event:Event):void
+		{
+			// create some custom event where the detail value
+			// is the OK button flag. Do same for other event handlers
+			dispatchCloseEvent(Alert.OK);
+		}
+		
+		private function handleCancel(event:Event):void
+		{
+			dispatchCloseEvent(Alert.CANCEL);
+		}
+		
+		private function handleYes(event:Event):void
+		{
+			dispatchCloseEvent(Alert.YES);
+		}
+		
+		private function handleNo(event:Event):void
+		{
+			dispatchCloseEvent(Alert.NO);
+		}
+		
+		public function dispatchCloseEvent(buttonFlag:uint):void
+		{
+			// TO DO: buttonFlag should be part of the event
+			var newEvent:Event = new Event("close",true);
+			IEventDispatcher(_strand).dispatchEvent(newEvent);
+		}
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/frameworks/as/src/org/apache/flex/html/staticControls/beads/AlertMeasurementBead.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/beads/AlertMeasurementBead.as
b/frameworks/as/src/org/apache/flex/html/staticControls/beads/AlertMeasurementBead.as
new file mode 100644
index 0000000..8199b28
--- /dev/null
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/beads/AlertMeasurementBead.as
@@ -0,0 +1,46 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.beads
+{
+	import org.apache.flex.core.IMeasurementBead;
+	import org.apache.flex.core.IStrand;
+	
+	public class AlertMeasurementBead implements IMeasurementBead
+	{
+		public function AlertMeasurementBead()
+		{
+		}
+		
+		public function get measuredWidth():Number
+		{
+			return 0;
+		}
+		
+		public function get measuredHeight():Number
+		{
+			return 0;
+		}
+		
+		private var _strand:IStrand;
+		public function set strand(value:IStrand):void
+		{
+			_strand = value;
+		}
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/frameworks/as/src/org/apache/flex/html/staticControls/beads/ControlBarMeasurementBead.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/beads/ControlBarMeasurementBead.as
b/frameworks/as/src/org/apache/flex/html/staticControls/beads/ControlBarMeasurementBead.as
new file mode 100644
index 0000000..84d8cd1
--- /dev/null
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/beads/ControlBarMeasurementBead.as
@@ -0,0 +1,73 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.beads
+{
+	import flash.display.DisplayObjectContainer;
+	
+	import org.apache.flex.core.IMeasurementBead;
+	import org.apache.flex.core.IStrand;
+	import org.apache.flex.core.IUIBase;
+	import org.apache.flex.html.staticControls.Container;
+	
+	public class ControlBarMeasurementBead implements IMeasurementBead
+	{
+		public function ControlBarMeasurementBead()
+		{
+		}
+		
+		public function get measuredWidth():Number
+		{
+			// Note: the measurement should problably be done by the ControlBar's layout manager bead
+			// since it would know the arrangement of the items and how far apart they are and if
+			// there are margins and paddings and gaps involved.
+			var mwidth:Number = 0;
+			var children:Array = Container(_strand).getChildren();
+			var n:int = children.length;
+			for(var i:int=0; i < n; i++) {
+				var child:IUIBase = children[i] as IUIBase;
+				if( child == null ) continue;
+				var childMeasure:IMeasurementBead = child.measurementBead;
+				mwidth += childMeasure.measuredWidth;
+			}
+			return mwidth;
+		}
+		
+		public function get measuredHeight():Number
+		{
+			// Note: the measurement should problably be done by the ControlBar's layout manager bead
+			// since it would know the arrangement of the items and how far apart they are and if
+			// there are margins and paddings and gaps involved.
+			var mheight:Number = 0;
+			var n:int = DisplayObjectContainer(_strand).numChildren;
+			for(var i:int=0; i < n; i++) {
+				var child:IUIBase = DisplayObjectContainer(_strand).getChildAt(i) as IUIBase;
+				if( child == null ) continue;
+				var childMeasure:IMeasurementBead = child.measurementBead;
+				mheight += childMeasure.measuredHeight;
+			}
+			return mheight;
+		}
+		
+		private var _strand:IStrand;
+		public function set strand(value:IStrand):void
+		{
+			_strand = value;
+		}
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/frameworks/as/src/org/apache/flex/html/staticControls/beads/IAlertBead.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/beads/IAlertBead.as b/frameworks/as/src/org/apache/flex/html/staticControls/beads/IAlertBead.as
new file mode 100644
index 0000000..3cd360b
--- /dev/null
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/beads/IAlertBead.as
@@ -0,0 +1,27 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.beads
+{	
+	import org.apache.flex.core.IBead;
+	
+	public interface IAlertBead extends IBead
+	{
+		
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/frameworks/as/src/org/apache/flex/html/staticControls/beads/ISimpleAlertBead.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/beads/ISimpleAlertBead.as
b/frameworks/as/src/org/apache/flex/html/staticControls/beads/ISimpleAlertBead.as
index 379413a..459b213 100644
--- a/frameworks/as/src/org/apache/flex/html/staticControls/beads/ISimpleAlertBead.as
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/beads/ISimpleAlertBead.as
@@ -17,14 +17,10 @@
 //
 ////////////////////////////////////////////////////////////////////////////////
 package org.apache.flex.html.staticControls.beads
-{
-	import flash.display.DisplayObjectContainer;
-	
+{	
 	import org.apache.flex.core.IBead;
 	
 	public interface ISimpleAlertBead extends IBead
 	{
-		function showPopUp(host:DisplayObjectContainer):void;
-		function hidePopUp():void;
 	}
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/frameworks/as/src/org/apache/flex/html/staticControls/beads/SimpleAlertBead.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/beads/SimpleAlertBead.as
b/frameworks/as/src/org/apache/flex/html/staticControls/beads/SimpleAlertBead.as
index 639f0b8..10f5606 100644
--- a/frameworks/as/src/org/apache/flex/html/staticControls/beads/SimpleAlertBead.as
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/beads/SimpleAlertBead.as
@@ -94,58 +94,6 @@ package org.apache.flex.html.staticControls.beads
 		{
 			var newEvent:Event = new Event("close");
 			IEventDispatcher(_strand).dispatchEvent(newEvent);
-			hidePopUp();
-		}
-		
-		
-		
-		private var _popUp:IStrand;
-		public function get popUp():IStrand
-		{
-			return _popUp;
-		}
-		
-		private var _popUpVisible:Boolean;
-		
-		public function get popUpVisible():Boolean
-		{
-			return _popUpVisible;
-		}
-		
-		public function showPopUp( host:DisplayObjectContainer ) : void
-		{
-			if (!_popUp)
-			{
-				var popUpClass:Class = ValuesManager.valuesImpl.getValue(_strand, "iPopUp") as Class;
-				_popUp = new popUpClass() as IStrand;
-				UIBase(_strand).addToParent(_popUp);
-				UIBase(_strand).x = 10;
-				UIBase(_strand).y = 10;
-			}
-
-			host.addChild(_popUp as DisplayObject);
-			if (_popUp is IInitModel)
-				IInitModel(_popUp).initModel();
-			if (_popUp is IInitSkin)
-				IInitSkin(_popUp).initSkin();
-			
-			UIBase(_popUp).width = UIBase(_strand).width + 20;
-			UIBase(_popUp).height = UIBase(_strand).height + 20;
-			
-			UIBase(_popUp).x = (host.width + UIBase(_strand).width)/2;
-			UIBase(_popUp).y = (host.height + UIBase(_strand).height)/2;
-			
-			_popUpVisible = true;
-		}
-		
-		public function hidePopUp() : void
-		{
-			if( _popUp )
-			{
-				DisplayObject(_popUp).parent.removeChild(_popUp as DisplayObject);
-			}
-			
-			_popUpVisible = false;
 		}
 	}
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextButtonBead.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextButtonBead.as
b/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextButtonBead.as
index 8bdf2a9..8f63425 100644
--- a/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextButtonBead.as
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextButtonBead.as
@@ -97,9 +97,9 @@ package org.apache.flex.html.staticControls.beads
 			html = textModel.html;
 		}
 		
-		private var upTextField:CSSTextField;
-		private var downTextField:CSSTextField;
-		private var overTextField:CSSTextField;
+		public var upTextField:CSSTextField;
+		public var downTextField:CSSTextField;
+		public var overTextField:CSSTextField;
 		
 		public function get text():String
 		{

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextButtonMeasurementBead.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextButtonMeasurementBead.as
b/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextButtonMeasurementBead.as
new file mode 100644
index 0000000..e5fbee2
--- /dev/null
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextButtonMeasurementBead.as
@@ -0,0 +1,50 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.beads
+{
+	import org.apache.flex.core.IMeasurementBead;
+	import org.apache.flex.core.IStrand;
+	
+	public class TextButtonMeasurementBead implements IMeasurementBead
+	{
+		public function TextButtonMeasurementBead()
+		{
+		}
+		
+		public function get measuredWidth():Number
+		{
+			var bead:TextButtonBead = _strand.getBeadByType(ITextButtonBead) as TextButtonBead;
+			if( bead ) return Math.max(bead.upTextField.textWidth,bead.downTextField.textWidth,bead.overTextField.textWidth);
+			else return 0;
+		}
+		
+		public function get measuredHeight():Number
+		{
+			var bead:TextButtonBead = _strand.getBeadByType(ITextButtonBead) as TextButtonBead;
+			if( bead ) return Math.max(bead.upTextField.textHeight,bead.downTextField.textHeight,bead.overTextField.textHeight);
+			else return 0;
+		}
+		
+		private var _strand:IStrand;
+		public function set strand(value:IStrand):void
+		{
+			_strand = value;
+		}
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextFieldLabelMeasurementBead.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextFieldLabelMeasurementBead.as
b/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextFieldLabelMeasurementBead.as
index f6ed3f0..d73a26c 100644
--- a/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextFieldLabelMeasurementBead.as
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextFieldLabelMeasurementBead.as
@@ -21,6 +21,7 @@ package org.apache.flex.html.staticControls.beads
 	import org.apache.flex.core.IMeasurementBead;
 	import org.apache.flex.core.IStrand;
 	import org.apache.flex.core.ITextBead;
+	import org.apache.flex.core.UIBase;
 	
 	public class TextFieldLabelMeasurementBead implements IMeasurementBead
 	{

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/frameworks/as/src/org/apache/flex/html/staticControls/beads/TitleBarMeasurementBead.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/beads/TitleBarMeasurementBead.as
b/frameworks/as/src/org/apache/flex/html/staticControls/beads/TitleBarMeasurementBead.as
new file mode 100644
index 0000000..221120a
--- /dev/null
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/beads/TitleBarMeasurementBead.as
@@ -0,0 +1,64 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.beads
+{
+	import org.apache.flex.core.IMeasurementBead;
+	import org.apache.flex.core.IStrand;
+	import org.apache.flex.core.ValuesManager;
+	import org.apache.flex.html.staticControls.TitleBar;
+	
+	public class TitleBarMeasurementBead implements IMeasurementBead
+	{
+		public function TitleBarMeasurementBead()
+		{
+		}
+		
+		public function get measuredWidth():Number
+		{
+			var mwidth:Number = 0;
+			var titleBar:TitleBar = _strand as TitleBar;
+			var labelMeasure:IMeasurementBead = titleBar.titleLabel.measurementBead;
+			mwidth = labelMeasure.measuredWidth;
+			if( titleBar.showCloseButton ) {
+				var buttonMeasure:IMeasurementBead = titleBar.closeButton.measurementBead;
+				mwidth += buttonMeasure.measuredWidth;
+			}
+			return mwidth;
+		}
+		
+		public function get measuredHeight():Number
+		{
+			var mheight:Number = 0;
+			var titleBar:TitleBar = _strand as TitleBar;
+			var labelMeasure:IMeasurementBead = titleBar.titleLabel.measurementBead;
+			mheight = labelMeasure.measuredHeight;
+			if( titleBar.showCloseButton ) {
+				var buttonMeasure:IMeasurementBead = titleBar.closeButton.measurementBead;
+				mheight = Math.max(mheight,buttonMeasure.measuredHeight);
+			}
+			return mheight;
+		}
+		
+		private var _strand:IStrand;
+		public function set strand(value:IStrand):void
+		{
+			_strand = value;
+		}
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/AlertModel.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/AlertModel.as
b/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/AlertModel.as
index 793ba9d..51ca335 100644
--- a/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/AlertModel.as
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/AlertModel.as
@@ -89,5 +89,19 @@ package org.apache.flex.html.staticControls.beads.models
 				dispatchEvent( new Event("htmlMessageChange") );
 			}
 		}
+		
+		private var _flags:uint;
+		public function get flags():uint
+		{
+			return _flags;
+		}
+		public function set flags(value:uint):void
+		{
+			if( value != _flags )
+			{
+				_flags = value;
+				dispatchEvent( new Event("flagsChange") );
+			}
+		}
 	}
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5e153cf7/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/PopUp.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/PopUp.as
b/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/PopUp.as
deleted file mode 100644
index cb014b8..0000000
--- a/frameworks/as/src/org/apache/flex/html/staticControls/supportClasses/PopUp.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.supportClasses
-{
-	import org.apache.flex.core.IPopUp;
-	import org.apache.flex.core.UIBase;
-	import org.apache.flex.html.staticControls.beads.SingleLineBorderBead;
-	import org.apache.flex.html.staticControls.beads.SolidBackgroundBead;
-	import org.apache.flex.html.staticControls.beads.models.SingleLineBorderModel;
-	
-	public class PopUp extends UIBase implements IPopUp
-	{
-		public function PopUp()
-		{
-			super();
-		}
-		
-		private var _border:Border;
-		private var _background:SolidBackgroundBead;
-		
-		public function initSkin():void
-		{			
-			_border = new Border();
-			_border.addToParent(this);
-			_border.model = new SingleLineBorderModel();
-			_border.addBead(new SingleLineBorderBead());
-			
-			_background = new SolidBackgroundBead();
-			_background.backgroundColor = 0xffffff;
-			addBead(_background);
-		}
-	}
-}
\ No newline at end of file


Mime
View raw message