public TabbedCayenneFormPage() {
((TabbedCayenneForm)form).setBackgroundColor("#eee");
((TabbedCayenneForm)form).setTabHeight("155px");
((TabbedCayenneForm)form).setTabWidth("305px");
FieldSet clientFieldSet = new FieldSet("Client");
((TabbedCayenneForm)form).addTabSheet(clientFieldSet);
QuerySelect querySelect = new QuerySelect("title", true);
querySelect.setQueryValueLabel("titles", "value", "label");
clientFieldSet.add(querySelect);
clientFieldSet.add(new TextField("firstName"));
clientFieldSet.add(new TextField("lastName"));
clientFieldSet.add(new DateField("dateJoined"));
clientFieldSet.add(new EmailField("email"));
FieldSet addressFieldSet = new FieldSet("Address");
((TabbedCayenneForm)form).addTabSheet(addressFieldSet);
addressFieldSet.add(new TextField("address.line1", "Line One"));
addressFieldSet.add(new TextField("address.line2", "Line Two"));
addressFieldSet.add(new TextField("address.suburb", "Suburb"));
querySelect = new QuerySelect("address.state", "State", true);
querySelect.setQueryValueLabel("states", "value", "label");
addressFieldSet.add(querySelect);
IntegerField postCodeField = new IntegerField("address.postCode", "Post Code");
postCodeField.setMaxLength(5);
postCodeField.setSize(5);
addressFieldSet.add(postCodeField);
// Table
table.addColumn(new Column("id"));
table.addColumn(new Column("name"));