code: public String getText() {
  		WComponent body = getComponentModel().body;
  
  		if (body instanceof WText) {
  			return ((WText) body).getText();
  		} else if (body instanceof WLabel) {
  			return ((WLabel) body).getText();
  		} else if (body instanceof WButton) {
  			return ((WButton) body).getText();
  		} else if (body instanceof WLink) {
  			return ((WLink) body).getText();
  		}
  
  		return null;
  	}
docs: Attempts to retrieve the text contained in the body component. This works only for simple components types:
  <ul>
  <li>{@link WButton}</li>
  <li>{@link WLink}</li>
  <li>{@link WLabel}</li>
  <li>{@link WText}</li>
  </ul>
  
  @return the text contained in the body, or null if not found.