summaryrefslogtreecommitdiff
path: root/javax
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2008-01-14 11:17:44 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2008-01-14 11:17:44 +0000
commit014d760a2b8a160e2f72d9a5497a03a23318bc88 (patch)
treedb3ad5888cb1d05be247bcf1c77fd983a0016754 /javax
parente748c1b80be905f6e9be369f10c21323e62b3be1 (diff)
downloadclasspath-014d760a2b8a160e2f72d9a5497a03a23318bc88.tar.gz
2008-01-14 Andrew John Hughes <gnu_andrew@member.fsf.org>
* javax/accessibility/AccessibleAction.java: (CLICK): Added. (TOGGLE_POPUP): Likewise. * javax/accessbiility/AccessibleRole.java: (HTML_CONTAINER): Added.
Diffstat (limited to 'javax')
-rw-r--r--javax/accessibility/AccessibleAction.java16
-rw-r--r--javax/accessibility/AccessibleRole.java13
2 files changed, 29 insertions, 0 deletions
diff --git a/javax/accessibility/AccessibleAction.java b/javax/accessibility/AccessibleAction.java
index a7cf05e4a..c2e007141 100644
--- a/javax/accessibility/AccessibleAction.java
+++ b/javax/accessibility/AccessibleAction.java
@@ -78,6 +78,22 @@ public interface AccessibleAction
static final String TOGGLE_EXPAND = "toggle expand";
/**
+ * The name of an action which causes a component to perform its default
+ * action.
+ *
+ * @since 1.6
+ */
+ static final String CLICK = "click";
+
+ /**
+ * The name of an action which toggles the state of a popup, causing a
+ * hidden popup to be displayed and a visible popup to be hidden.
+ *
+ * @since 1.6
+ */
+ static final String TOGGLE_POPUP = "toggle popup";
+
+ /**
* Get the number possible actions for this object, with the zeroth
* representing the default action.
*
diff --git a/javax/accessibility/AccessibleRole.java b/javax/accessibility/AccessibleRole.java
index a5396f147..c568b4fe9 100644
--- a/javax/accessibility/AccessibleRole.java
+++ b/javax/accessibility/AccessibleRole.java
@@ -517,6 +517,19 @@ public class AccessibleRole extends AccessibleBundle
= new AccessibleRole("ruler");
/**
+ * A HTML container is an accessible object which contains other
+ * accessible objects that together form some HTML content. For example,
+ * the content may be a sequence of text containing a link, which
+ * would be represent as two children, one an {@link AccessibleText}
+ * object holding the normal text and the other an
+ * {@link AccessibleHypertext} object representing the link.
+ *
+ * @since 1.6
+ */
+ public static final AccessibleRole HTML_CONTAINER
+ = new AccessibleRole("HTML container");
+
+ /**
* Create a new constant with a locale independent key. Follow the example,
* keep the constructor private and make public constants instead.
*