final DropDownChoice<Integer> nextDaysChoice = new DropDownChoice<Integer>(optionsFieldsetPanel.getDropDownChoiceId(),
new PropertyModel<Integer>(getSearchFilter(), "nextDays"), nextDaysRenderer.getValues(), nextDaysRenderer);
nextDaysChoice.setNullValid(false);
optionsFieldsetPanel.add(nextDaysChoice, true);
{
final DivPanel radioGroupPanel = optionsFieldsetPanel.addNewRadioBoxButtonDiv();
final RadioGroupPanel<PaymentStatus> radioGroup = new RadioGroupPanel<PaymentStatus>(radioGroupPanel.newChildId(), "paymentStatus",
new PropertyModel<PaymentStatus>(getSearchFilter(), "paymentStatus")) {
/**
* @see org.projectforge.web.wicket.flowlayout.RadioGroupPanel#wantOnSelectionChangedNotifications()
*/
@Override
protected boolean wantOnSelectionChangedNotifications()
{
return true;
}
/**
* @see org.projectforge.web.wicket.flowlayout.RadioGroupPanel#onSelectionChanged(java.lang.Object)
*/
@Override
protected void onSelectionChanged(final Object newSelection)
{
parentPage.refresh();
}
};
radioGroupPanel.add(radioGroup);
radioGroup.add(new Model<PaymentStatus>(PaymentStatus.ALL), getString(PaymentStatus.ALL.getI18nKey()));
radioGroup.add(new Model<PaymentStatus>(PaymentStatus.UNPAID), getString(PaymentStatus.UNPAID.getI18nKey()));
radioGroup.add(new Model<PaymentStatus>(PaymentStatus.PAID), getString(PaymentStatus.PAID.getI18nKey()));
}
{
final DivPanel radioGroupPanel = optionsFieldsetPanel.addNewRadioBoxButtonDiv();
final RadioGroupPanel<AmountType> radioGroup = new RadioGroupPanel<AmountType>(radioGroupPanel.newChildId(), "amountType",
new PropertyModel<AmountType>(getSearchFilter(), "amountType")) {
/**
* @see org.projectforge.web.wicket.flowlayout.RadioGroupPanel#wantOnSelectionChangedNotifications()
*/
@Override
protected boolean wantOnSelectionChangedNotifications()
{
return true;
}
/**
* @see org.projectforge.web.wicket.flowlayout.RadioGroupPanel#onSelectionChanged(java.lang.Object)
*/
@Override
protected void onSelectionChanged(final Object newSelection)
{
parentPage.refresh();
}
};
radioGroupPanel.add(radioGroup);
radioGroup.add(new Model<AmountType>(AmountType.ALL), getString(AmountType.ALL.getI18nKey()));
radioGroup.add(new Model<AmountType>(AmountType.CREDIT), getString(AmountType.CREDIT.getI18nKey()));
radioGroup.add(new Model<AmountType>(AmountType.DEBIT), getString(AmountType.DEBIT.getI18nKey()));
}
}