jdk/src/share/classes/javax/accessibility/AccessibleContext.java

Print this page

        

@@ -27,15 +27,19 @@
 
 import sun.awt.AWTAccessor;
 import sun.awt.AppContext;
 
 import java.util.Locale;
+import java.beans.JavaBean;
+import java.beans.BeanProperty;
 import java.beans.PropertyChangeListener;
 import java.beans.PropertyChangeSupport;
 import java.beans.PropertyChangeEvent;
 import java.awt.IllegalComponentStateException;
 
+import javax.swing.SwingContainer;
+
 /**
  * AccessibleContext represents the minimum information all accessible objects
  * return.  This information includes the accessible name, description, role,
  * and state of the object, as well as information about its parent and
  * children.  AccessibleContext also contains methods for

@@ -67,21 +71,17 @@
  * interface provides the standard mechanism for an assistive technology
  * to determine and set the current value of the object, as well as obtain its
  * minimum and maximum values.  Any object that supports a numerical value
  * should support this interface.</ul>
  *
- *
- * @beaninfo
- *   attribute: isContainer false
- * description: Minimal information that all accessible objects return
- *
-
  * @author      Peter Korn
  * @author      Hans Muller
  * @author      Willie Walker
  * @author      Lynn Monsanto
  */
+@JavaBean(description = "Minimal information that all accessible objects return")
+@SwingContainer(false)
 public abstract class AccessibleContext {
 
     /**
      * The AppContext that should be used to dispatch events for this
      * AccessibleContext

@@ -445,15 +445,13 @@
      *
      * @param s the new localized name of the object.
      *
      * @see #getAccessibleName
      * @see #addPropertyChangeListener
-     *
-     * @beaninfo
-     *    preferred:   true
-     *    description: Sets the accessible name for the component.
      */
+    @BeanProperty(preferred = true, description
+            = "Sets the accessible name for the component.")
     public void setAccessibleName(String s) {
         String oldName = accessibleName;
         accessibleName = s;
         firePropertyChange(ACCESSIBLE_NAME_PROPERTY,oldName,accessibleName);
     }

@@ -481,15 +479,13 @@
      *
      * @param s the new localized description of the object
      *
      * @see #setAccessibleName
      * @see #addPropertyChangeListener
-     *
-     * @beaninfo
-     *    preferred:   true
-     *    description: Sets the accessible description for the component.
      */
+    @BeanProperty(preferred = true, description
+            = "Sets the accessible description for the component.")
     public void setAccessibleDescription(String s) {
         String oldDescription = accessibleDescription;
         accessibleDescription = s;
         firePropertyChange(ACCESSIBLE_DESCRIPTION_PROPERTY,
                            oldDescription,accessibleDescription);