⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 accessiblecontext.java

📁 this gcc-g++-3.3.1.tar.gz is a source file of gcc, you can learn more about gcc through this codes f
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
   *   * @return the accessible object's name, or null if it is unnamed   * @see #setAccessibleName(String)   */  public String getAccessibleName()  {    return accessibleName;  }  /**   * Set the localized name of the object. This will fire a   * PropertyChangeEvent with ACCESSIBLE_NAME_PROPERTY.   *   * @param s the new name   * @see #getAccessibleName()   * @see #addPropertyChangeListener(PropertyChangeListener)   */  public void setAccessibleName(String s)  {    listeners.firePropertyChange(ACCESSIBLE_NAME_PROPERTY, accessibleName, s);    accessibleName = s;  }  /**   * Get the localized description of the object. For example, a 'Cancel'   * button may be described as "Ignore changes and close dialog box" in   * en_US.   *   * @return the accessible object's description, or null if there is none   * @see #setAccessibleDescription(String)   */  public String getAccessibleDescription()  {    return accessibleDescription;  }  /**   * Set the localized name of the object. This will fire a   * PropertyChangeEvent with ACCESSIBLE_DESCRIPTION_PROPERTY.   *   * @param s the new description   * @see #getAccessibleDescription()   * @see #addPropertyChangeListener(PropertyChangeListener)   */  public void setAccessibleDescription(String s)  {    listeners.firePropertyChange(ACCESSIBLE_DESCRIPTION_PROPERTY,                                 accessibleDescription, s);    accessibleDescription = s;  }  /**   * Gets the role of this object. For example, a button serves the role of   * AccessibleRole.PUSH_BUTTON. This allows assistive technologies to funnel   * similar objects into the same assistance classes. Note that the class   * is extensible, to define new roles if necessary.   *   * @return the role of the object   * @see AccessibleRole   */  public abstract AccessibleRole getAccessibleRole();  /**   * Gets the state set of this object. A change in the state of the object   * will fire a PropertyChangeEvent for ACCESSIBLE_STATE_PROPERTY.   *   * @return the current state of the object   * @see AccessibleState   * @see AccessibleStateSet   * @see #addPropertyChangeListener(PropertyChangeListener)   */  public abstract AccessibleStateSet getAccessibleStateSet();  /**   * Return the accessible parent of this object.   *   * @return the accessible parent, or null if there is none   */  public Accessible getAccessibleParent()  {    return accessibleParent;  }  /**   * Sets the accessible parent of this object. This should only be used when   * the current parent object should not be the accessible parent; only the   * parent of the accessible child should call this method.   *   * @param a the new parent   */  public void setAccessibleParent(Accessible a)  {    accessibleParent = a;  }  /**   * Gets the index of this object within its accessible parent.   *   * @return the 0-based index, or -1 if there is no accessible parent   * @see #getAccessibleParent()   * @see #getAccessibleChildrenCount()   * @see #getAccessibleChild(int)   */  public abstract int getAccessibleIndexInParent();  /**   * Returns the number of accessible children of this object.   *   * @return the number of accessible children   * @see #getAccessibleChild(int)   */  public abstract int getAccessibleChildrenCount();  /**   * Returns the specified accessible chile.   *   * @param i the 0-based index to get   * @return the child, or null if out of bounds   * @see #getAccessibleChildrenCount()   */  public abstract Accessible getAccessibleChild(int i);  /**   * Gets the component locale, deferring to the parent if one is not declared.   *   * @return the locale   * @throws java.awt.IllegalComponentStateException if there is no locale   *         or parent   */  public abstract Locale getLocale();  /**   * Add a PropertyChangeListener to the listener list. This listener will   * be notified of all property changes to the accessible object.   *   * @param l the listener to add   * @see #ACCESSIBLE_NAME_PROPERTY   * @see #ACCESSIBLE_DESCRIPTION_PROPERTY   * @see #ACCESSIBLE_STATE_PROPERTY   * @see #ACCESSIBLE_VALUE_PROPERTY   * @see #ACCESSIBLE_SELECTION_PROPERTY   * @see #ACCESSIBLE_TEXT_PROPERTY   * @see #ACCESSIBLE_VISIBLE_DATA_PROPERTY   * @see #removePropertyChangeListener(PropertyChangeListener)   */  public void addPropertyChangeListener(PropertyChangeListener l)  {    listeners.addPropertyChangeListener(l);  }  /**   * Remove a PropertyChangeListener from the listener list.   *   * @param l the listener to remove   * @see #addPropertyChangeListener(PropertyChangeListener)   */  public void removePropertyChangeListener(PropertyChangeListener l)  {    listeners.removePropertyChangeListener(l);  }  /**   * Get any supported accessible actions. The default implementation returns   * null.   *   * @return the supported action, or null   * @see AccessibleAction   */  public AccessibleAction getAccessibleAction()  {    return null;  }  /**   * Get any supported accessible compoent. The default implementation returns   * null.   *   * @return the supported component, or null   * @see AccessibleComponent   */  public AccessibleComponent getAccessibleComponent()  {    return null;  }  /**   * Get any supported accessible selection. The default implementation returns   * null.   *   * @return the supported selection, or null   * @see AccessibleSelection   */  public AccessibleSelection getAccessibleSelection()  {    return null;  }  /**   * Get any supported accessible text. The default implementation returns   * null.   *   * @return the supported text, or null   * @see AccessibleText   */  public AccessibleText getAccessibleText()  {    return null;  }  /**   * Get any supported accessible editable text. The default implementation   * returns null.   *   * @return the supported editable text, or null   * @see AccessibleEditableText   */  public AccessibleEditableText getAccessibleEditableText()  {    return null;  }  /**   * Get any supported accessible value. The default implementation returns   * null.   *   * @return the supported value, or null   * @see AccessibleValue   */  public AccessibleValue getAccessibleValue()  {    return null;  }  /**   * Get all supported accessible icons. The default implementation returns   * null.   *   * @return the supported icons, or null   * @see AccessibleIcon   */  public AccessibleIcon[] getAccessibleIcon()  {    return null;  }  /**   * Get any supported accessible relation set. The default implementation   * returns null.   *   * @return the supported relation set, or null   * @see AccessibleRelationSet   */  public AccessibleRelationSet getAccessibleRelationSet()  {    return null;  }  /**   * Get any supported accessible table. The default implementation returns   * null.   *   * @return the supported table, or null   * @see AccessibleTable   */  public AccessibleTable getAccessibleTable()  {    return null;  }  /**   * Fire an event to report property changes. This is intended for use by   * the accessible objects, not general application programs. If oldValue and   * newValue differ, and the listenter list is not empty, a PropertyChange   * event is fired to each listener.   *   * @param name the property name   * @param oldValue the prior value   * @param newValue the updated value   * @see PropertyChangeSupport   * @see #addPropertyChangeListener(PropertyChangeListener)   * @see #removePropertyChangeListener(PropertyChangeListener)   * @see #ACCESSIBLE_NAME_PROPERTY   * @see #ACCESSIBLE_DESCRIPTION_PROPERTY   * @see #ACCESSIBLE_STATE_PROPERTY   * @see #ACCESSIBLE_VALUE_PROPERTY   * @see #ACCESSIBLE_SELECTION_PROPERTY   * @see #ACCESSIBLE_TEXT_PROPERTY   * @see #ACCESSIBLE_VISIBLE_DATA_PROPERTY   */  public void firePropertyChange(String name, Object oldValue, Object newValue)  {    listeners.firePropertyChange(name, oldValue, newValue);  }} // class AccessibleContext

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -