JavaSwingText components and DocumentHTML: HTMLDocument


HTMLDocument

Features

StyleSheet (as StyleContext), default style sheet type (purpose?)

ParserCallback

baseURL (not as property), token threshold (as property), preserves unknown tags (not as property), parser (strangely both as property and not)

insertUpdate uses contentAttribute

setParagraphAttribute (fix for the weak implementation of DefaultStyledDocument that only allowed no intermediate section elements)

Iterator (only implemented for leaf tags), getElement 2x

leaf elements are RunElements, branch elements are BlockElements (main difference is that they have no resolver (but still resolve because of some AttributeSet implementation anomalies in AbstractDocument)

default root has a single P

frame hacks, map hacks

HTML modification methods: setInner/OuterHTML, insertBefore/AfterStart/End

complicated private element structure methods

reader (lots of hacks)

Uses of HTMLDocument


(C) 2001-2009 Christian Kaufhold (swing@chka.de)