I did a major rework on the TextAreaModel and HTMLTextAreaModel. The new classes & interfaces now have their own package: de.matthiasmann.twl.textarea
. The new model can now better represent CSS styles.
The following classes are used to specify styles:
- Style - stores all attributes for each element and a reference to the Style of it's surrounding element
- StyleAttribute - Similar to an enum, contains a list of all possible style attributes which can be set in a Style
- CSSStyle - a subclass of Style which can be constructed from a CSS style string
With the above classes the TextAreaModel.Element interface is now a lot smaller and easier to implement.
Any feedback on this would be appreciated.