[cp-patches] FYI: Form submit support

Roman Kennke roman.kennke at aicas.com
Thu Nov 30 19:38:59 UTC 2006


This implements basic form submit support for the Swing html package.
You can now try and start a google search (although, the results pages
render quite ugly right now).

Coincidentally this API-completes the package against JDK1.5. :-)


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

	* javax/swing/text/html/FormSubmitEvent.java: New class.
	* javax/swing/text/html/FormView.java
	(SubmitThread): New class for submitting data in a separate thread.
	(actionPerformed): Fetch the actual for data.
	(addData): New helper method.
	(getElementFormData): New helper method.
	(getFormData): New helper method.
	(getInputFormData): New helper method.
	(submitData): Implemented.
	* javax/swing/text/html/FrameView.java
	(createComponent): Add this as hyperlink listener.
	Set the target document as frame document.
	(getTopEditorPane): New helper method.
	(hyperlinkUpdate): Implementation of the HyperlinkListener interface.
	(handleHyperlinkEvent): New helper method.
	(handleFormSubmitEvent): New helper method.
	* javax/swing/text/html/HTMLDocument.java
	(HTMLReader.BaseAction.start): Track the base target.
	(HTMLReader.BaseAction.end): Removed.
	(baseTarget): New field.
	(frameDocument): New field.
	(getBaseTarget): New property accessor.
	(isFrameDocument): New property accessor.
	(processHTMLFrameHyperlinkEvent): Implemented.
	(setFrameDocument): New property accessor.
	(updateFrame): New helper method.
	(updateFrameSet): New helper method.
	* javax/swing/text/html/HTMLEditorKit.java
	(LinkController.createHyperlinkEvent): Handle frame documents.
	(autoFormSubmission): New field.
	(HTMLEditorKit): Set autoFormSubmission to true.
	(isAutoFormSubmission): New property accessor.
	(setAutoFormSubmission): New property accessor.

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


More information about the Classpath-patches mailing list