columnContainer.add(rowRepeater);
}
final WebMarkupContainer container = new WebMarkupContainer(rowRepeater.newChildId());
rowRepeater.add(container);
final IModel<Boolean> model = Model.of(activeTemplateEntry.isVisible(calendar.getId()) == true);
final CheckBoxPanel checkBoxPanel = new CheckBoxPanel("isVisible", model, "");
checkBoxPanel.getCheckBox().add(new AjaxFormComponentUpdatingBehavior("onChange") {
private static final long serialVersionUID = 3523446385818267608L;
@Override
protected void onUpdate(final AjaxRequestTarget target)
{
final Boolean newSelection = checkBoxPanel.getCheckBox().getConvertedInput();
final TemplateCalendarProperties properties = activeTemplateEntry.getCalendarProperties(calendar.getId());
if (newSelection != properties.isVisible()) {
properties.setVisible(newSelection);
activeTemplateEntry.setDirty();
}
}
});
container.add(checkBoxPanel);
WicketUtils.addTooltip(checkBoxPanel.getCheckBox(), getString("plugins.teamcal.filterDialog.calendarIsVisible.tooltip"));
container.add(new Label("name", calendar.getTitle()));
final ColorPickerPanel picker = new ColorPickerPanel("colorPicker", activeTemplateEntry.getColorCode(calendar.getId())) {
@Override
protected void onColorUpdate(final String selectedColor)
{