The model (remember MVC?) for all text components is the Document interface.
Of course, that means that, in order to be a text component model, a class must
implement the Document interface.
There are several document models which cover both plain text and formatted text, such as HTML.