Add javadoc to widget class