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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2013, 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 --- 1,7 ---- /* ! * Copyright (c) 1997, 2015, 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
*** 27,41 **** --- 27,45 ---- 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,87 **** * 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 */ public abstract class AccessibleContext { /** * The AppContext that should be used to dispatch events for this * AccessibleContext --- 71,87 ---- * 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> * * @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,459 **** * * @param s the new localized name of the object. * * @see #getAccessibleName * @see #addPropertyChangeListener - * - * @beaninfo - * 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); } --- 445,457 ---- * * @param s the new localized name of the object. * * @see #getAccessibleName * @see #addPropertyChangeListener */ + @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,495 **** * * @param s the new localized description of the object * * @see #setAccessibleName * @see #addPropertyChangeListener - * - * @beaninfo - * 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); --- 479,491 ---- * * @param s the new localized description of the object * * @see #setAccessibleName * @see #addPropertyChangeListener */ + @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);