|
Generated by JDiff |
||||||||
PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES |
This file contains all the changes in documentation in the packagejavax.accessibility
as colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.
The AccessibleAction interface should be supported by any object that can perform one or more actions. This interface provides the standard mechanism for an assistive technology to determine what those actions are as well as tell the object to performClass AccessibleAction, boolean doAccessibleAction(int)those actionsthem. Any object that can be manipulated should support this interface. Applications can determine if an object supports the AccessibleAction interface by first obtaining its AccessibleContext (see an then calling the AccessibleContext#getAccessibleAction method. If the return value is not null the object supports this interface. @see Accessible @see Accessible#getAccessibleContext @see AccessibleContext @see AccessibleContext#getAccessibleAction @version 1.3 02/04/98 11:12:57 @author Peter Korn @author Hans Muller @author Willie Walker
PerformPerforms the specified Action on the object @param i zero-based index of actions @return true if thetheaction was performed;elseotherwise false. @see #getAccessibleActionCount
Class AccessibleBundle, String toDisplayString()Base class used to maintain a strongly typed enumeration. This is the superclass of AccessibleState and AccessibleRole
The toDisplayString method allows you to obtain the localized string for a locale independent key from a predefined ResourceBundle for the keys defined in this class. This localized string is intended to be readable by humans. @see AccessibleRole @see AccessibleState @version 1.
9 0812 10/2605/989921:14:01@author Willie Walker @author Peter Korn @author Lynn Monsanto
Class AccessibleBundle, String toDisplayString(Locale)GetGets localized string describing the key using the default locale. @return a localized String describing the key for the default locale
Class AccessibleBundle, String toDisplayString(String, Locale)ObtainObtains the key as a localized string. If a localized string cannot be found for the key the locale independent key stored in the role will be returned. @param locale the locale for which to obtain a localized string @return a localized String for the key.
Class AccessibleBundle, String toString()ObtainObtains the key as a localized string. If a localized string cannot be found for the key the locale independent key stored in the role will be returned. This method is intended to be used only by subclasses so that they can specify their own resource bundles which contain localized strings for their keys. @param resourceBundleName the name of the resource bundle to use for lookup @param locale the locale for which to obtain a localized string @return a localized String for the key.
GetGets localized string describing the key using the default locale. @return a localized String describing the key using the default locale @see #toDisplayString
The AccessibleComponent interface should be supported by any object that is rendered on the screen. This interface provides the standard mechanism for an assistive technology to determine and set the graphical representation of an object. Applications can determine if an object supports the AccessibleComponent interface by first obtaining its AccessibleContextClass AccessibleComponent, Color getBackground()(see anand then calling the AccessibleContext#getAccessibleComponent method. If the return value is not null the object supports this interface. @see Accessible @see Accessible#getAccessibleContext @see AccessibleContext @see AccessibleContext#getAccessibleComponent @version 1.6 087 10/2605/989921:14:0800:28 @author Peter Korn @author Hans Muller @author Willie Walker
Class AccessibleComponent, Cursor getCursor()GetGets the background color of this object. @return the background color if supported of the object; otherwise null @see #setBackground
Class AccessibleComponent, Font getFont()GetGets the Cursor of this object. @return the Cursor if supported of the object; otherwise null @see #setCursor
Class AccessibleComponent, FontMetrics getFontMetrics(Font)GetGets the Font of this object. @return the Font if supported for the object; otherwise null @see #setFont
Class AccessibleComponent, Color getForeground()GetGets the FontMetrics of this object. @param f the Font @return the FontMetrics if supported the object; otherwise null @see #getFont
Class AccessibleComponent, Point getLocation()GetGets the foreground color of this object. @return the foreground color if supported of the object; otherwise null @see #setForeground
Gets the location of the object relative to the parent in the form of a point specifying the object's top-left corner in the screen's coordinate space. @return An instance of Point representing the top-left corner of theClass AccessibleComponent, Point getLocationOnScreen()objectsobject's bounds in the coordinate space of the screen; null if this object or its parent are not on the screen @see #getBounds @see #getLocationOnScreen
Returns the location of the object on the screen. @return the location of the object on screen; null if this object is not on the screen @see #getBounds @see #getLocationClass AccessibleComponent, Dimension getSize()
Returns the size of this object in the form of a Dimension object. The height field of the Dimension object contains thisClass AccessibleComponent, boolean isEnabled()objectsobject's height and the width field of the Dimension object contains this object's width. @return A Dimension object that indicates the size of this component; null if this object is not on the screen @see #setSize
Class AccessibleComponent, boolean isFocusTraversable()DetermineDetermines if the object is enabled. Objects that are enabled will also have the AccessibleState.ENABLED state set in theirAccessibleStateSetAccessibleStateSets. @return true if object is enabled; otherwise false @see #setEnabled @see AccessibleContext#getAccessibleStateSet @see AccessibleState#ENABLED @see AccessibleStateSet
Returns whether this object can accept focus or not. Objects that can accept focus will also have the AccessibleState.FOCUSABLE state set in theirClass AccessibleComponent, boolean isShowing()AccessibleStateSetAccessibleStateSets. @return true if object can accept focus; otherwise false @see AccessibleContext#getAccessibleStateSet @see AccessibleState#FOCUSABLE @see AccessibleState#FOCUSED @see AccessibleStateSet
Class AccessibleComponent, boolean isVisible()DetermineDetermines if the object is showing. This is determined by checking the visibility of the object andvisibility of theitsobjectancestors. Note: this will return true even if the object is obscured by another (for example itto objectis underneath a menu that was pulled down). @return true if object is showing; otherwise false
Class AccessibleComponent, void setBackground(Color)DetermineDetermines if the object is visible. Note: this means that the object intends to be visible; however it may not be showing on the screen because one of the objects that this object is contained by is currently not visible. To determine if an object is showing on the screen use isShowing().Objects that are visible will also have the AccessibleState.VISIBLE state set in their
AccessibleStateSetAccessibleStateSets. @return true if object is visible; otherwise false @see #setVisible @see AccessibleContext#getAccessibleStateSet @see AccessibleState#VISIBLE @see AccessibleStateSet
Class AccessibleComponent, void setCursor(Cursor)SetSets the background color of this object. @param c the new Color for the background @see #setBackground
Class AccessibleComponent, void setEnabled(boolean)SetSets the Cursor of this object. @param c the new Cursor for the object @see #getCursor
Class AccessibleComponent, void setFont(Font)SetSets the enabled state of the object. @param b if true enables this object; otherwise disables it @see #isEnabled
Class AccessibleComponent, void setForeground(Color)SetSets the Font of this object. @param f the new Font for the object @see #getFont
Class AccessibleComponent, void setSize(Dimension)SetSets the foreground color of this object. @param c the new Color for the foreground @see #getForeground
Resizes this object so that it has width and height. @param dClass AccessibleComponent, void setVisible(boolean)-The dimension specifying the new size of the object. @see #getSize
SetSets the visible state of the object. @param b if true shows this object; otherwise hides it @see #isVisible
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 aboutClass AccessibleContext, void addPropertyChangeListener(PropertyChangeListener)theits parent and childrenof the object. AccessibleContext also contains methods for obtaining more specific accessibility information about a component. If the component supportsitthem these methods will return an object that implements one or more of the following interfaces:
- {@link AccessibleAction} - the object can perform one or more actions. This interface provides the standard mechanism for an assistive technology to determine what those actions are and tell the object to perform
those actionsthem. Any object that can be manipulated should support this interface.- {@link AccessibleComponent} - the object has a graphical representation. This interface provides the standard mechanism for an assistive technology to determine and set the graphical representation of the object. Any object that is rendered on the screen should support this interface.
- {@link AccessibleSelection} - the object allows its children to be selected. This interface provides the standard mechanism for an assistive technology to determine the currently selected children of the object as well as modify
theits selection set. Any object that has children that can be selected should support this interface.- {@link AccessibleText} - the object presents editable textual information on the display. This interface provides the standard mechanism for an assistive technology to access that text via its content attributes and spatial location. Any object that contains editable text should support this interface.
- {@link AccessibleValue} - the object supports a numerical value. This interface provides the standard mechanism for an assistive technology to determine and set the current value of the object as well as
theobtain its minimum and maximum values. Any object that supports a numerical value should support this interface.In the future additional interfaces (e.g. AccessibleTable) may be added and the abstract class AccessibleContext will be updated accordingly.@version 1.17 0229 10/0405/98 11:50:5099 @author Peter Korn @author Hans Muller @author Willie Walker @author Lynn Monsanto
Class AccessibleContext, AccessibleAction getAccessibleAction()AddAdds a PropertyChangeListener to the listener list. The listener is registered for all Accessible properties and will be called when those properties change. @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 @param listener The PropertyChangeListener to be added
Class AccessibleContext, Accessible getAccessibleChild(int)GetGets the AccessibleAction associated with this object that supports one or more actions. @return AccessibleAction if supported by object; else return null @see AccessibleAction
Class AccessibleContext, AccessibleComponent getAccessibleComponent()ReturnReturns the specified Accessible child of the object. The Accessible children of an Accessible object are zero-based so the first child of an Accessible child is at index 0 the second child is at index 1 and so on. @param i zero-based index of child @return the Accessible child of the object @see #getAccessibleChildrenCount
Class AccessibleContext, String getAccessibleDescription()GetGets the AccessibleComponent associated with this object that has a graphical representation. @return AccessibleComponent if supported by object; else return null @see AccessibleComponent
Class AccessibleContext, int getAccessibleIndexInParent()GetGets the accessibleDescription property of this object. The accessibleDescription property of this object is a short localized phrase describing the purpose of the object. For example in the case of a 'Cancel' button the accessibleDescription could be 'Ignore changes and close dialog box.' @return the localized description of the object; null if this object does not have a description @see #setAccessibleDescription
Class AccessibleContext, String getAccessibleName()GetGets the 0-based index of this object in its accessible parent. @return the 0-based index of this object in its parent; -1 if this object does not have an accessible parent. @see #getAccessibleParent @see #getAccessibleChildrenCount @see #getAccessibleChild
Class AccessibleContext, Accessible getAccessibleParent()GetGets the accessibleName property of this object. The accessibleName property of an object is a localized String that designates the purpose of the object. For example the accessibleName property of a label or button might be the text of the label or button itself. In the case of an object that doesn't display its name the accessibleName should still be set. For example in the case of a text field used to enter the name of a city the accessibleName for the en_US locale could be 'city.' @return the localized name of the object; null if this object does not have a name @see #setAccessibleName
Class AccessibleContext, AccessibleRole getAccessibleRole()GetGets the Accessible parent of this object. @return the Accessible parent of this object; null if this object does not have an Accessible parent
Class AccessibleContext, AccessibleSelection getAccessibleSelection()GetGets the role of this object. The role of the object is the generic purpose or use of the class of this object. For example the role of a push button is AccessibleRole.PUSH_BUTTON. The roles in AccessibleRole are provided so component developers can pick from a set of predefined roles. This enables assistive technologies to provide a consistent interface to various tweaked subclasses of components (e.g. use AccessibleRole.PUSH_BUTTON for all components that act like a push button) as well as distinguish between sublasses that behave differently (e.g. AccessibleRole.CHECK_BOX for check boxes and AccessibleRole.RADIO_BUTTON for radio buttons).Note that the AccessibleRole class is also extensible so custom component developers can define their own AccessibleRole's if the set of predefined roles is inadequate. @return an instance of AccessibleRole describing the role of the object @see AccessibleRole
Class AccessibleContext, AccessibleStateSet getAccessibleStateSet()GetGets the AccessibleSelection associated with this object which allows its Accessible children to be selected. @return AccessibleSelection if supported by object; else return null @see AccessibleSelection
Class AccessibleContext, AccessibleText getAccessibleText()GetGets the state set of this object. The AccessibleStateSet of an object is composed of a set of uniqueAccessibleState'sAccessibleStates. A change in the AccessibleStateSet of an object will cause a PropertyChangeEvent to be fired for the ACCESSIBLE_STATE_PROPERTY property. @return an instance of AccessibleStateSet containing the current state set of the object @see AccessibleStateSet @see AccessibleState @see #addPropertyChangeListener
Class AccessibleContext, AccessibleValue getAccessibleValue()GetGets the AccessibleText associated with this object presently editable text on the display. @return AccessibleText if supported by object; else return null @see AccessibleText
Class AccessibleContext, Locale getLocale()GetGets the AccessibleValue associated with this object that supports a Numerical value. @return AccessibleValue if supported by object; else return null @see AccessibleValue
Gets the locale of the component. If the component does not have a locale then the locale of its parent is returned. @returnClass AccessibleContext, void removePropertyChangeListener(PropertyChangeListener)Thisthis component's locale. If this component does not have a locale the locale of its parent is returned. @exception IllegalComponentStateException If the Component does not have its own locale and has not yet been added to a containment hierarchy such that the locale can be determined from the containing parent.
Class AccessibleContext, void setAccessibleDescription(String)RemoveRemoves a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties. @param listener The PropertyChangeListener to be removed
Class AccessibleContext, void setAccessibleName(String)SetSets the accessible description of this object. Changing the name will cause a PropertyChangeEvent to be fired for the ACCESSIBLE_DESCRIPTION_PROPERTY property. @param s the new localized description of the object @see #setAccessibleName @see #addPropertyChangeListener
Class AccessibleContext, void setAccessibleParent(Accessible)SetSets the localized accessible name of this object. Changing the name will cause a PropertyChangeEvent to be fired for the ACCESSIBLE_NAME_PROPERTY property. @param s the new localized name of the object. @see #getAccessibleName @see #addPropertyChangeListener
Class AccessibleContext, String ACCESSIBLE_CARET_PROPERTYSetSets the Accessible parent of this object. This is meant to be used only in the situations where the actual component's parent should not be treated as the component's accessible parent and is a method that should only be called by the parent of the accessible child. @param a - Accessible to be set as the parent
Constant used to determine when the accessibleText caret has changed.Class AccessibleContext, String ACCESSIBLE_CHILD_PROPERTYhas changed.The old value in the PropertyChangeEvent will be an integer representing the old caret position and the new value will be an integer representing the new/current caret position. @see #addPropertyChangeListener
Constant used to determine when Accessible children are added/removed from the object. If an Accessible child is being added the old value will be null and the new value will be the Accessible child. If an Accessible child is being removed the old value will be the Accessible child and the new value will be null. @see #addPropertyChangeListenerClass AccessibleContext, String ACCESSIBLE_STATE_PROPERTY
Constant used to determine when the accessibleStateSet property has changed. The old value will be the old AccessibleState and the new value will be the new AccessibleState in the accessibleStateSet. For example if a component that supports the vertical and horizontal states changes its orientation from vertical to horizontal the old value will be AccessibleState.VERTICAL and the new value will be AccessibleState.HORIZONTAL. Please note that either value can also be null. For example when a component changes from being enabled to disabled the old value will be AccessibleState.ENABLED and the new value will be null. @see #getAccessibleStateSet @see AccessibleState @see AccessibleStateSet @see #addPropertyChangeListenerClass AccessibleContext, String ACCESSIBLE_VALUE_PROPERTY
Constant used to determine when the accessibleValue property has changed. The old value in the PropertyChangeEvent will be a Number representing the old value and the new value will be a Number representing the new value.@see #getAccessibleValue @see #addPropertyChangeListener
Encapsulation of a link or set of links (e.g. client side imagemap) in a Hypertext document @see Accessible @see Accessible#getAccessibleContext @see AccessibleContext @see AccessibleText @see AccessibleContext#getAccessibleText @version 1.9 02/02/00 @author Peter KornClass AccessibleHyperlink, boolean doAccessibleAction(int)
Class AccessibleHyperlink, Object getAccessibleActionAnchor(int)PerformPerforms the specified Action on the object @param i zero-based index of actions @return true if thetheaction was performed;elseotherwise false. @see #getAccessibleActionCount
Class AccessibleHyperlink, String getAccessibleActionDescription(int)ReturnReturns an object that represents the link anchor as appropriate for that link. E.g. from HTML: <a href="http://www.sun.com/access">Accessibility</a> this method would return a String containing the text:'"Accessibility'". Similarly from this HTML: <a HREF="#top"><img src="top-hat.gif" alt="top hat"></a> this might return the object ImageIcon("top-hat.gif" "top hat"); @param i zero-based index of the actions @return an Object representing the hypertext anchor @see #getAccessibleActionCount
Class AccessibleHyperlink, Object getAccessibleActionObject(int)ReturnReturns a String description of this particular link action. This should be a text string associated with anchoring text this should be the anchor text. E.g. from HTML: <a HREF="http://www.sun.com/access">Accessibility</a> this method would return "Accessibility". Similarly from this HTML: <a HREF="#top"><img src="top-hat.gif" alt="top hat"></a> this method would return "top hat" @param i zero-based index of the actions @return a String description of the action @see #getAccessibleActionCount
Class AccessibleHyperlink, int getEndIndex()ReturnReturns an object that represents the link action as appropriate for that link. E.g. from HTML: <a HREF="http://www.sun.com/access">Accessibility</a> this method would return a java.net.URL("http://www.sun.com/access.html"); @param i zero-based index of the actions @return an Object representing the hypertext link itself @see #getAccessibleActionCount
Class AccessibleHyperlink, int getStartIndex()GetGets the index with the hypertext document at which this link ends @return index of end of link
Class AccessibleHyperlink, boolean isValid()GetGets the index with the hypertext document at which this link begins @return index of start of link
Since the document a link is associated with may have changed this method returns whether or not this Link isvalid anymorestill valid (with respect to the document it references). @return a flag indicating whether this link is still valid with respect to the AccessibleHypertext it belongs to
Returns the number of links within this hypertextdocdocument. @return number of links in this hypertext doc.
A resource bundle containing the localized strings in the accessibility package. This is meant only for internal use by Java Accessibility and is not meant to be used by assistive technologies or applications. @version %I% %G% %U% @author Willie Walker @deprecated This class is deprecated as of version 1.3 of the Java 2 Platform.
Class AccessibleRole, constructor AccessibleRole(String)Class AccessibleRole determines the role of a component. The role of a component describes
the componentsits generic functionsuch.as(E.G. "push button " "table " or "list.")The toDisplayString method allows you to obtain the localized string for a locale independent key from a predefined ResourceBundle for the keys defined in this class.
The constants in this class present a strongly typed enumeration of common object roles. A public constructor for this class has been purposely omitted and applications should use one of the constants from this class. If the constants in this class are not sufficient to describe the role of an object a subclass should be generated from this class and it should provide constants in a similar manner. @version 1.
18 1232 10/0312/97 14:49:2699 @author Willie Walker @author Peter Korn @author Lynn Monsanto
Class AccessibleRole, AccessibleRole CHECK_BOXCreateCreates a new AccessibleRole using the given locale independent key. This should not be a public method. Instead it is used to create the constants in this file to make it a strongly typed enumeration. Subclasses of this class should enforce similar policy. @param key the locale independent name of the role. @note The String should be a locale independent key for the role. It is not intended to be used as the actual String to display to the user. To get the localized string use toDisplayString. @see AccessibleBundle#toDisplayString
A choice that can be checked or unchecked and provides a separate indicatorClass AccessibleRole, AccessibleRole FRAMEindicatingfor the current state. @see #PUSH_BUTTON @see #TOGGLE_BUTTON @see #RADIO_BUTTON
A top level window with a title bar border menu bar etc. It is often used as the primary window for an application. @see #DIALOG @see #CANVAS @see #WINDOWClass AccessibleRole, AccessibleRole GLASS_PANE
A pane that is guaranteed to be painted on top of all panes beneath it. @see #ROOT_PANE @see #CANVASClass AccessibleRole, AccessibleRole LIST
An object that presents a list of objects to the user and allows the user to select one or more of them. A list is usually contained within a scroll pane. @see #SCROLL_PANE @see #LIST_ITEMClass AccessibleRole, AccessibleRole MENU
An object usuallyClass AccessibleRole, AccessibleRole TOGGLE_BUTTONcontained infound inside a menu bar that contains a list of actions the user can choose from. A menu can have any object as its children but most often they are menu items other menus or rudimentary objects such as radio buttons check boxes or separators. For example an application may have an "Edit" menu that contains menu items for "Cut" and "Paste." @see #MENU_BAR @see #MENU_ITEM @see #SEPARATOR @see #RADIO_BUTTON @see #CHECK_BOX @see #POPUP_MENU
A specialized push button that can be checked or unchecked but does not provide a separate indicatorClass AccessibleRole, AccessibleRole TOOL_BARindicatingfor the current state. @see #PUSH_BUTTON @see #CHECK_BOX @see #RADIO_BUTTON
A bar or palette usually composed of push buttons or toggle buttons. It is often used to provide the mostoftenfrequently used functions for an application.
This AccessibleSelection interface provides the standard mechanism for an assistive technology to determine what the current selected children are as well as modify the selection set. Any object that has children that can be selected should supportClass AccessibleSelection, Accessible getAccessibleSelection(int)thisthe AccessibleSelection interface. Applications can determine if an object supports the AccessibleSelection interface by first obtaining its AccessibleContext (see an then calling the AccessibleContext#getAccessibleSelection method. If the return value is not null the object supports this interface. @see Accessible @see Accessible#getAccessibleContext @see AccessibleContext @see AccessibleContext#getAccessibleSelection @version 1.7 08/26/98 21:14:11 @author Peter Korn @author Hans Muller @author Willie Walker
Returns an Accessible representing the specified selected childinof the object. If there isn't a selection or there are fewer children selected than the integer passed in the return value will be null.Note that the index represents the i-th selected child which is different from the i-th child. @param i the zero-based index of selected children @return the i-th selected child @see #getAccessibleSelectionCount
Class AccessibleState, constructor AccessibleState(String)Class AccessibleState describes a
componetscomponent's particular state. The actual state of the component is defined as an AccessibleStateSet which is a composed set of AccessibleStates.The toDisplayString method allows you to obtain the localized string for a locale independent key from a predefined ResourceBundle for the keys defined in this class.
The constants in this class present a strongly typed enumeration of common object roles. A public constructor for this class has been purposely omitted and applications should use one of the constants from this class. If the constants in this class are not sufficient to describe the role of an object a subclass should be generated from this class and it should provide constants in a similar manner. @version 1.
26 0827 10/2612/98 2199 14:1348:59 @author Willie Walker @author Peter Korn
Class AccessibleState, AccessibleState FOCUSEDCreateCreates a new AccessibleState using the given locale independent key. This should not be a public method. Instead it is used to create the constants in this file to make it a strongly typed enumeration. Subclasses of this class should enforce similar policy. @param key the locale independent name of the state. @note The String should be a locale independent key for the state. It is not intended to be used as the actual String to display to the user. To get the localized string use toDisplayString. @see AccessibleBundle#toDisplayString
Indicates this objectcurrentcurrently has the keyboard focus. @see #FOCUSABLE
Class AccessibleStateSet determines aClass AccessibleStateSet, constructor AccessibleStateSet()componentscomponent's state set. The state set of a component is a set of AccessibleState objects and descriptions.theE.G. The current overall state of the object such as whether it is enabled has focus etc. @see AccessibleState @version 1.9 0810 10/2612/98 2199 15:1405:0034 @author Willie Walker
Class AccessibleStateSet, constructor AccessibleStateSet(AccessibleState[])CreateCreates a new empty state set.
Class AccessibleStateSet, boolean add(AccessibleState)CreateCreates a new state with the initial set of states contained in the array of states passed in. Duplicate entries are ignored. @param state an array of AccessibleState describing the state set.
Class AccessibleStateSet, void addAll(AccessibleState[])AddAdds a new state to the current state set if it is not already present. If the state is already in the state set the state set is unchanged and the return value is false. Otherwise the state is added to the state set and the return value is true. @param state the state to add to the state set @return true if state is added to the state set; false if the state set is unchanged
Class AccessibleStateSet, void clear()AddAdds all of the states to the existing state set. Duplicate entries are ignored. @param state AccessibleState array describing the state set.
Class AccessibleStateSet, boolean contains(AccessibleState)RemoveRemoves all the states from the current state set.
Class AccessibleStateSet, boolean remove(AccessibleState)CheckChecks if the current state is in the state set. @param state the state @return true if the state is in the state set; otherwise false
Class AccessibleStateSet, AccessibleState[] toArray()RemoveRemoves a state from the current state set. If the state is not in the set the state set will be unchanged and the return value will be false. If the state is in the state set it will be removed from the set and the return value will be true. @param state the state to remove from the state set @return trueisif the state is in the state set; false if the state set will be unchanged
Returns the current state set as an array of AccessibleState @return AccessibleState arrayClass AccessibleStateSet, String toString()conatiningcontaining the current state.
CreateCreates a localized String representing all the states in the set using the default locale. @return comma separated localized String @see AccessibleBundle#toDisplayString
Class AccessibleText, String getAtIndex(int, int)ReturnReturns the String after a given index. @param part the CHARACTER WORD or SENTENCE to retrieve @param index an index within the text @return the letter word or sentence
Class AccessibleText, String getBeforeIndex(int, int)ReturnReturns the String at a given index. @param part the CHARACTER WORD or SENTENCE to retrieve @param index an index within the text @return the letter word or sentence
Class AccessibleText, int getCaretPosition()ReturnReturns the String before a given index. @param part the CHARACTER WORD or SENTENCE to retrieve @param index an index within the text @return the letter word or sentence
Class AccessibleText, int getCharCount()ReturnReturns the zero-based offset of the caret. Note: That to the right of the caret will have the same index value as the offset (the caret is between two characters). @return the zero-based offset of the caret.
Class AccessibleText, AttributeSet getCharacterAttribute(int)ReturnReturns the number of characters (valid indicies) @return the number of characters
Class AccessibleText, Rectangle getCharacterBounds(int)ReturnReturns the AttributeSet for a given character at a given index @param i the zero-based index into the text @return the AttributeSet of the character
Class AccessibleText, int getIndexAtPoint(Point)DetermineDetermines the bounding box of the character at the given index into the string. The bounds are returned in local coordinates. If the index is invalid an empty rectangle is returned. @param i the index into the String @return the screen coordinates of the character'sthebounding box if index is invalidreturnsreturn an empty rectangle.
Given a point in local coordinates return the zero-based index of the character under that Point. If the point is invalid this method returns -1. @param p the Point in local coordinates @return the zero-based index of the character under Point p; if Point is invalidClass AccessibleText, int CHARACTERreturnsreturn -1.
Constant used to indicate that the part of the text that should be retrieved is a character. @see #getAtIndex @see #getAfterIndex @see #getBeforeIndexClass AccessibleText, int SENTENCE
Constant used to indicate that the part of the text that should be retrieved is a sentence. @see #getAtIndex @see #getAfterIndex @see #getBeforeIndexClass AccessibleText, int WORD
Constant used to indicate that the part of the text that should be retrieved is a word. @see #getAtIndex @see #getAfterIndex @see #getBeforeIndex
The AccessibleValue interface should be supported by any object that supports a numerical value (e.g. a scroll bar). This interface provides the standard mechanism for an assistive technology to determine and set the numerical value as well as get the minimum and maximum values. Applications can determine if an object supports the AccessibleValue interface by first obtaining its AccessibleContext (see an then calling the AccessibleContext#getAccessibleValue method. If the return value is not null the object supports this interface. @see Accessible @see Accessible#getAccessibleContext @see AccessibleContext @see AccessibleContext#getAccessibleValue @version 1.8 089 10/2612/98 2199 15:1441:1354 @author Peter Korn @author Hans Muller @author Willie Walker