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 2014/10/02 21:59:04 UTC
[8/8] git commit: [flex-asjs] [refs/heads/develop] - add more change
events, and tweak names of a few events
add more change events, and tweak names of a few events
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/36f1ce4c
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/36f1ce4c
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/36f1ce4c
Branch: refs/heads/develop
Commit: 36f1ce4ca764740bf638be05e22f986c10a8bb59
Parents: 337d223
Author: Alex Harui <ah...@apache.org>
Authored: Thu Oct 2 12:58:30 2014 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Oct 2 12:58:47 2014 -0700
----------------------------------------------------------------------
.../FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBase.as | 3 ++-
.../FlexJSUI/src/org/apache/flex/core/SimpleStatesImpl.as | 2 +-
.../as/projects/FlexJSUI/src/org/apache/flex/core/UIBase.as | 2 ++
.../as/projects/FlexJSUI/src/org/apache/flex/html/CheckBox.as | 1 +
.../as/projects/FlexJSUI/src/org/apache/flex/html/DropDownList.as | 2 ++
.../projects/FlexJSUI/src/org/apache/flex/html/NumericStepper.as | 3 ++-
6 files changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/36f1ce4c/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBase.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBase.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBase.as
index 1a63cac..5d5921c 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBase.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBase.as
@@ -193,6 +193,7 @@ package org.apache.flex.core
private var _currentState:String;
+ [Bindable("currentStateChange")]
/**
* The name of the current state.
*
@@ -211,7 +212,7 @@ package org.apache.flex.core
*/
public function set currentState(value:String):void
{
- var event:ValueChangeEvent = new ValueChangeEvent("currentStateChanged", false, false, _currentState, value)
+ var event:ValueChangeEvent = new ValueChangeEvent("currentStateChange", false, false, _currentState, value)
_currentState = value;
dispatchEvent(event);
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/36f1ce4c/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleStatesImpl.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleStatesImpl.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleStatesImpl.as
index 1f5dd4d..e878440 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleStatesImpl.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleStatesImpl.as
@@ -69,7 +69,7 @@ package org.apache.flex.core
public function set strand(value:IStrand):void
{
_strand = value;
- IEventDispatcher(_strand).addEventListener("currentStateChanged", stateChangeHandler);
+ IEventDispatcher(_strand).addEventListener("currentStateChange", stateChangeHandler);
}
private function stateChangeHandler(event:ValueChangeEvent):void
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/36f1ce4c/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/UIBase.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/UIBase.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/UIBase.as
index 8965db8..de1816e 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/UIBase.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/UIBase.as
@@ -213,6 +213,7 @@ package org.apache.flex.core
private var _width:Number;
+ [Bindable("widthChanged")]
[PercentProxy("percentWidth")]
/**
* The width of the component. If no width has been previously
@@ -274,6 +275,7 @@ package org.apache.flex.core
private var _height:Number;
+ [Bindable("heightChanged")]
[PercentProxy("percentHeight")]
/**
* The height of the component. If no height has been previously
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/36f1ce4c/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/CheckBox.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/CheckBox.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/CheckBox.as
index 7fa5601..b718a95 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/CheckBox.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/CheckBox.as
@@ -86,6 +86,7 @@ package org.apache.flex.html
IToggleButtonModel(model).text = value;
}
+ [Bindable("change")]
/**
* <code>true</code> if the check mark is displayed.
*
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/36f1ce4c/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/DropDownList.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/DropDownList.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/DropDownList.as
index 9c60f85..43b34ea 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/DropDownList.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/DropDownList.as
@@ -90,6 +90,7 @@ package org.apache.flex.html
ISelectionModel(model).dataProvider = value;
}
+ [Bindable("change")]
/**
* @copy org.apache.flex.core.ISelectionModel#selectedIndex
*
@@ -112,6 +113,7 @@ package org.apache.flex.html
}
+ [Bindable("change")]
/**
* @copy org.apache.flex.core.ISelectionModel#selectedItem
*
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/36f1ce4c/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/NumericStepper.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/NumericStepper.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/NumericStepper.as
index ef8de09..b7e6c13 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/NumericStepper.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/NumericStepper.as
@@ -20,7 +20,7 @@ package org.apache.flex.html
{
import org.apache.flex.core.IRangeModel;
- [Event(name="valueChanged", type="org.apache.flex.events.Event")]
+ [Event(name="valueChange", type="org.apache.flex.events.Event")]
/**
* The NumericStepper class is a component that displays a numeric
@@ -51,6 +51,7 @@ package org.apache.flex.html
super();
}
+ [Bindable("valueChange")]
/**
* The current value of the control.
*