[cp-patches] FYI: HTML hyperlink support

Roman Kennke roman.kennke at aicas.com
Thu Nov 2 14:01:16 UTC 2006


This adds basic support (<a> tag) for HTML hyperlinks, including the
mouse-hover cursor change.

2006-11-02  Roman Kennke  <kennke at aicas.com>

	* javax/swing/JEditorPane.java
	(setContentType): Strip off attributes.
	* javax/swing/text/html/HTMLEditorKit.java
	(LinkController.activateLink(int,JEditorPane,int,int): New
	method. Implements activation of a hyperlink.
	(LinkController.activateLinke(int,JEditorPane)): Delegate
	to the other activateLink() method.
	(LinkController.createHyperlinkEvent): New helper method.
	(LinkController.mouseClicked): Implemented to activate the link.
	(LinkController.mouseDragged): Added comment that this
	method does nothing.
	(LinkController.mouseMoved): Update cursor for hyperlinks.
	(mouseHandler): Renamed field to linkController.
	(HTMLEditorKit): Create a link controller.
	(clone): Give the clone a new link controller.
	(deinstall): De-install link controller as mouseMotionListener too.
	(install): Install link controller as mouseMotionListener too.

/Roman

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 13625 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20061102/f7cca634/patch.bin


More information about the Classpath-patches mailing list