diff --git a/make/CompileJavaClasses.gmk b/make/CompileJavaClasses.gmk index 9fc1198d8c81ab7cbc15a5cb4c41242c84bf1cf4..0bc3d636f158332dca6c792168f473c1e30b4587 100644 --- a/make/CompileJavaClasses.gmk +++ b/make/CompileJavaClasses.gmk @@ -70,10 +70,7 @@ endif ifeq ($(OPENJDK_TARGET_OS), windows) # AccessBridge is compiled separately below. EXFILES += AccessBridge.java \ - AccessBridgeLoader.java \ - com/sun/java/accessibility/util/java/awt/ChoiceTranslator.java - # This seems to never be built - EXCLUDES += com/sun/java/accessibility/extensions + AccessBridgeLoader.java endif ifneq ($(OPENJDK_TARGET_OS), solaris) diff --git a/make/CreateJars.gmk b/make/CreateJars.gmk index bfbb10e66ab2d50ce6e66005ba1f6227e2012352..9df8fd1d22a708a2092568b33f42316bd3690a0e 100644 --- a/make/CreateJars.gmk +++ b/make/CreateJars.gmk @@ -650,17 +650,8 @@ $(eval $(call SetupZipArchive,BUILD_SRC_ZIP, \ ########################################################################################## - ifeq ($(OPENJDK_TARGET_OS), windows) - - $(eval $(call SetupArchive,BUILD_JACCESS_JAR, , \ - SRCS := $(JDK_OUTPUTDIR)/classes, \ - INCLUDES := com/sun/java/accessibility/util, \ - JAR := $(IMAGES_OUTPUTDIR)/lib/ext/jaccess.jar, \ - SKIP_METAINF := true)) - - JARS += $(IMAGES_OUTPUTDIR)/lib/ext/jaccess.jar - - ifeq ($(OPENJDK_TARGET_CPU_BITS), 32) +ifeq ($(OPENJDK_TARGET_OS), windows) + ifeq ($(OPENJDK_TARGET_CPU_BITS), 32) $(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_32_JAR, , \ SRCS := $(JDK_OUTPUTDIR)/classes_ab/32bit, \ INCLUDES := com/sun/java/accessibility, \ @@ -675,7 +666,7 @@ $(eval $(call SetupZipArchive,BUILD_SRC_ZIP, \ JARS += $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-32.jar \ $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge.jar - else + else $(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_64_JAR, , \ SRCS := $(JDK_OUTPUTDIR)/classes_ab/64bit, \ INCLUDES := com/sun/java/accessibility, \ @@ -683,8 +674,16 @@ $(eval $(call SetupZipArchive,BUILD_SRC_ZIP, \ SKIP_METAINF := true)) JARS += $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-64.jar - endif endif +endif + +$(eval $(call SetupArchive,BUILD_JACCESS_JAR, , \ + SRCS := $(JDK_OUTPUTDIR)/classes, \ + INCLUDES := com/sun/java/accessibility/util, \ + JAR := $(IMAGES_OUTPUTDIR)/lib/ext/jaccess.jar, \ + SKIP_METAINF := true)) + +JARS += $(IMAGES_OUTPUTDIR)/lib/ext/jaccess.jar ########################################################################################## diff --git a/src/windows/classes/com/sun/java/accessibility/util/AWTEventMonitor.java b/src/share/classes/com/sun/java/accessibility/util/AWTEventMonitor.java similarity index 100% rename from src/windows/classes/com/sun/java/accessibility/util/AWTEventMonitor.java rename to src/share/classes/com/sun/java/accessibility/util/AWTEventMonitor.java diff --git a/src/windows/classes/com/sun/java/accessibility/util/AccessibilityEventMonitor.java b/src/share/classes/com/sun/java/accessibility/util/AccessibilityEventMonitor.java similarity index 100% rename from src/windows/classes/com/sun/java/accessibility/util/AccessibilityEventMonitor.java rename to src/share/classes/com/sun/java/accessibility/util/AccessibilityEventMonitor.java diff --git a/src/windows/classes/com/sun/java/accessibility/util/AccessibilityListenerList.java b/src/share/classes/com/sun/java/accessibility/util/AccessibilityListenerList.java similarity index 100% rename from src/windows/classes/com/sun/java/accessibility/util/AccessibilityListenerList.java rename to src/share/classes/com/sun/java/accessibility/util/AccessibilityListenerList.java diff --git a/src/windows/classes/com/sun/java/accessibility/util/EventID.java b/src/share/classes/com/sun/java/accessibility/util/EventID.java similarity index 100% rename from src/windows/classes/com/sun/java/accessibility/util/EventID.java rename to src/share/classes/com/sun/java/accessibility/util/EventID.java diff --git a/src/windows/classes/com/sun/java/accessibility/util/EventQueueMonitor.java b/src/share/classes/com/sun/java/accessibility/util/EventQueueMonitor.java similarity index 100% rename from src/windows/classes/com/sun/java/accessibility/util/EventQueueMonitor.java rename to src/share/classes/com/sun/java/accessibility/util/EventQueueMonitor.java diff --git a/src/windows/classes/com/sun/java/accessibility/util/GUIInitializedListener.java b/src/share/classes/com/sun/java/accessibility/util/GUIInitializedListener.java similarity index 100% rename from src/windows/classes/com/sun/java/accessibility/util/GUIInitializedListener.java rename to src/share/classes/com/sun/java/accessibility/util/GUIInitializedListener.java diff --git a/src/windows/classes/com/sun/java/accessibility/util/GUIInitializedMulticaster.java b/src/share/classes/com/sun/java/accessibility/util/GUIInitializedMulticaster.java similarity index 100% rename from src/windows/classes/com/sun/java/accessibility/util/GUIInitializedMulticaster.java rename to src/share/classes/com/sun/java/accessibility/util/GUIInitializedMulticaster.java diff --git a/src/windows/classes/com/sun/java/accessibility/util/SwingEventMonitor.java b/src/share/classes/com/sun/java/accessibility/util/SwingEventMonitor.java similarity index 100% rename from src/windows/classes/com/sun/java/accessibility/util/SwingEventMonitor.java rename to src/share/classes/com/sun/java/accessibility/util/SwingEventMonitor.java diff --git a/src/windows/classes/com/sun/java/accessibility/util/TopLevelWindowListener.java b/src/share/classes/com/sun/java/accessibility/util/TopLevelWindowListener.java similarity index 100% rename from src/windows/classes/com/sun/java/accessibility/util/TopLevelWindowListener.java rename to src/share/classes/com/sun/java/accessibility/util/TopLevelWindowListener.java diff --git a/src/windows/classes/com/sun/java/accessibility/util/TopLevelWindowMulticaster.java b/src/share/classes/com/sun/java/accessibility/util/TopLevelWindowMulticaster.java similarity index 100% rename from src/windows/classes/com/sun/java/accessibility/util/TopLevelWindowMulticaster.java rename to src/share/classes/com/sun/java/accessibility/util/TopLevelWindowMulticaster.java diff --git a/src/windows/classes/com/sun/java/accessibility/util/Translator.java b/src/share/classes/com/sun/java/accessibility/util/Translator.java similarity index 100% rename from src/windows/classes/com/sun/java/accessibility/util/Translator.java rename to src/share/classes/com/sun/java/accessibility/util/Translator.java diff --git a/src/windows/classes/com/sun/java/accessibility/util/java/awt/ButtonTranslator.java b/src/share/classes/com/sun/java/accessibility/util/java/awt/ButtonTranslator.java similarity index 100% rename from src/windows/classes/com/sun/java/accessibility/util/java/awt/ButtonTranslator.java rename to src/share/classes/com/sun/java/accessibility/util/java/awt/ButtonTranslator.java diff --git a/src/windows/classes/com/sun/java/accessibility/util/java/awt/CheckboxTranslator.java b/src/share/classes/com/sun/java/accessibility/util/java/awt/CheckboxTranslator.java similarity index 100% rename from src/windows/classes/com/sun/java/accessibility/util/java/awt/CheckboxTranslator.java rename to src/share/classes/com/sun/java/accessibility/util/java/awt/CheckboxTranslator.java diff --git a/src/windows/classes/com/sun/java/accessibility/util/java/awt/LabelTranslator.java b/src/share/classes/com/sun/java/accessibility/util/java/awt/LabelTranslator.java similarity index 100% rename from src/windows/classes/com/sun/java/accessibility/util/java/awt/LabelTranslator.java rename to src/share/classes/com/sun/java/accessibility/util/java/awt/LabelTranslator.java diff --git a/src/windows/classes/com/sun/java/accessibility/util/java/awt/ListTranslator.java b/src/share/classes/com/sun/java/accessibility/util/java/awt/ListTranslator.java similarity index 100% rename from src/windows/classes/com/sun/java/accessibility/util/java/awt/ListTranslator.java rename to src/share/classes/com/sun/java/accessibility/util/java/awt/ListTranslator.java diff --git a/src/windows/classes/com/sun/java/accessibility/util/java/awt/TextComponentTranslator.java b/src/share/classes/com/sun/java/accessibility/util/java/awt/TextComponentTranslator.java similarity index 100% rename from src/windows/classes/com/sun/java/accessibility/util/java/awt/TextComponentTranslator.java rename to src/share/classes/com/sun/java/accessibility/util/java/awt/TextComponentTranslator.java diff --git a/src/windows/classes/com/sun/java/accessibility/util/package-info.java b/src/share/classes/com/sun/java/accessibility/util/package-info.java similarity index 99% rename from src/windows/classes/com/sun/java/accessibility/util/package-info.java rename to src/share/classes/com/sun/java/accessibility/util/package-info.java index f3b0a62dd368bd24c1881982d4797f294f21c81c..2ae79d185afb090aa49345bc7f0f4d64f3ba2f10 100644 --- a/src/windows/classes/com/sun/java/accessibility/util/package-info.java +++ b/src/share/classes/com/sun/java/accessibility/util/package-info.java @@ -64,4 +64,6 @@ * * @since JDK1.7 */ + +@jdk.Exported package com.sun.java.accessibility.util; diff --git a/src/windows/classes/com/sun/java/accessibility/extensions/AccessibleExtendedRelation.java b/src/windows/classes/com/sun/java/accessibility/extensions/AccessibleExtendedRelation.java deleted file mode 100644 index 93a5e313b20fb2f3783f57c366402d2b19cb0c17..0000000000000000000000000000000000000000 --- a/src/windows/classes/com/sun/java/accessibility/extensions/AccessibleExtendedRelation.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -package com.sun.java.accessibility.extensions; - -import javax.accessibility.*; - -/** - *
Class AccessibleExtendedRelation contains extensions to the class - * AccessibleRelation that are currently not in a public API. - * - *
Class AccessibleRelation describes a relation between the - * object that implements the AccessibleRelation and one or more other - * objects. The actual relations that an object has with other - * objects are defined as an AccessibleRelationSet, which is a composed - * set of AccessibleRelations. - *
The toDisplayString method allows you to obtain the localized string - * for a locale independent key from a predefined ResourceBundle for the - * keys defined in this class. - *
The constants in this class present a strongly typed enumeration - * of common object roles. If the constants in this class are not sufficient - * to describe the role of an object, a subclass should be generated - * from this class and it should provide constants in a similar manner. - * - */ - -public class AccessibleExtendedRelation - extends AccessibleExtendedRelationConstants { - - public AccessibleExtendedRelation(String s) { - super(s); - } - - public AccessibleExtendedRelation(String key, Object target) { - super(key, target); - } -} diff --git a/src/windows/classes/com/sun/java/accessibility/extensions/AccessibleExtendedRelationConstants.java b/src/windows/classes/com/sun/java/accessibility/extensions/AccessibleExtendedRelationConstants.java deleted file mode 100644 index 28dd52c045b9940a627c9e7fce68ea8cd1e57930..0000000000000000000000000000000000000000 --- a/src/windows/classes/com/sun/java/accessibility/extensions/AccessibleExtendedRelationConstants.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -package com.sun.java.accessibility.extensions; - -import javax.accessibility.*; - -/** - *
Class AccessibleExtendedRelation contains extensions to the class - * AccessibleRelation that are currently not in a public API. - * - *
Class AccessibleRelation describes a relation between the - * object that implements the AccessibleRelation and one or more other - * objects. The actual relations that an object has with other - * objects are defined as an AccessibleRelationSet, which is a composed - * set of AccessibleRelations. - *
The toDisplayString method allows you to obtain the localized string - * for a locale independent key from a predefined ResourceBundle for the - * keys defined in this class. - *
The constants in this class present a strongly typed enumeration - * of common object roles. If the constants in this class are not sufficient - * to describe the role of an object, a subclass should be generated - * from this class and it should provide constants in a similar manner. - * - */ - -public abstract class AccessibleExtendedRelationConstants - extends AccessibleRelation { - - /** - * Indicates that one AccessibleText object is linked to the - * target AccessibleText object(s).
A good example is a StarOffice - * text window with the bottom of one page, a footer, a header, - * and the top of another page all visible in the window. There - * should be a FLOWS_TO relation from the last chunk of AccessibleText - * in the bottom of one page to the first AccessibleText object at the - * top of the next page, skipping over the AccessibleText object(s) - * that make up the header and footer. A corresponding FLOWS_FROM - * relation would link the AccessibleText object in the next page to - * the last one in the previous page. - * @see AccessibleExtendedRole.FLOWS_FROM - */ - public static final String FLOWS_TO = "flowsTo"; - - /** - * Indicates that one AccessibleText object is linked to the - * target AccessibleText object(s). - * @see AccessibleExtendedRole.FLOWS_TO - */ - public static final String FLOWS_FROM = "flowsFrom"; - - /** - * Indicates a component is a subwindow of a target component - */ - public static final String SUBWINDOW_OF = "subwindowOf"; - - /** - * Identifies that the linkage between one AccessibleText - * object and the target AccessibleText object(s) has changed. - * @see AccessibleExtendedRole.FLOWS_TO - * @see AccessibleExtendedRole.FLOWS_FROM - */ - public static final String FLOWS_TO_PROPERTY = "flowsToProperty"; - - /** - * Identifies that the linkage between one AccessibleText - * object and the target AccessibleText object(s) has changed. - * @see AccessibleExtendedRole.FLOWS_TO - * @see AccessibleExtendedRole.FLOWS_FROM - */ - public static final String FLOWS_FROM_PROPERTY = "flowsFromProperty"; - - /** - * Identifies the subwindow relationship between two components - * has changed - */ - public static final String SUBWINDOW_OF_PROPERTY = "subwindowOfProperty"; - - public AccessibleExtendedRelationConstants(String s) { - super(s); - } - - public AccessibleExtendedRelationConstants(String key, Object target) { - super(key, target); - } -} diff --git a/src/windows/classes/com/sun/java/accessibility/extensions/AccessibleExtendedRole.java b/src/windows/classes/com/sun/java/accessibility/extensions/AccessibleExtendedRole.java deleted file mode 100644 index 207eefb71c53ec05fcef43916128272bad5103f6..0000000000000000000000000000000000000000 --- a/src/windows/classes/com/sun/java/accessibility/extensions/AccessibleExtendedRole.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -package com.sun.java.accessibility.extensions; - -import javax.accessibility.*; - -/** - *
Class AccessibleExtendedRole contains extensions to the class - * AccessibleRole that are currently not in a public API. - * - *
Class AccessibleRole determines the role of a component. The role - * of a component describes its generic function. (E.G., - * "push button," "table," or "list.") - *
The constants in this class present a strongly typed enumeration - * of common object roles. A public constructor for this class has been - * purposely omitted and applications should use one of the constants - * from this class. If the constants in this class are not sufficient - * to describe the role of an object, a subclass should be generated - * from this class and it should provide constants in a similar manner. - * - */ - -public class AccessibleExtendedRole extends AccessibleExtendedRoleConstants { - - public AccessibleExtendedRole(String s) { - super(s); - } -} diff --git a/src/windows/classes/com/sun/java/accessibility/extensions/AccessibleExtendedRoleConstants.java b/src/windows/classes/com/sun/java/accessibility/extensions/AccessibleExtendedRoleConstants.java deleted file mode 100644 index 708c0137ae5a4be509d424cecfadf9409a16f382..0000000000000000000000000000000000000000 --- a/src/windows/classes/com/sun/java/accessibility/extensions/AccessibleExtendedRoleConstants.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -package com.sun.java.accessibility.extensions; - -import javax.accessibility.*; - -/** - *
Class AccessibleExtendedRole contains extensions to the class - * AccessibleRole that are currently not in a public API. - * - *
Class AccessibleRole determines the role of a component. The role - * of a component describes its generic function. (E.G., - * "push button," "table," or "list.") - *
The constants in this class present a strongly typed enumeration - * of common object roles. A public constructor for this class has been - * purposely omitted and applications should use one of the constants - * from this class. If the constants in this class are not sufficient - * to describe the role of an object, a subclass should be generated - * from this class and it should provide constants in a similar manner. - * - */ - -public abstract class AccessibleExtendedRoleConstants extends AccessibleRole { - - /** - * Indicates this component is a text header. - */ - public static final AccessibleExtendedRole HEADER - = new AccessibleExtendedRole("Header"); - - /** - * Indicates this component is a text footer. - */ - public static final AccessibleExtendedRole FOOTER - = new AccessibleExtendedRole("Footer"); - - /** - * Indicates this component is a text paragraph. - */ - public static final AccessibleExtendedRole PARAGRAPH - = new AccessibleExtendedRole("Paragraph"); - - /** - * Indicates this component is a ruler. - */ - public static final AccessibleExtendedRole RULER - = new AccessibleExtendedRole("RULER"); - - public AccessibleExtendedRoleConstants(String s) { - super(s); - } -} diff --git a/src/windows/classes/com/sun/java/accessibility/extensions/AccessibleExtendedState.java b/src/windows/classes/com/sun/java/accessibility/extensions/AccessibleExtendedState.java deleted file mode 100644 index 96838f2e7c0d1e1a18a41d09c52fa24063539abe..0000000000000000000000000000000000000000 --- a/src/windows/classes/com/sun/java/accessibility/extensions/AccessibleExtendedState.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ -package com.sun.java.accessibility.extensions; - -import javax.accessibility.*; - -/** - *
Class AccessibleState describes a component's particular state. The actual - * state of the component is defined as an AccessibleStateSet, which is a - * composed set of AccessibleStates. - *
The toDisplayString method allows you to obtain the localized string - * for a locale independent key from a predefined ResourceBundle for the - * keys defined in this class. - *
The constants in this class present a strongly typed enumeration - * of common object roles. A public constructor for this class has been - * purposely omitted and applications should use one of the constants - * from this class. If the constants in this class are not sufficient - * to describe the role of an object, a subclass should be generated - * from this class and it should provide constants in a similar manner. - * - */ - -public abstract class AccessibleExtendedState - extends AccessibleExtendedStateConstants { - - public AccessibleExtendedState(String s) { - super(s); - } -} diff --git a/src/windows/classes/com/sun/java/accessibility/extensions/AccessibleExtendedStateConstants.java b/src/windows/classes/com/sun/java/accessibility/extensions/AccessibleExtendedStateConstants.java deleted file mode 100644 index 6737cc42b033d276c7dcf9af518a7fb7a6397af9..0000000000000000000000000000000000000000 --- a/src/windows/classes/com/sun/java/accessibility/extensions/AccessibleExtendedStateConstants.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ -package com.sun.java.accessibility.extensions; - -import javax.accessibility.*; - -/** - *
Class AccessibleState describes a component's particular state. The actual - * state of the component is defined as an AccessibleStateSet, which is a - * composed set of AccessibleStates. - *
The toDisplayString method allows you to obtain the localized string - * for a locale independent key from a predefined ResourceBundle for the - * keys defined in this class. - *
The constants in this class present a strongly typed enumeration - * of common object roles. A public constructor for this class has been - * purposely omitted and applications should use one of the constants - * from this class. If the constants in this class are not sufficient - * to describe the role of an object, a subclass should be generated - * from this class and it should provide constants in a similar manner. - * - */ - -public abstract class AccessibleExtendedStateConstants extends AccessibleState { - - /** - * Indicates a component is responsible for managing - * its subcomponents. - */ - public static final AccessibleExtendedState MANAGES_DESCENDENTS - = new AccessibleExtendedState("managesDescendents"); - - public AccessibleExtendedStateConstants(String s) { - super(s); - } -} diff --git a/src/windows/classes/com/sun/java/accessibility/util/java/awt/ChoiceTranslator.java b/src/windows/classes/com/sun/java/accessibility/util/java/awt/ChoiceTranslator.java deleted file mode 100644 index f56becb9c7cd50a3e8e0c53a214637e86e333682..0000000000000000000000000000000000000000 --- a/src/windows/classes/com/sun/java/accessibility/util/java/awt/ChoiceTranslator.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -package com.sun.java.accessibility.util.java.awt; - -import java.lang.*; -import java.util.*; -import java.awt.*; -import java.awt.image.*; -import javax.accessibility.*; -import com.sun.java.accessibility.util.*; - -/** - *
The Translator class provides a translation to interface Accessible - * for objects that do not implement interface Accessible. Assistive - * technologies can use the 'getAccessible' class method of Translator to - * obtain an object that implements interface Accessible. If the object - * passed in already implements interface Accessible, getAccessible merely - * returns the object. - * - *
An example of how an assistive technology might use the Translator - * class is as follows: - * - *
- * Accessible accessible = Translator.getAccessible(someObj); - * // obtain information from the 'accessible' object. - *- * - *
This class extends the Translator class to provide specific support - * for the Choice class. Translator.getAccessible() will automatically - * load this class when an assistive technology asks for an accessible - * translator for Choice. - * - */ -public class ChoiceTranslator extends Translator { - - /** - * Get the state of this object. - * @return an instance of AccessibleState containing the current state of the object - * @see AccessibleState - */ - public AccessibleStateSet getAccessibleStateSet() { - AccessibleStateSet states = super.getAccessibleStateSet(); - states.add(AccessibleState.SELECTED); - return states; - } - - public AccessibleRole getAccessibleRole() { - return AccessibleRole.CHOICE; - } -}