resoSelect.addItem(Resolution.DAY);
resoSelect.addItem(Resolution.MONTH);
resoSelect.addItem(Resolution.YEAR);
resoSelect.setImmediate(true);
resoSelect.setValue(Resolution.DAY);
resoSelect.addValueChangeListener(new ValueChangeListener() {
@Override
public void valueChange(ValueChangeEvent event) {
Resolution r = (Resolution) resoSelect.getValue();
inlineDynamicDateField.setResolution(r);
dynamicDateField.setResolution(r);
}
});
fromRange.setValue(null);
fromRange.setImmediate(true);
fromRange.addValueChangeListener(new ValueChangeListener() {
@Override
public void valueChange(ValueChangeEvent event) {
inlineDynamicDateField.setRangeStart(fromRange.getValue());
dynamicDateField.setRangeStart(fromRange.getValue());
}
});
toRange.setValue(null);
toRange.setImmediate(true);
toRange.addValueChangeListener(new ValueChangeListener() {
@Override
public void valueChange(ValueChangeEvent event) {
inlineDynamicDateField.setRangeEnd(toRange.getValue());
dynamicDateField.setRangeEnd(toRange.getValue());
}
});
valueDF.setValue(null);
valueDF.setImmediate(true);
valueDF.addValueChangeListener(new ValueChangeListener() {
@Override
public void valueChange(ValueChangeEvent event) {
inlineDynamicDateField.setValue(valueDF.getValue());
dynamicDateField.setValue(valueDF.getValue());
}
});
immediateCB.setValue(true);
immediateCB.setImmediate(true);
immediateCB.addValueChangeListener(new ValueChangeListener() {
@Override
public void valueChange(ValueChangeEvent event) {
inlineDynamicDateField.setImmediate(immediateCB.getValue());