return true;
}
};
monthChoice.setNullValid(false).setRequired(true);
fs.add(monthChoice);
final QuickSelectMonthPanel quickSelectPanel = new QuickSelectMonthPanel(fs.newChildId(), new Model<Date>() {
/**
* @see org.apache.wicket.model.Model#getObject()
*/
@Override
public Date getObject()
{
final DateHolder dh = new DateHolder();
dh.setDate(filter.getYear(), filter.getMonth(), 1, 0, 0, 0);
return dh.getDate();
}
/**
* @see org.apache.wicket.model.Model#setObject(java.io.Serializable)
*/
@Override
public void setObject(final Date object)
{
if (object != null) {
setDate(object);
}
}
}, parentPage, "quickSelect");
fs.add(quickSelectPanel);
quickSelectPanel.init();
}
{
final Button showButton = new Button(SingleButtonPanel.WICKET_ID, new Model<String>("show"));
final SingleButtonPanel showButtonPanel = new SingleButtonPanel(actionButtons.newChildId(), showButton, getString("show"),
SingleButtonPanel.DEFAULT_SUBMIT);