[cp-patches] FYI: AccessibleJTextComponent

Roman Kennke roman at kennke.org
Mon Aug 7 19:19:53 UTC 2006


This implements the missing pieces of AccessibleJTextComponent.

2006-08-05  Roman Kennke  <kennke at aicas.com>

	* javax/swing/text/JTextComponent.java
	(AccessibleJTextComponent.dot): Renamed field into caretDot.
	(AccessibleJTextComponent.textComp): Removed field
	and replace with JTextComponent.this construct.
	(AccessibleJTextComponent.AccessibleJTextComponent):
	Fetch caret position.
	(caretUpdate): Implemented. Fires property change events and
	updates the caretDot field.
	(changedUpdate): Implemented. Fires property change events.
	(insertUpdate): Implemented. Fires property change events.
	(removeUpdate): Implemented. Fires property change events.
	(cut): Replaced textComp with JTextComponent.this construct.
	(paste): Replaced textComp with JTextComponent.this construct.
	(replaceText): Replaced textComp with JTextComponent.this construct.
	(selectText): Replaced textComp with JTextComponent.this construct.
	(getCaretPosition): Replaced textComp with JTextComponent.this
	construct.
	(getCharCount): Replaced textComp with JTextComponent.this construct.
	(getSelectedText): Replaced textComp with JTextComponent.this
	construct.
	(getSelectionEnd): Replaced textComp with JTextComponent.this
	construct.
	(getSelectionStart): Replaced textComp with JTextComponent.this
	construct.
	(getTextRange): Replaced textComp with JTextComponent.this
	construct.
	(doAccessibleAction): Implemented.
	(getAccessibleActionCount): Implemented.
	(getAccessibleActionDescription): Implemented.
	(getAccessibleStateSet): Implemented.
	(getAfterIndex): Implemented.
	(getBeforeIndex): Implemented.
	(getAtIndex): Implemented.
	(getAtIndexImpl): New helper method.
	(getCharacterAttribute): Implemented.
	(getCharacterBounds): Implemented.
	(getIndexAtPoint): Implemented.	
	(insertTextAtIndex): Implemented.
	(setAttributes): Implemented.
	(setTextContents): Implemented.

/Roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 21298 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20060807/735dcb56/patch.bin


More information about the Classpath-patches mailing list