Path: blob/master/src/java.desktop/share/classes/javax/accessibility/AccessibleExtendedComponent.java
41153 views
/*1* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package javax.accessibility;2627/**28* The {@code AccessibleExtendedComponent} interface should be supported by any29* object that is rendered on the screen. This interface provides the standard30* mechanism for an assistive technology to determine the extended graphical31* representation of an object. Applications can determine if an object supports32* the {@code AccessibleExtendedComponent} interface by first obtaining its33* {@code AccessibleContext} and then calling the34* {@link AccessibleContext#getAccessibleComponent} method. If the return value35* is not {@code null} and the type of the return value is36* {@code AccessibleExtendedComponent}, the object supports this interface.37*38* @author Lynn Monsanto39* @see Accessible40* @see Accessible#getAccessibleContext41* @see AccessibleContext42* @see AccessibleContext#getAccessibleComponent43* @since 1.444*/45public interface AccessibleExtendedComponent extends AccessibleComponent {4647/**48* Returns the tool tip text.49*50* @return the tool tip text, if supported, of the object; otherwise,51* {@code null}52*/53public String getToolTipText();5455/**56* Returns the titled border text.57*58* @return the titled border text, if supported, of the object; otherwise,59* {@code null}60*/61public String getTitledBorderText();6263/**64* Returns key bindings associated with this object.65*66* @return the key bindings, if supported, of the object; otherwise,67* {@code null}68* @see AccessibleKeyBinding69*/70public AccessibleKeyBinding getAccessibleKeyBinding();71}727374