[Laszlo-checkins] r14120 - in openlaszlo/branches/4.2: . WEB-INF/lps/lfc/kernel/swf WEB-INF/lps/lfc/views lps/components/debugger

max@openlaszlo.org max at openlaszlo.org
Thu Jun 11 13:38:24 PDT 2009


Author: max
Date: 2009-06-11 13:38:22 -0700 (Thu, 11 Jun 2009)
New Revision: 14120

Modified:
   openlaszlo/branches/4.2/
   openlaszlo/branches/4.2/WEB-INF/lps/lfc/kernel/swf/LzSprite.as
   openlaszlo/branches/4.2/WEB-INF/lps/lfc/kernel/swf/LzTextSprite.as
   openlaszlo/branches/4.2/WEB-INF/lps/lfc/views/LaszloView.lzs
   openlaszlo/branches/4.2/lps/components/debugger/debugger.lzx
Log:
Merged revisions 13130-13131 via svnmerge from 
http://svn.openlaszlo.org/openlaszlo/trunk

.......
  r13130 | max | 2009-03-02 18:59:50 -0800 (Mon, 02 Mar 2009) | 16 lines
  
  Change 20090302-maxcarlson-F by maxcarlson at Bank.lan on 2009-03-02 06:36:52 PST
      in /Users/maxcarlson/openlaszlo/trunk-clean
      for http://svn.openlaszlo.org/openlaszlo/trunk
  
  Summary: Correct text and inputtext default values with accessibility on
  
  Bugs Fixed: LPP-7594 - IBM Jaws Accessibility support needed for Radioboxes and trees and Issues (partial)
  
  Technical Reviewer: promanik
  QA Reviewer: aalappat at laszlosystems.com 
  
  Details: LzTextSprite - Return string values from annotateAAimg() to follow setText() contract of expecting only string values.
  
  Tests: accimpl2.lzx from LPP-7594 no longer shows 'undefined' on the button.
.......
  r13131 | max | 2009-03-02 19:07:09 -0800 (Mon, 02 Mar 2009) | 18 lines
  
  Change 20090302-maxcarlson-l by maxcarlson at Bank.lan on 2009-03-02 06:09:18 PST
      in /Users/maxcarlson/openlaszlo/trunk-clean
      for http://svn.openlaszlo.org/openlaszlo/trunk
  
  Summary: Add sendAAEvent() API for accessibility
  
  Bugs Fixed: LPP-7594 - IBM Jaws Accessibility support needed for Radioboxes and trees and Issues (partial)
  
  Technical Reviewer: promanik
  QA Reviewer: aalappat at laszlosystems.com
  
  Details: LzSprite, LaszloView - Add implementation of sendAAEvent()
  
  debugger - Hide debugger from screen readers
  
  Tests: See accimpl2.lzx from LPP-7594
.......



Property changes on: openlaszlo/branches/4.2
___________________________________________________________________
Name: svnmerge-integrated
   - /openlaszlo/branches/4.1:1-10153 /openlaszlo/branches/devildog:1-8432 /openlaszlo/branches/pagan-deities:1-7955,8825,10756-10920,10922-10928,10930-10935,11151,11207,11554 /openlaszlo/branches/paperpie:1-6504,6506-6574,6576-7135,7137-7235 /openlaszlo/branches/wafflecone:1-5746,5818-6068,6070-6205,6207-6213,6216-6265,6267-6368,6370-6431,6433-6450,6497,6509,6661,7097,7872 /openlaszlo/trunk:1-12154,12172-12175,12177-12185,12187-12194,12196,12201,12208,12229,12251-12252,12254-12255,12257-12258,12260,12262-12266,12268-12269,12271-12275,12278-12285,12303,12318-12323,12340-12348,12352,12354-12358,12360-12361,12363,12365-12367,12369-12371,12375-12378,12380-12389,12391,12394-12396,12399-12400,12402-12403,12406-12416,12419-12422,12424-12429,12431-12433,12435,12437-12441,12443,12445,12447,12449-12451,12453-12454,12457-12460,12464,12466-12475,12477-12480,12482-12490,12493-12495,12499-12502,12507-12510,12512,12514-12520,12522,12525-12531,12534-12540,12542,12545,12548-12554,12557-12561,12564,12566-12568,12571,12574-12576,12578,12580,12583-12584,12586-12587,12589,12592-12596,12598-12600,12602-12609,12611-12615,12617,12619-12621,12623,12625,12628-12631,12633-12635,12637,12639,12642,12644,12647-12653,12656,12658,12660,12662-12666,12668-12694,12696,12698-12704,12708-12710,12712-12721,12723-12729,12731-12742,12745-12752,12754-12784,12786-12791,12793-12798,12800-12801,12803,12805-12808,12810-12812,12814,12816-12821,12825-12833,12835-12837,12839-12841,12847,12849-12859,12863-12883,12885-12895,12897-12906,12908-12915,12917-12922,12924-12934,12937-12940,12943-12944,12946-12947,12950-12952,12955-12964,12966-12969,12971,12973-12977,12979-12993,12997-12999,13001-13003,13006-13007,13010-13015,13017-13020,13022-13024,13026-13031,13033,13035-13037,13039-13040,13043,13046-13052,13055-13060,13062-13069,13071-13072,13074,13076-13085,13087-13093,13095-13101,13103-13104,13106,13108-13110,13112,13114-13122,13125-13126,13128-13129,13132-13136,13139-13140,13142,13147,13157-13158,13163,13167,13176,13186,13188,13195,13200,13225,13243,1327!
 2,13345,
