public void onSelection(SelectionEvent<Date> event) {
if (event.getNewValue() != null) {
styleIndex = ++styleIndex % styles.length;
String styling = styles[styleIndex];
Log.info(event.getNewValue() + " has style " + styling, "styling");
picker.addGlobalStyleToDate(event.getNewValue(), styling);
}
}
}));
return panel;