[java-atk-wrapper] Wrapper: Create getRowColumnSpan in AtkTableCell
- From: Magdalen Berns <mberns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] Wrapper: Create getRowColumnSpan in AtkTableCell
- Date: Thu, 9 Jul 2015 18:21:11 +0000 (UTC)
commit 7279fd1f157748bea6d061be9ec45d626052f543
Author: Magdalen Berns <m berns thismagpie com>
Date: Thu Jul 9 19:19:36 2015 +0100
Wrapper: Create getRowColumnSpan in AtkTableCell
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=752187
wrapper/org/GNOME/Accessibility/AtkTableCell.java | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/wrapper/org/GNOME/Accessibility/AtkTableCell.java
b/wrapper/org/GNOME/Accessibility/AtkTableCell.java
index 5cbac32..13492c7 100644
--- a/wrapper/org/GNOME/Accessibility/AtkTableCell.java
+++ b/wrapper/org/GNOME/Accessibility/AtkTableCell.java
@@ -26,6 +26,7 @@ public class AtkTableCell extends AtkTable {
AccessibleContext ac;
AccessibleExtendedTable acc_table_cell;
+ int rowSpan, columnSpan;
public AtkTableCell (AccessibleContext ac) {
super(ac);
@@ -37,6 +38,8 @@ public class AtkTableCell extends AtkTable {
} else {
acc_table_cell = null;
}
+ rowSpan = 0;
+ columnSpan = 0;
}
/**
@@ -60,5 +63,22 @@ public class AtkTableCell extends AtkTable {
return false;
return true;
}
+
+/**
+ * @param row the row of the accessible table cell
+ * @param column the column of the accessible table cell
+ * @param rowSpan the row span of the accessible table cell the
+ * @param columnSpan the column span of the accessible table cell
+ * @return: whether the column and row span was retrieved
+ */
+ public boolean getRowColumnSpan(int row, int column, int rowSpan, int columnSpan) {
+ this.rowSpan = rowSpan;
+ this.columnSpan = columnSpan;
+ rowSpan = acc_table.getAccessibleRowExtentAt(row, column);
+ columnSpan = acc_table.getAccessibleColumnExtentAt(row, column);
+ if (rowSpan < 0 && columnSpan < 0)
+ return false;
+ return true;
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]