13428,13453-13454,13456-13458,13460-13465,13469-13471,13474-13479,13481-13482,13484-13485,13487-13496,13500-13501,13503,13505,13507-13508,13510,13512-13515,13518-13522,13524,13527,13529,13531,13534-13536,13541-13545,13548-13550,13552-13553,13555-13556,13558,13560-13561,13564-13565,13567-13571,13574,13576-13577,13579-13580,13582-13585,13587,13590-13596,13599-13600,13602-13604,13606-13608,13610,13612,13614-13615,13619-13626,13628-13629,13631-13641,13643-13663,13665,13667-13670,13672,13674,13676-13679,13682,13684-13685,13689-13690,13692-13694,13696-13697,13700,13702,13704-13708,13710,13712-13713,13716,13718-13728,13732-13733,13735-13739,13816
   + /openlaszlo/branches/4.1:1-10153 /openlaszlo/branches/devildog:1-8432 /openlaszlo/branches/pagan-deities:1-7955,8825,10756-10920,10922-10928,10930-10935,11151,11207,11554 /openlaszlo/branches/paperpie:1-6504,6506-6574,6576-7135,7137-7235 /openlaszlo/branches/wafflecone:1-5746,5818-6068,6070-6205,6207-6213,6216-6265,6267-6368,6370-6431,6433-6450,6497,6509,6661,7097,7872 /openlaszlo/trunk:1-12154,12172-12175,12177-12185,12187-12194,12196,12201,12208,12229,12251-12252,12254-12255,12257-12258,12260,12262-12266,12268-12269,12271-12275,12278-12285,12303,12318-12323,12340-12348,12352,12354-12358,12360-12361,12363,12365-12367,12369-12371,12375-12378,12380-12389,12391,12394-12396,12399-12400,12402-12403,12406-12416,12419-12422,12424-12429,12431-12433,12435,12437-12441,12443,12445,12447,12449-12451,12453-12454,12457-12460,12464,12466-12475,12477-12480,12482-12490,12493-12495,12499-12502,12507-12510,12512,12514-12520,12522,12525-12531,12534-12540,12542,12545,12548-12554,12557-12561,12564,12566-12568,12571,12574-12576,12578,12580,12583-12584,12586-12587,12589,12592-12596,12598-12600,12602-12609,12611-12615,12617,12619-12621,12623,12625,12628-12631,12633-12635,12637,12639,12642,12644,12647-12653,12656,12658,12660,12662-12666,12668-12694,12696,12698-12704,12708-12710,12712-12721,12723-12729,12731-12742,12745-12752,12754-12784,12786-12791,12793-12798,12800-12801,12803,12805-12808,12810-12812,12814,12816-12821,12825-12833,12835-12837,12839-12841,12847,12849-12859,12863-12883,12885-12895,12897-12906,12908-12915,12917-12922,12924-12934,12937-12940,12943-12944,12946-12947,12950-12952,12955-12964,12966-12969,12971,12973-12977,12979-12993,12997-12999,13001-13003,13006-13007,13010-13015,13017-13020,13022-13024,13026-13031,13033,13035-13037,13039-13040,13043,13046-13052,13055-13060,13062-13069,13071-13072,13074,13076-13085,13087-13093,13095-13101,13103-13104,13106,13108-13110,13112,13114-13122,13125-13126,13128-13136,13139-13140,13142,13147,13157-13158,13163,13167,13176,13186,13188,13195,13200,13225,13243,13272,13345,1342!
 8,13453-
13454,13456-13458,13460-13465,13469-13471,13474-13479,13481-13482,13484-13485,13487-13496,13500-13501,13503,13505,13507-13508,13510,13512-13515,13518-13522,13524,13527,13529,13531,13534-13536,13541-13545,13548-13550,13552-13553,13555-13556,13558,13560-13561,13564-13565,13567-13571,13574,13576-13577,13579-13580,13582-13585,13587,13590-13596,13599-13600,13602-13604,13606-13608,13610,13612,13614-13615,13619-13626,13628-13629,13631-13641,13643-13663,13665,13667-13670,13672,13674,13676-13679,13682,13684-13685,13689-13690,13692-13694,13696-13697,13700,13702,13704-13708,13710,13712-13713,13716,13718-13728,13732-13733,13735-13739,13816

