code: public void updateUI() {
  		if (!Util.empty(panelContent.getText())) {
  			panelContentRO.setData(panelContent.getData());
  		} else {
  			panelContentRO.setText(SAMPLE_CONTENT);
  		}
  
  		panel.setType((WPanel.Type) panelType.getSelected());
  
  		String headingText = tfHeading.getText();
  		if (!Util.empty(tfHeading.getText())) {
  			heading.setText(tfHeading.getText());
  			panel.setTitleText(headingText);
  		} else {
  			heading.setText(SAMPLE_HEADER);
  			panel.setTitleText(SAMPLE_TITLE_TEXT);
  		}
  	}
docs: Set up the WPanel so that the appropriate items are visible based on configuration settings.