code: private void paintRowExpansionElement(final WDataTable table, final XmlStringBuilder xml) {
  		xml.appendTagOpen("ui:rowexpansion");
  
  		switch (table.getExpandMode()) {
  			case CLIENT:
  				xml.appendAttribute("mode", "client");
  				break;
  			case LAZY:
  				xml.appendAttribute("mode", "lazy");
  				break;
  			case SERVER:
  			case DYNAMIC:
  				xml.appendAttribute("mode", "dynamic");
  				break;
  			case NONE:
  				break;
  			default:
  				throw new SystemException("Unknown expand mode: " + table.getExpandMode());
  		}
  
  		xml.appendOptionalAttribute("expandAll", table.isExpandAll(), "true");
  
  		xml.appendEnd();
  	}
docs: Paint the rowSelection aspects of the WDataTable.
  @param table the WDataTable being rendered
  @param xml the string builder in use