本文整理汇总了Java中com.vaadin.ui.ComboBox.setDescription方法的典型用法代码示例。如果您正苦于以下问题:Java ComboBox.setDescription方法的具体用法?Java ComboBox.setDescription怎么用?Java ComboBox.setDescription使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.vaadin.ui.ComboBox
的用法示例。
在下文中一共展示了ComboBox.setDescription方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initComponents
import com.vaadin.ui.ComboBox; //导入方法依赖的package包/类
/**
* Setup UI.
*/
private void initComponents() {
List<User> users = UserList.INSTANCE.getUsers();
userSwitchBox = new ComboBox(Messages.getString("UserSwitchPanel.boxCaption")); //$NON-NLS-1$
setUsers(users);
User current = (User) VaadinSession.getCurrent().getAttribute(SessionStorageKey.USER.name());
userSwitchBox.setValue(current);
userSwitchBox.setDescription(
Messages.getString("UserSwitchPanel.boxDescription")); //$NON-NLS-1$
userSwitchBox.setNewItemsAllowed(false);
userSwitchBox.setNullSelectionAllowed(false);
addComponent(userSwitchBox);
btReload = new Button(Messages.getString("UserSwitchPanel.reloadCaption")); //$NON-NLS-1$
btReload.setStyleName(BaseTheme.BUTTON_LINK);
btReload.addStyleName("plain-link"); //$NON-NLS-1$
addComponent(btReload);
}
示例2: buildHorizontalLayout_1
import com.vaadin.ui.ComboBox; //导入方法依赖的package包/类
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_1() {
// common part: create layout
horizontalLayout_1 = new HorizontalLayout();
horizontalLayout_1.setImmediate(false);
horizontalLayout_1.setWidth("-1px");
horizontalLayout_1.setHeight("-1px");
horizontalLayout_1.setMargin(false);
horizontalLayout_1.setSpacing(true);
// comboBoxMin
comboBoxMin = new ComboBox();
comboBoxMin.setCaption("Minimum Type");
comboBoxMin.setImmediate(true);
comboBoxMin.setDescription("Select the type for the minimum.");
comboBoxMin.setWidth("-1px");
comboBoxMin.setHeight("-1px");
horizontalLayout_1.addComponent(comboBoxMin);
// textFieldMin
textFieldMin = new TextField();
textFieldMin.setCaption("Minimum Value");
textFieldMin.setImmediate(true);
textFieldMin.setDescription("Enter a value for the minimum.");
textFieldMin.setWidth("-1px");
textFieldMin.setHeight("-1px");
textFieldMin.setInvalidAllowed(false);
textFieldMin.setInputPrompt("eg. 1");
horizontalLayout_1.addComponent(textFieldMin);
horizontalLayout_1
.setComponentAlignment(textFieldMin, new Alignment(9));
return horizontalLayout_1;
}
示例3: buildHorizontalLayout_2
import com.vaadin.ui.ComboBox; //导入方法依赖的package包/类
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_2() {
// common part: create layout
horizontalLayout_2 = new HorizontalLayout();
horizontalLayout_2.setImmediate(false);
horizontalLayout_2.setWidth("-1px");
horizontalLayout_2.setHeight("-1px");
horizontalLayout_2.setMargin(false);
horizontalLayout_2.setSpacing(true);
// comboBoxMax
comboBoxMax = new ComboBox();
comboBoxMax.setCaption("Maximum Type");
comboBoxMax.setImmediate(true);
comboBoxMax.setDescription("Select the type for the maximum.");
comboBoxMax.setWidth("-1px");
comboBoxMax.setHeight("-1px");
horizontalLayout_2.addComponent(comboBoxMax);
// textFieldMax
textFieldMax = new TextField();
textFieldMax.setCaption("Maximum Value");
textFieldMax.setImmediate(true);
textFieldMax.setDescription("Enter a value for the maxmum.");
textFieldMax.setWidth("-1px");
textFieldMax.setHeight("-1px");
textFieldMax.setInvalidAllowed(false);
textFieldMax.setInputPrompt("eg. 100");
horizontalLayout_2.addComponent(textFieldMax);
return horizontalLayout_2;
}
示例4: LoanCalculatorForm
import com.vaadin.ui.ComboBox; //导入方法依赖的package包/类
public LoanCalculatorForm() {
super("Рассчет кредита и подбор кредитного продукта");
final VerticalLayout mainLayout = new VerticalLayout();
final ExtaFormLayout paramForm = new ExtaFormLayout();
paramForm.addComponent(new FormGroupHeader("Параметры кредита"));
priceField = new EditField("Стоимость техники", "Введите стоимость техники");
priceField.setRequired(true);
downpaymentField = new PercentOfField("Первоначальный взнос", "Введите сумму первоначального взноса по кредиту");
downpaymentField.setRequired(true);
paramForm.addComponent(downpaymentField);
periodField = new ComboBox("Срок кредитования");
periodField.setDescription("Введите период кредитования (срок кредита)");
periodField.setImmediate(true);
periodField.setNullSelectionAllowed(false);
periodField.setRequired(true);
periodField.setWidth(6, Unit.EM);
// Наполняем возможными сроками кредита
fillPeriodFieldItems();
paramForm.addComponent(periodField);
summField = new EditField("Сумма кредита", "Введите сумму кредита (Также может рассчитываться автоматически)");
summField.setRequired(true);
paramForm.addComponent(summField);
mainLayout.addComponent(paramForm);
setContent(mainLayout);
}
示例5: buildEditor
import com.vaadin.ui.ComboBox; //导入方法依赖的package包/类
@Override
protected Component buildEditor(final ValidatingFieldGroup<RaffleAllocation> fieldGroup2)
{
final MultiColumnFormLayout<RaffleAllocation> overviewForm = new MultiColumnFormLayout<RaffleAllocation>(1,
this.fieldGroup);
overviewForm.setColumnFieldWidth(0, 240);
overviewForm.setColumnLabelWidth(0, 110);
// overviewForm.setColumnExpandRatio(0, 1.0f);
overviewForm.setSizeFull();
final FormHelper<RaffleAllocation> formHelper = overviewForm.getFormHelper();
final ComboBox allocatedTo = formHelper.new EntityFieldBuilder<Contact>().setLabel("Allocated To")
.setField(RaffleAllocation_.allocatedTo).setListFieldName(Contact_.fullname).build();
allocatedTo.setFilteringMode(FilteringMode.CONTAINS);
allocatedTo.setTextInputAllowed(true);
allocatedTo.setNullSelectionAllowed(true);
allocatedTo.setDescription("The person the book has been allocated to.");
overviewForm.bindDateField("Date Allocated", RaffleAllocation_.dateAllocated, "yyyy-MM-dd", Resolution.DAY);
final ComboBox issuedBy = formHelper.new EntityFieldBuilder<Contact>().setLabel("Issued By")
.setField(RaffleAllocation_.issuedBy).setListFieldName(Contact_.fullname).build();
issuedBy.setFilteringMode(FilteringMode.CONTAINS);
issuedBy.setTextInputAllowed(true);
issuedBy.setDescription("The leader that issued the book to the member.");
issuedBy.setNullSelectionAllowed(true);
overviewForm.bindDateField("Date Issued", RaffleAllocation_.dateIssued, "yyyy-MM-dd", Resolution.DAY);
final TextField bookCountField = overviewForm.bindTextField("Book Count", "bookCount");
bookCountField.setReadOnly(true);
overviewForm.bindTextAreaField("Notes", RaffleAllocation_.notes, 6);
return overviewForm;
}
示例6: buildMainLayout
import com.vaadin.ui.ComboBox; //导入方法依赖的package包/类
@AutoGenerated
private FormLayout buildMainLayout() {
// common part: create layout
mainLayout = new FormLayout();
mainLayout.setImmediate(false);
// textFieldPolicyName
textFieldPolicyName = new TextField();
textFieldPolicyName.setCaption("Policy File Name");
textFieldPolicyName.setImmediate(true);
textFieldPolicyName.setWidth("-1px");
textFieldPolicyName.setHeight("-1px");
textFieldPolicyName.setInputPrompt("Enter filename eg. foobar.xml");
textFieldPolicyName.setRequired(true);
mainLayout.addComponent(textFieldPolicyName);
// textAreaDescription
textAreaDescription = new TextArea();
textAreaDescription.setCaption("Description");
textAreaDescription.setImmediate(false);
textAreaDescription.setWidth("100%");
textAreaDescription.setHeight("-1px");
textAreaDescription
.setInputPrompt("Enter a description for the Policy/PolicySet.");
textAreaDescription.setNullSettingAllowed(true);
mainLayout.addComponent(textAreaDescription);
// optionPolicySet
optionPolicySet = new OptionGroup();
optionPolicySet.setCaption("Policy or PolicySet?");
optionPolicySet.setImmediate(true);
optionPolicySet
.setDescription("Is the root level a Policy or Policy Set.");
optionPolicySet.setWidth("-1px");
optionPolicySet.setHeight("-1px");
optionPolicySet.setRequired(true);
mainLayout.addComponent(optionPolicySet);
// comboAlgorithms
comboAlgorithms = new ComboBox();
comboAlgorithms.setCaption("Combining Algorithm");
comboAlgorithms.setImmediate(false);
comboAlgorithms.setDescription("Select the combining algorithm.");
comboAlgorithms.setWidth("-1px");
comboAlgorithms.setHeight("-1px");
comboAlgorithms.setRequired(true);
mainLayout.addComponent(comboAlgorithms);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Save");
buttonSave.setImmediate(true);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
return mainLayout;
}
示例7: createEditFields
import com.vaadin.ui.ComboBox; //导入方法依赖的package包/类
/**
* <p>createEditFields.</p>
*
* @return a {@link com.vaadin.ui.ComponentContainer} object.
*/
@Override
protected ComponentContainer createEditFields() {
final ExtaFormLayout form = new ExtaFormLayout();
form.addComponent(new FormGroupHeader("Продукт"));
productField = new ProdInstallmentsField("Продукт", "Введите название продукта");
productField.setRequired(true);
productField.addValueChangeListener(e -> refreshProductFields());
form.addComponent(productField);
stateField = new ProdInstanceStateSelect("Статус рассмотрения", "Укажите статус рассмотрения заявки на продукт");
form.addComponent(stateField);
form.addComponent(new FormGroupHeader("Характеристики продукта"));
vendorLabel = new Label();
vendorLabel.setCaption("Эммитент");
form.addComponent(vendorLabel);
downpaymentLabel = new Label();
downpaymentLabel.setCaption("Первоначальный взнос");
form.addComponent(downpaymentLabel);
periodLabel = new Label();
periodLabel.setCaption("Период рассрочки");
form.addComponent(periodLabel);
form.addComponent(new FormGroupHeader("Параметры рассрочки"));
downpaymentField = new PercentOfField("Первоначальный взнос", "Введите сумму первоначального взноса по рассрочке");
downpaymentField.setRequired(true);
form.addComponent(downpaymentField);
periodField = new ComboBox("Срок рассрочки");
periodField.setDescription("Введите период рассрочки (длительность рассрочки)");
periodField.setImmediate(true);
periodField.setNullSelectionAllowed(false);
periodField.setRequired(true);
periodField.setWidth(6, Unit.EM);
// Наполняем возможными сроками кредита
fillPeriodFieldItems();
form.addComponent(periodField);
summField = new EditField("Сумма рассрочки", "Введите сумму рассрочки (Также может рассчитываться автоматически)");
summField.setRequired(true);
form.addComponent(summField);
// Размер ежемесячного платежа
monthlyPayLabel = new Label();
monthlyPayLabel.setCaption("Ежемесячный платеж");
form.addComponent(monthlyPayLabel);
// Ответственный со стороны банка
responsibleField = new EmployeeField("Ответственный сотрудник", "Укажите ответственного со стороны эммитента рассрочки");
responsibleField.setCompanySupplier(() -> {
final ProdInstallments product = productField.getValue();
if (product != null) {
return product.getVendor();
} else
return null;
});
form.addComponent(responsibleField);
// Инициализация валидаторов
initValidators();
// Обновление рассчетных полей
refreshProductFields();
refreshInstCosts();
// Инициализация взаимосвязей
initRelations();
return form;
}
示例8: createEditFields
import com.vaadin.ui.ComboBox; //导入方法依赖的package包/类
/**
* <p>createEditFields.</p>
*
* @return a {@link com.vaadin.ui.ComponentContainer} object.
*/
@Override
protected ComponentContainer createEditFields() {
final ExtaFormLayout form = new ExtaFormLayout();
form.addComponent(new FormGroupHeader("Продукт"));
productField = new ProdInsuranceField("Продукт", "Введите название продукта");
productField.setRequired(true);
productField.addValueChangeListener(e -> refreshProductFields());
form.addComponent(productField);
form.addComponent(new FormGroupHeader("Характеристики продукта"));
vendorLabel = new Label();
vendorLabel.setCaption("Страховщик");
form.addComponent(vendorLabel);
tariffLabel = new Label();
tariffLabel.setCaption("Тариф");
tariffLabel.setConverter(lookup(StringToPercentConverter.class));
form.addComponent(tariffLabel);
form.addComponent(new FormGroupHeader("Параметры страховки"));
periodField = new ComboBox("Период страхования");
periodField.setDescription("Введите период страхования");
periodField.setImmediate(true);
periodField.setNullSelectionAllowed(false);
periodField.setRequired(true);
periodField.setWidth(6, Unit.EM);
// Наполняем возможными сроками страховки
fillPeriodFieldItems();
form.addComponent(periodField);
// Ответственный за оформление страховки
responsibleField = new EmployeeField("Ответственный", "Укажите ответственного за оформление страховки");
responsibleField.setCompanySupplier(() -> {
final ProdInsurance product = productField.getValue();
if (product != null) {
return product.getVendor();
} else
return null;
});
form.addComponent(responsibleField);
form.addComponent(new FormGroupHeader("Стоимость страховки"));
// Размер страховой премии
premiumLabel = new Label();
premiumLabel.setCaption("Страховая премия");
form.addComponent(premiumLabel);
// Обновление рассчетных полей
refreshProductFields();
refreshInsCosts();
// Инициализация взаимосвязей
initRelations();
return form;
}
示例9: createEditFields
import com.vaadin.ui.ComboBox; //导入方法依赖的package包/类
/**
* <p>createEditFields.</p>
*
* @return a {@link ComponentContainer} object.
*/
@Override
protected ComponentContainer createEditFields() {
final ExtaFormLayout form = new ExtaFormLayout();
form.addComponent(new FormGroupHeader("Продукт"));
productField = new ProdHirePurchaseField("Продукт", "Введите название продукта");
productField.setRequired(true);
productField.addValueChangeListener(e -> refreshProductFields());
form.addComponent(productField);
stateField = new ProdInstanceStateSelect("Статус рассмотрения", "Укажите статус рассмотрения заявки на продукт");
form.addComponent(stateField);
form.addComponent(new FormGroupHeader("Сопутствующие расходы"));
expendituresField = new ProductExpendituresField("Статьи расходов",
"Список дополнительных расходов сопровождающих продукт", (ProductInstance) getEntity());
form.addComponent(expendituresField);
form.addComponent(new FormGroupHeader("Характеристики продукта"));
vendorLabel = new Label();
vendorLabel.setCaption("Эммитент");
form.addComponent(vendorLabel);
downpaymentLabel = new Label();
downpaymentLabel.setCaption("Первоначальный взнос");
form.addComponent(downpaymentLabel);
periodLabel = new Label();
periodLabel.setCaption("Период рассрочки");
form.addComponent(periodLabel);
form.addComponent(new FormGroupHeader("Параметры рассрочки"));
downpaymentField = new PercentOfField("Первоначальный взнос", "Введите сумму первоначального взноса по рассрочке");
downpaymentField.setRequired(true);
form.addComponent(downpaymentField);
periodField = new ComboBox("Срок рассрочки");
periodField.setDescription("Введите период рассрочки (длительность рассрочки)");
periodField.setImmediate(true);
periodField.setNullSelectionAllowed(false);
periodField.setRequired(true);
periodField.setWidth(6, Unit.EM);
// Наполняем возможными сроками кредита
fillPeriodFieldItems();
form.addComponent(periodField);
summField = new EditField("Сумма рассрочки", "Введите сумму рассрочки (Также может рассчитываться автоматически)");
summField.setRequired(true);
form.addComponent(summField);
// Ответственный со стороны банка
responsibleField = new EmployeeField("Ответственный сотрудник", "Укажите ответственного со стороны эммитента рассрочки");
responsibleField.setCompanySupplier(() -> {
final ProdHirePurchase product = productField.getValue();
if (product != null) {
return product.getVendor();
} else
return null;
});
form.addComponent(responsibleField);
// Инициализация валидаторов
initValidators();
// Обновление рассчетных полей
refreshProductFields();
refreshInstCosts();
// Инициализация взаимосвязей
initRelations();
return form;
}
示例10: buildOverviewTab
import com.vaadin.ui.ComboBox; //导入方法依赖的package包/类
private void buildOverviewTab()
{
final SMMultiColumnFormLayout<Raffle> overviewForm = new SMMultiColumnFormLayout<Raffle>(1, this.fieldGroup);
overviewForm.setColumnFieldWidth(0, 300);
overviewForm.setSizeFull();
overviewForm.bindTextField("Name", Raffle_.name);
overviewForm.bindTextAreaField("Notes", Raffle_.notes, 6);
overviewForm.bindDateField("Start Date", Raffle_.startDate, "yyyy/MM/dd", Resolution.DAY);
overviewForm.bindDateField("Collect By Date", Raffle_.collectionsDate, "yyyy/MM/dd", Resolution.DAY)
.setDescription("The date the raffle ticksets need to be collected by.");
overviewForm.bindDateField("Return Date", Raffle_.returnDate, "yyyy/MM/dd", Resolution.DAY)
.setDescription("The date the raffle ticksets need to be returned to Branch.");
final FormHelper<Raffle> formHelper = overviewForm.getFormHelper();
final ComboBox groupRaffleManager = formHelper.new EntityFieldBuilder<Contact>()
.setLabel("Group Raffle Manager").setField(Raffle_.groupRaffleManager)
.setListFieldName(Contact_.fullname).build();
groupRaffleManager.setFilteringMode(FilteringMode.CONTAINS);
groupRaffleManager.setTextInputAllowed(true);
groupRaffleManager.setDescription("The Group member responsible for organising the Raffle.");
final ComboBox branchRaffleConact = formHelper.new EntityFieldBuilder<Contact>()
.setLabel("Branch Raffle Contact").setField(Raffle_.branchRaffleContact)
.setListFieldName(Contact_.fullname).build();
branchRaffleConact.setFilteringMode(FilteringMode.CONTAINS);
branchRaffleConact.setTextInputAllowed(true);
branchRaffleConact.setDescription("The Branch person who is a main contact for Raffle issues.");
overviewForm.bindTextField("Book No. Prefix", Raffle_.raffleNoPrefix)
.setDescription("If raffle books have a non-numeric prefix for the ticket no's enter it here.");
overviewForm.bindTextField("Tickets per Book", Raffle_.ticketsPerBook);
overviewForm.bindTextField("Total Tickets Sold", Raffle_.totalTicketsSold).setReadOnly(true);
overviewForm.bindTextField("Tickets Outstanding", Raffle_.ticketsOutstanding).setReadOnly(true);
overviewForm.bindTextField("Sales Price per Ticket", Raffle_.salePricePerTicket)
.setDescription("The amount each ticket is to be sold for.");
overviewForm.bindTextField("Revenue Target", Raffle_.revenueTarget)
.setDescription("The amount the Group is aiming to raise via the Raffle.");
overviewForm.bindTextField("Revenue Raised", Raffle_.revenueRaised).setReadOnly(true);
this.tabs.addTab(overviewForm, "Raffle");
}
示例11: buildNewRaffleLayout
import com.vaadin.ui.ComboBox; //导入方法依赖的package包/类
AbstractLayout buildNewRaffleLayout(final ValidatingFieldGroup<Raffle> fieldGroup)
{
final SMMultiColumnFormLayout<Raffle> overviewForm = new SMMultiColumnFormLayout<Raffle>(1, fieldGroup);
overviewForm.setColumnFieldWidth(0, 300);
overviewForm.setSizeFull();
overviewForm.bindTextField("Name", Raffle_.name);
overviewForm.bindTextAreaField("Notes", Raffle_.notes, 6);
overviewForm.bindDateField("Start Date", Raffle_.startDate, "yyyy/MM/dd", Resolution.DAY);
overviewForm.bindDateField("Collect By Date", Raffle_.collectionsDate, "yyyy/MM/dd", Resolution.DAY)
.setDescription("The date the raffle ticksets need to be collected by.");
overviewForm.bindDateField("Return Date", Raffle_.returnDate, "yyyy/MM/dd", Resolution.DAY).setDescription(
"The date the raffle ticksets need to be returned to Branch.");
final FormHelper<Raffle> formHelper = overviewForm.getFormHelper();
final ComboBox groupRaffleManager = formHelper.new EntityFieldBuilder<Contact>()
.setLabel("Group Raffle Manager").setField(Raffle_.groupRaffleManager)
.setListFieldName(Contact_.fullname).build();
groupRaffleManager.setFilteringMode(FilteringMode.CONTAINS);
groupRaffleManager.setTextInputAllowed(true);
groupRaffleManager.setDescription("The Group member responsible for organising the Raffle.");
final ComboBox branchRaffleConact = formHelper.new EntityFieldBuilder<Contact>()
.setLabel("Branch Raffle Contact").setField(Raffle_.branchRaffleContact)
.setListFieldName(Contact_.fullname).build();
branchRaffleConact.setFilteringMode(FilteringMode.CONTAINS);
branchRaffleConact.setTextInputAllowed(true);
branchRaffleConact.setDescription("The Branch person who is a main contact for Raffle issues.");
overviewForm.bindTextField("Book No. Prefix", Raffle_.raffleNoPrefix).setDescription(
"If raffle books have a non-numeric prefix for the ticket no's enter it here.");
overviewForm.bindTextField("Tickets per Book", Raffle_.ticketsPerBook);
overviewForm.bindTextField("Total Tickets Sold", Raffle_.totalTicketsSold).setReadOnly(true);
overviewForm.bindTextField("Tickets Outstanding", Raffle_.ticketsOutstanding).setReadOnly(true);
overviewForm.bindTextField("Sales Price per Ticket", Raffle_.salePricePerTicket).setDescription(
"The amount each ticket is to be sold for.");
overviewForm.bindTextField("Revenue Target", Raffle_.revenueTarget).setDescription(
"The amount the Group is aiming to raise via the Raffle.");
overviewForm.bindTextField("Revenue Raised", Raffle_.revenueRaised).setReadOnly(true);
return overviewForm;
}
示例12: buildEditor
import com.vaadin.ui.ComboBox; //导入方法依赖的package包/类
@Override
protected Component buildEditor(final ValidatingFieldGroup<RaffleBook> fieldGroup2)
{
final MultiColumnFormLayout<RaffleBook> overviewForm = new MultiColumnFormLayout<RaffleBook>(1, this.fieldGroup);
overviewForm.setColumnFieldWidth(0, 240);
overviewForm.setColumnLabelWidth(0, 110);
overviewForm.setSizeFull();
final FormHelper<RaffleBook> formHelper = overviewForm.getFormHelper();
overviewForm.bindTextField("Ticket Count", RaffleBook_.ticketCount);
overviewForm.bindTextField("First No.", RaffleBook_.firstNo);
this.allocatedTo = formHelper.new EntityFieldBuilder<Contact>().setLabel("Allocated To")
.setField(new Path(RaffleBook_.raffleAllocation, RaffleAllocation_.allocatedTo).getName())
.setListFieldName(Contact_.fullname).setListClass(Contact.class).build();
this.allocatedTo.setFilteringMode(FilteringMode.CONTAINS);
this.allocatedTo.setTextInputAllowed(true);
this.allocatedTo.setNullSelectionAllowed(true);
this.allocatedTo.setDescription("The person the book has been allocated to.");
// you can't edit the allocation.
this.allocatedTo.setReadOnly(true);
overviewForm.bindTextField("Tickets Returned?", RaffleBook_.ticketsReturned).setDescription(
"The no. of tickets that have been returned.");
overviewForm.bindTextField("Amount Returned?", RaffleBook_.amountReturned).setDescription(
"The amount of money returned for this book.");
overviewForm.bindDateField("Date Returned", RaffleBook_.dateReturned, "yyyy-MM-dd", Resolution.DAY)
.setDescription("The date the money and tickets for this book were returned");
final ComboBox collectedBy = formHelper.new EntityFieldBuilder<Contact>().setLabel("Collected By")
.setField(RaffleBook_.collectedBy).setListFieldName(Contact_.fullname).build();
collectedBy.setFilteringMode(FilteringMode.CONTAINS);
collectedBy.setTextInputAllowed(true);
collectedBy.setDescription("The leader that collected the ticket stubs and money.");
overviewForm.bindBooleanField("Receipt Issued?", RaffleBook_.receiptIssued).setDescription(
"Has a receipt been issued for the return of this book?");
overviewForm.bindTextAreaField("Notes", RaffleBook_.notes, 6);
return overviewForm;
}