274 * of a push button is AccessibleRole.PUSH_BUTTON. The roles in |
274 * of a push button is AccessibleRole.PUSH_BUTTON. The roles in |
275 * AccessibleRole are provided so component developers can pick from |
275 * AccessibleRole are provided so component developers can pick from |
276 * a set of predefined roles. This enables assistive technologies to |
276 * a set of predefined roles. This enables assistive technologies to |
277 * provide a consistent interface to various tweaked subclasses of |
277 * provide a consistent interface to various tweaked subclasses of |
278 * components (e.g., use AccessibleRole.PUSH_BUTTON for all components |
278 * components (e.g., use AccessibleRole.PUSH_BUTTON for all components |
279 * that act like a push button) as well as distinguish between sublasses |
279 * that act like a push button) as well as distinguish between subclasses |
280 * that behave differently (e.g., AccessibleRole.CHECK_BOX for check boxes |
280 * that behave differently (e.g., AccessibleRole.CHECK_BOX for check boxes |
281 * and AccessibleRole.RADIO_BUTTON for radio buttons). |
281 * and AccessibleRole.RADIO_BUTTON for radio buttons). |
282 * <p>Note that the AccessibleRole class is also extensible, so |
282 * <p>Note that the AccessibleRole class is also extensible, so |
283 * custom component developers can define their own AccessibleRole's |
283 * custom component developers can define their own AccessibleRole's |
284 * if the set of predefined roles is inadequate. |
284 * if the set of predefined roles is inadequate. |
891 * of a push button is AccessibleRole.PUSH_BUTTON. The roles in |
891 * of a push button is AccessibleRole.PUSH_BUTTON. The roles in |
892 * AccessibleRole are provided so component developers can pick from |
892 * AccessibleRole are provided so component developers can pick from |
893 * a set of predefined roles. This enables assistive technologies to |
893 * a set of predefined roles. This enables assistive technologies to |
894 * provide a consistent interface to various tweaked subclasses of |
894 * provide a consistent interface to various tweaked subclasses of |
895 * components (e.g., use AccessibleRole.PUSH_BUTTON for all components |
895 * components (e.g., use AccessibleRole.PUSH_BUTTON for all components |
896 * that act like a push button) as well as distinguish between sublasses |
896 * that act like a push button) as well as distinguish between subclasses |
897 * that behave differently (e.g., AccessibleRole.CHECK_BOX for check boxes |
897 * that behave differently (e.g., AccessibleRole.CHECK_BOX for check boxes |
898 * and AccessibleRole.RADIO_BUTTON for radio buttons). |
898 * and AccessibleRole.RADIO_BUTTON for radio buttons). |
899 * <p>Note that the AccessibleRole class is also extensible, so |
899 * <p>Note that the AccessibleRole class is also extensible, so |
900 * custom component developers can define their own AccessibleRole's |
900 * custom component developers can define their own AccessibleRole's |
901 * if the set of predefined roles is inadequate. |
901 * if the set of predefined roles is inadequate. |
1190 /** |
1190 /** |
1191 * Returns the end offset within the selected text. |
1191 * Returns the end offset within the selected text. |
1192 * If there is no selection, but there is |
1192 * If there is no selection, but there is |
1193 * a caret, the start and end offsets will be the same. |
1193 * a caret, the start and end offsets will be the same. |
1194 * |
1194 * |
1195 * @return the index into teh text of the end of the selection |
1195 * @return the index into the text of the end of the selection |
1196 */ |
1196 */ |
1197 public int getSelectionEnd() { |
1197 public int getSelectionEnd() { |
1198 return editor.getSelectionEnd(); |
1198 return editor.getSelectionEnd(); |
1199 } |
1199 } |
1200 |
1200 |
1325 * of a push button is AccessibleRole.PUSH_BUTTON. The roles in |
1325 * of a push button is AccessibleRole.PUSH_BUTTON. The roles in |
1326 * AccessibleRole are provided so component developers can pick from |
1326 * AccessibleRole are provided so component developers can pick from |
1327 * a set of predefined roles. This enables assistive technologies to |
1327 * a set of predefined roles. This enables assistive technologies to |
1328 * provide a consistent interface to various tweaked subclasses of |
1328 * provide a consistent interface to various tweaked subclasses of |
1329 * components (e.g., use AccessibleRole.PUSH_BUTTON for all components |
1329 * components (e.g., use AccessibleRole.PUSH_BUTTON for all components |
1330 * that act like a push button) as well as distinguish between sublasses |
1330 * that act like a push button) as well as distinguish between subclasses |
1331 * that behave differently (e.g., AccessibleRole.CHECK_BOX for check boxes |
1331 * that behave differently (e.g., AccessibleRole.CHECK_BOX for check boxes |
1332 * and AccessibleRole.RADIO_BUTTON for radio buttons). |
1332 * and AccessibleRole.RADIO_BUTTON for radio buttons). |
1333 * <p>Note that the AccessibleRole class is also extensible, so |
1333 * <p>Note that the AccessibleRole class is also extensible, so |
1334 * custom component developers can define their own AccessibleRole's |
1334 * custom component developers can define their own AccessibleRole's |
1335 * if the set of predefined roles is inadequate. |
1335 * if the set of predefined roles is inadequate. |
1626 * of a push button is AccessibleRole.PUSH_BUTTON. The roles in |
1626 * of a push button is AccessibleRole.PUSH_BUTTON. The roles in |
1627 * AccessibleRole are provided so component developers can pick from |
1627 * AccessibleRole are provided so component developers can pick from |
1628 * a set of predefined roles. This enables assistive technologies to |
1628 * a set of predefined roles. This enables assistive technologies to |
1629 * provide a consistent interface to various tweaked subclasses of |
1629 * provide a consistent interface to various tweaked subclasses of |
1630 * components (e.g., use AccessibleRole.PUSH_BUTTON for all components |
1630 * components (e.g., use AccessibleRole.PUSH_BUTTON for all components |
1631 * that act like a push button) as well as distinguish between sublasses |
1631 * that act like a push button) as well as distinguish between subclasses |
1632 * that behave differently (e.g., AccessibleRole.CHECK_BOX for check boxes |
1632 * that behave differently (e.g., AccessibleRole.CHECK_BOX for check boxes |
1633 * and AccessibleRole.RADIO_BUTTON for radio buttons). |
1633 * and AccessibleRole.RADIO_BUTTON for radio buttons). |
1634 * <p>Note that the AccessibleRole class is also extensible, so |
1634 * <p>Note that the AccessibleRole class is also extensible, so |
1635 * custom component developers can define their own AccessibleRole's |
1635 * custom component developers can define their own AccessibleRole's |
1636 * if the set of predefined roles is inadequate. |
1636 * if the set of predefined roles is inadequate. |