Fixed declaration for docs

Just a typo, the decoration of setText was "methos" instead of "method", hence it didn't show up in the docs.