This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 64a0795 fix maven examples
64a0795 is described below
commit 64a0795f6ddd71a0c7c2a8449c3b316fa3ea62b3
Author: Alex Harui <[email protected]>
AuthorDate: Tue Sep 11 13:05:31 2018 -0700
fix maven examples
---
.../royale/BE0004_Adding_an_item_to_a_Jewel_List.mxml | 4 +++-
.../src/main/royale/org/apache/royale/jewel/CheckBox.as | 17 +++++++++++++++++
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git
a/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/src/main/royale/BE0004_Adding_an_item_to_a_Jewel_List.mxml
b/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/src/main/royale/BE0004_Adding_an_item_to_a_Jewel_List.mxml
index 8fe8349..f8d451c 100644
---
a/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/src/main/royale/BE0004_Adding_an_item_to_a_Jewel_List.mxml
+++
b/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/src/main/royale/BE0004_Adding_an_item_to_a_Jewel_List.mxml
@@ -24,11 +24,13 @@
<fx:Script>
<![CDATA[
+ import org.apache.royale.events.MouseEvent;
+
private function changeHandler(event:Event):void {
selected.text = "Selected: " + list.selectedItem;
}
- private function clickHandler(event:Event):void {
+ private function clickHandler(event:MouseEvent):void {
avengersCharacters.addItem("Hawkeye");
}
]]>
diff --git
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/CheckBox.as
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/CheckBox.as
index 2380089..e0b310d 100644
---
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/CheckBox.as
+++
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/CheckBox.as
@@ -128,6 +128,23 @@ package org.apache.royale.jewel
IToggleButtonModel(model).selected = value;
}
+ /**
+ * The value associated with the CheckBox.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.9
+ */
+ public function get value():String
+ {
+ return IToggleButtonModel(model).html;
+ }
+ public function set value(newValue:String):void
+ {
+ IToggleButtonModel(model).html = newValue;
+ }
+
private function
internalMouseHandler(event:org.apache.royale.events.MouseEvent) : void
{
selected = !selected;