use of com.github.bordertech.wcomponents.WTableColumn in project wcomponents by BorderTech.
the class WTableOptionsExample method addColumns.
/**
* @param table the table to add columns
*/
private void addColumns(final WTable table) {
// Column - First name
WTextField textField = new WTextField();
textField.setToolTip("First name");
table.addColumn(new WTableColumn("First name", textField, new WText("Footer 1")));
// Column - Last name
textField = new WTextField();
textField.setToolTip("Last name");
table.addColumn(new WTableColumn("Last name", textField, new WText("Footer 2")));
// Column - Date field
WDateField dateField = new WDateField();
dateField.setToolTip("Date of birth");
table.addColumn(new WTableColumn("Date of birth", dateField, new WText("Footer 3")));
}
Aggregations