[java-atk-wrapper] Wrapper: Create setRowDescription in AtkTable



commit 0eeb57cc3ce71007daf7a43f06e2dea0f17f1ecd
Author: Magdalen Berns <m berns thismagpie com>
Date:   Fri Jul 3 15:17:07 2015 +0100

    Wrapper: Create setRowDescription in AtkTable
    
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=751895

 wrapper/org/GNOME/Accessibility/AtkTable.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/wrapper/org/GNOME/Accessibility/AtkTable.java b/wrapper/org/GNOME/Accessibility/AtkTable.java
index 17f8820..6e3da5e 100644
--- a/wrapper/org/GNOME/Accessibility/AtkTable.java
+++ b/wrapper/org/GNOME/Accessibility/AtkTable.java
@@ -118,6 +118,19 @@ public class AtkTable {
                return "";
        }
 
+ /**
+  *
+  * @param row an int representing a row in table
+  * @param description a String object representing the description text to set for the
+  *                    specified row of the table
+  */
+  public void setRowDescription(int row, String description) {
+    javax.accessibility.Accessible accessible = acc_table.getAccessibleRowDescription(row);
+    if (description.equals(accessible.toString()) && accessible != null) {
+      acc_table.setAccessibleRowDescription(row, accessible);
+    }
+  }
+
        public AccessibleContext get_column_header (int column) {
                AccessibleTable accessibleTable =
                        acc_table.getAccessibleColumnHeader();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]