28
29 import java.util.*;
30 import java.awt.*;
31 import javax.swing.text.*;
32
33
34 /**
35 * <P>The AccessibleExtendedText interface contains additional methods
36 * not provided by the AccessibleText interface
37 *
38 * Applications can determine if an object supports the AccessibleExtendedText
39 * interface by first obtaining its AccessibleContext (see {@link Accessible})
40 * and then calling the {@link AccessibleContext#getAccessibleText} method of
41 * AccessibleContext. If the return value is an instance of
42 * AccessibleExtendedText, the object supports this interface.
43 *
44 * @see Accessible
45 * @see Accessible#getAccessibleContext
46 * @see AccessibleContext
47 * @see AccessibleContext#getAccessibleText
48 * @see AccessibleText.AccessibleTextChunk
49 *
50 * @author Peter Korn
51 * @author Lynn Monsanto
52 * @since 1.5
53 */
54 public interface AccessibleExtendedText {
55
56 /**
57 * Constant used to indicate that the part of the text that should be
58 * retrieved is a line of text.
59 *
60 * @see AccessibleText#getAtIndex
61 * @see AccessibleText#getAfterIndex
62 * @see AccessibleText#getBeforeIndex
63 */
64 public static final int LINE = 4; // BugID: 4849720
65
66 /**
67 * Constant used to indicate that the part of the text that should be
68 * retrieved is contiguous text with the same text attributes.
|
28
29 import java.util.*;
30 import java.awt.*;
31 import javax.swing.text.*;
32
33
34 /**
35 * <P>The AccessibleExtendedText interface contains additional methods
36 * not provided by the AccessibleText interface
37 *
38 * Applications can determine if an object supports the AccessibleExtendedText
39 * interface by first obtaining its AccessibleContext (see {@link Accessible})
40 * and then calling the {@link AccessibleContext#getAccessibleText} method of
41 * AccessibleContext. If the return value is an instance of
42 * AccessibleExtendedText, the object supports this interface.
43 *
44 * @see Accessible
45 * @see Accessible#getAccessibleContext
46 * @see AccessibleContext
47 * @see AccessibleContext#getAccessibleText
48 *
49 * @author Peter Korn
50 * @author Lynn Monsanto
51 * @since 1.5
52 */
53 public interface AccessibleExtendedText {
54
55 /**
56 * Constant used to indicate that the part of the text that should be
57 * retrieved is a line of text.
58 *
59 * @see AccessibleText#getAtIndex
60 * @see AccessibleText#getAfterIndex
61 * @see AccessibleText#getBeforeIndex
62 */
63 public static final int LINE = 4; // BugID: 4849720
64
65 /**
66 * Constant used to indicate that the part of the text that should be
67 * retrieved is contiguous text with the same text attributes.
|