[NUI][ATSPI] Default accessibility support for Picker components
authorWoochanlee <wc0917.lee@samsung.com>
Wed, 26 May 2021 05:39:51 +0000 (14:39 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 27 May 2021 02:40:59 +0000 (11:40 +0900)
src/Tizen.NUI.Components/Controls/DatePicker.cs
src/Tizen.NUI.Components/Controls/Picker.cs
src/Tizen.NUI.Components/Controls/TimePicker.cs

index b33a9c4..d70b3c1 100755 (executable)
@@ -211,6 +211,7 @@ namespace Tizen.NUI.Components
         public override void OnInitialize()
         {
             base.OnInitialize();
+            SetAccessibilityConstructor(Role.DateEditor, AccessibilityInterface.Value);
 
             dayPicker = new Picker()
             {
@@ -244,6 +245,7 @@ namespace Tizen.NUI.Components
                          Justification = "The CellPadding will be dispose when the date picker disposed")]
         private void Initialize()
         {
+            AccessibilityHighlightable = true;
             HeightSpecification = LayoutParamPolicies.MatchParent;
 
             Layout = new LinearLayout() { 
index 83c12ec..d4d549f 100755 (executable)
@@ -247,6 +247,14 @@ namespace Tizen.NUI.Components
             }
         }
 
+        /// <inheritdoc/>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public override void OnInitialize()
+        {
+            base.OnInitialize();
+            SetAccessibilityConstructor(Role.List, AccessibilityInterface.Value);
+        }
+
         /// <summary>
         /// Applies style to Picker.
         /// </summary>
@@ -281,6 +289,7 @@ namespace Tizen.NUI.Components
                 
         private void Initialize()
         {
+            AccessibilityHighlightable = true;
             HeightSpecification = LayoutParamPolicies.MatchParent;
 
             //Picker Using scroller internally. actually it is a kind of scroller which has infinity loop,
index 38a6991..2e05b13 100755 (executable)
@@ -228,6 +228,7 @@ namespace Tizen.NUI.Components
         public override void OnInitialize()
         {
             base.OnInitialize();
+            SetAccessibilityConstructor(Role.DateEditor, AccessibilityInterface.Value);
 
             hourPicker = new Picker()
             {
@@ -278,6 +279,7 @@ namespace Tizen.NUI.Components
                          Justification = "The CellPadding will be dispose when the time picker disposed")]
         private void Initialize()
         {
+            AccessibilityHighlightable = true;
             HeightSpecification = LayoutParamPolicies.MatchParent;
 
             Layout = new LinearLayout() {