added HasText interface to Paragraph

Paragraph has the methods setText and getText, so it should implement HasText interface.

--
D. Reinert