Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.awt
Class Button.AccessibleAWTButton  view Button.AccessibleAWTButton download Button.AccessibleAWTButton.java

java.lang.Object
  extended byjavax.accessibility.AccessibleContext
      extended byjava.awt.Component.AccessibleAWTComponent
          extended byjava.awt.Button.AccessibleAWTButton
All Implemented Interfaces:
javax.accessibility.AccessibleAction, javax.accessibility.AccessibleComponent, javax.accessibility.AccessibleValue, java.io.Serializable
Enclosing class:
Button

protected class Button.AccessibleAWTButton
extends Component.AccessibleAWTComponent
implements javax.accessibility.AccessibleAction, javax.accessibility.AccessibleValue


Nested Class Summary
 
Nested classes inherited from class java.awt.Component.AccessibleAWTComponent
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler
 
Field Summary
private static long serialVersionUID
           
 
Fields inherited from class java.awt.Component.AccessibleAWTComponent
accessibleAWTComponentHandler, accessibleAWTFocusHandler
 
Fields inherited from class javax.accessibility.AccessibleContext
ACCESSIBLE_ACTION_PROPERTY, ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY, ACCESSIBLE_CARET_PROPERTY, ACCESSIBLE_CHILD_PROPERTY, ACCESSIBLE_COMPONENT_BOUNDS_CHANGED, ACCESSIBLE_DESCRIPTION_PROPERTY, ACCESSIBLE_HYPERTEXT_OFFSET, ACCESSIBLE_INVALIDATE_CHILDREN, ACCESSIBLE_NAME_PROPERTY, ACCESSIBLE_SELECTION_PROPERTY, ACCESSIBLE_STATE_PROPERTY, ACCESSIBLE_TABLE_CAPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED, ACCESSIBLE_TABLE_MODEL_CHANGED, ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_ROW_HEADER_CHANGED, ACCESSIBLE_TABLE_SUMMARY_CHANGED, ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED, ACCESSIBLE_TEXT_PROPERTY, ACCESSIBLE_VALUE_PROPERTY, ACCESSIBLE_VISIBLE_DATA_PROPERTY, accessibleDescription, accessibleName, accessibleParent
 
Fields inherited from interface javax.accessibility.AccessibleAction
DECREMENT, INCREMENT, TOGGLE_EXPAND
 
Constructor Summary
protected Button.AccessibleAWTButton()
           
 
Method Summary
 boolean doAccessibleAction(int i)
          Perform the specified action.
 javax.accessibility.AccessibleAction getAccessibleAction()
          Get any supported accessible actions.
 int getAccessibleActionCount()
          Get the number possible actions for this object, with the zeroth representing the default action.
 java.lang.String getAccessibleActionDescription(int i)
          Get a description for the specified action.
 java.lang.String getAccessibleName()
          Returns the accessible name of this component.
 javax.accessibility.AccessibleRole getAccessibleRole()
          Returns the role of this component.
 javax.accessibility.AccessibleValue getAccessibleValue()
          Get any supported accessible value.
 java.lang.Number getCurrentAccessibleValue()
          Gets the current value of this object, or null if it has not been set.
 java.lang.Number getMaximumAccessibleValue()
          Gets the maximum value in the range of this object, or null if there is no maximum.
 java.lang.Number getMinimumAccessibleValue()
          Gets the minimum value in the range of this object, or null if there is no minimum.
 boolean setCurrentAccessibleValue(java.lang.Number number)
          Sets the current value of this object.
 
Methods inherited from class java.awt.Component.AccessibleAWTComponent
addFocusListener, addPropertyChangeListener, contains, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAccessibleComponent, getAccessibleDescription, getAccessibleIndexInParent, getAccessibleParent, getAccessibleStateSet, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getLocale, getLocation, getLocationOnScreen, getSize, isEnabled, isFocusTraversable, isShowing, isVisible, removeFocusListener, removePropertyChangeListener, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFont, setForeground, setLocation, setSize, setVisible
 
Methods inherited from class javax.accessibility.AccessibleContext
firePropertyChange, getAccessibleEditableText, getAccessibleIcon, getAccessibleRelationSet, getAccessibleSelection, getAccessibleTable, getAccessibleText, setAccessibleDescription, setAccessibleName, setAccessibleParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

Button.AccessibleAWTButton

protected Button.AccessibleAWTButton()
Method Detail

getAccessibleActionCount

public int getAccessibleActionCount()
Description copied from interface: javax.accessibility.AccessibleAction
Get the number possible actions for this object, with the zeroth representing the default action.

Specified by:
getAccessibleActionCount in interface javax.accessibility.AccessibleAction

getAccessibleActionDescription

public java.lang.String getAccessibleActionDescription(int i)
Description copied from interface: javax.accessibility.AccessibleAction
Get a description for the specified action. Returns null if out of bounds.

Specified by:
getAccessibleActionDescription in interface javax.accessibility.AccessibleAction

doAccessibleAction

public boolean doAccessibleAction(int i)
Description copied from interface: javax.accessibility.AccessibleAction
Perform the specified action. Does nothing if out of bounds.

Specified by:
doAccessibleAction in interface javax.accessibility.AccessibleAction

getAccessibleName

public java.lang.String getAccessibleName()
Description copied from class: Component.AccessibleAWTComponent
Returns the accessible name of this component. It is almost always wrong to return getName(), since it is not localized. In fact, for things like buttons, this should be the text of the button, not the name of the object. The tooltip text might also be appropriate.

Overrides:
getAccessibleName in class Component.AccessibleAWTComponent

getAccessibleAction

public javax.accessibility.AccessibleAction getAccessibleAction()
Description copied from class: javax.accessibility.AccessibleContext
Get any supported accessible actions. The default implementation returns null.


getAccessibleValue

public javax.accessibility.AccessibleValue getAccessibleValue()
Description copied from class: javax.accessibility.AccessibleContext
Get any supported accessible value. The default implementation returns null.


getCurrentAccessibleValue

public java.lang.Number getCurrentAccessibleValue()
Description copied from interface: javax.accessibility.AccessibleValue
Gets the current value of this object, or null if it has not been set.

Specified by:
getCurrentAccessibleValue in interface javax.accessibility.AccessibleValue

setCurrentAccessibleValue

public boolean setCurrentAccessibleValue(java.lang.Number number)
Description copied from interface: javax.accessibility.AccessibleValue
Sets the current value of this object. Returns true if the number successfully changed.

Specified by:
setCurrentAccessibleValue in interface javax.accessibility.AccessibleValue

getMinimumAccessibleValue

public java.lang.Number getMinimumAccessibleValue()
Description copied from interface: javax.accessibility.AccessibleValue
Gets the minimum value in the range of this object, or null if there is no minimum.

Specified by:
getMinimumAccessibleValue in interface javax.accessibility.AccessibleValue

getMaximumAccessibleValue

public java.lang.Number getMaximumAccessibleValue()
Description copied from interface: javax.accessibility.AccessibleValue
Gets the maximum value in the range of this object, or null if there is no maximum.

Specified by:
getMaximumAccessibleValue in interface javax.accessibility.AccessibleValue

getAccessibleRole

public javax.accessibility.AccessibleRole getAccessibleRole()
Description copied from class: Component.AccessibleAWTComponent
Returns the role of this component.

Overrides:
getAccessibleRole in class Component.AccessibleAWTComponent