Modified: openlaszlo/branches/4.2/WEB-INF/lps/lfc/kernel/swf/LzSprite.as
===================================================================
--- openlaszlo/branches/4.2/WEB-INF/lps/lfc/kernel/swf/LzSprite.as	2009-06-11 20:29:34 UTC (rev 14119)
+++ openlaszlo/branches/4.2/WEB-INF/lps/lfc/kernel/swf/LzSprite.as	2009-06-11 20:38:22 UTC (rev 14120)
@@ -144,7 +144,15 @@
     mc.tabIndex = s;
 }
 
+/**
+  * See view.sendAAEvent()
+  */
+LzSprite.prototype.sendAAEvent = function(childID, eventType, nonHTML){
+    var mc = this.getMCRef();
+    Accessibility.sendEvent(mc, childID, eventType, nonHTML);
+}
 
+
 // FIRST_SUBVIEW_DEPTH: This is so that default objects (such as
 // buttons, and in swf6 masks) can be attached above the view's
 // subviews.  11 is an arbitrary number chosen by Adam

Modified: openlaszlo/branches/4.2/WEB-INF/lps/lfc/kernel/swf/LzTextSprite.as
===================================================================
--- openlaszlo/branches/4.2/WEB-INF/lps/lfc/kernel/swf/LzTextSprite.as	2009-06-11 20:29:34 UTC (rev 14119)
+++ openlaszlo/branches/4.2/WEB-INF/lps/lfc/kernel/swf/LzTextSprite.as	2009-06-11 20:38:22 UTC (rev 14120)
@@ -450,8 +450,8 @@
   * @access private
   */
 LzTextSprite.prototype.annotateAAimg = function (txt) {
-    if (typeof(txt) == "undefined") { return; }
-    if (txt.length == 0) { return };
+    if (typeof(txt) == "undefined") { return ''; }
+    if (txt.length == 0) { return ''};
     
     var ntxt = "";
     // search for <img ...> strings

Modified: openlaszlo/branches/4.2/WEB-INF/lps/lfc/views/LaszloView.lzs
===================================================================
--- openlaszlo/branches/4.2/WEB-INF/lps/lfc/views/LaszloView.lzs	2009-06-11 20:29:34 UTC (rev 14119)
+++ openlaszlo/branches/4.2/WEB-INF/lps/lfc/views/LaszloView.lzs	2009-06-11 20:38:22 UTC (rev 14120)
@@ -917,7 +917,20 @@
     }
 }
 
+/** Sends an event to the Microsoft Active Accessibility API. Microsoft Active Accessibility handles that event and sends the event to any active screen reader application, which in turn reports the change to the user. For example, when a user toggles a RadioButton instance, the RadioButton's Accessibility Implementation calls Accessibility.sendEvent() with the eventType EVENT_OBJECT_STATECHANGE/0x800a. 
+  * @param number childID: The child id of the accessibility interface element to which the event applies (for example, an individual list item in a list box). Use 0 to indicate that the event applies to the DisplayObject supplied in the source parameter. 
+  * @param number eventType: A constant indicating the event type. Event names and values are a subset of the MSAA event constants. 
+  * @param boolean nonHTML: A Boolean indication of whether or not the event is one of the standard event types that can be generated from an HTML form. When set to true, this parameter helps prevent some problems that may occur with screen readers that interperet Flash content as part of the HTML page. The default value is false.  
+  */
+function sendAAEvent(childID:Number, eventType:Number, nonHTML:Boolean = false) {
+    if (this.capabilities.accessibility) {
+        this.sprite.sendAAEvent(childID, eventType, nonHTML);
+    } else if ($debug) {
+        LzView.__warnCapability('view.sendAAEvent()', 'accessibility'); 
+    }
+}
 
+
 LzView.__LZdelayedSetters.layout = "$lzc$set_layout";
 LzView.earlySetters.clickregion = 7;
 LzView.earlySetters.stretches = 8;

Modified: openlaszlo/branches/4.2/lps/components/debugger/debugger.lzx
===================================================================
--- openlaszlo/branches/4.2/lps/components/debugger/debugger.lzx	2009-06-11 20:29:34 UTC (rev 14119)
+++ openlaszlo/branches/4.2/lps/components/debugger/debugger.lzx	2009-06-11 20:38:22 UTC (rev 14120)
@@ -110,6 +110,14 @@
        y="50%" x="5%" height="45%" width="90%"
        oninit="initEvalView()" pixellock="true">
 
+    <method name="init">
+        super.init();
+        // Hide from screen readers
+        if ($as2) {
+            var mc = this.getMCRef();
+            mc._accImpl = {stub: true};
+        }
+    </method>
     <!-- ATTRIBUTES -->
     <attribute name="title" value="" type="string" />
     <attribute name="closeable" value="true"/> 



More information about the Laszlo-checkins mailing list