StandaloneNatExampleRunner.run(800, 600, new NatTableBuilderExample());
}
public Control createExampleControl(Composite parent) {
TableColumn[] columns = new TableColumn[] {
new TableColumn(0, "securityId", "ISIN").setWidth(200)
.setEditor(Editors.getTextEditor()).setCategory("C1"),
new TableColumn(1, "securityDescription", "Name")
.setStyle(new ColumnStyle()).setGroupName("A1")
.setCategory("C1"),
new TableColumn(2, "rating", "Rating")
.setComparator(getIgnoreCaseComparator())
.setGroupName("A1").setCategory("C1"),
new TableColumn(3, "issueDate", "issueDate").setCategory("C1"),
new TableColumn(4, "pricingType", "Pricing type")
.setEditor(
Editors.getComboboxEditor(getPricingComboDataProvider()))
.setFilterRowEditor(
Editors.getComboboxEditor(getPricingComboDataProvider()))
.setCategory("C1"),
new TableColumn(5, "bidPrice", "Bid price")
.setEditor(Editors.getTextEditor())
.setDisplayConverter(
new DefaultDoubleDisplayConverter())
.setGroupName("Pricing").setCategory("C1"),
new TableColumn(6, "askPrice", "Ask price")
.setGroupName("Pricing")
.setDisplayConverter(
DisplayConverters
.getDoubleDisplayConverter("##.00"))
.setCategory("C1"),
new TableColumn(7, "lotSize", "Lot size").setCategory("C1"),
new TableColumn(8, "publishFlag", "Published").setEditor(
Editors.getCheckBoxEditor()).setCategory("C1"),
new TableColumn(9, "high52Week", "52 Week high")
.setCategory("C3"),
new TableColumn(10, "low52Week", "52 week low")
.setCategory("C3"),
new TableColumn(11, "eps", "EPS").setCategory("C2"),
new TableColumn(12, "volume", "Volume").setCategory("C2"),
new TableColumn(13, "marketCap", "Market cap.")
.setCategory("C2"),
new TableColumn(14, "institutionOwned", "Institution owned")
.setCategory("C2"), };
TableModel table = new TableModel(columns);
builder = new NatTableBuilder<TableRowFixture>(parent, table,
GlazedLists.eventList(TableRowFixture.getList()),