protected boolean isModified() { return component.isModified(); }
/** * Returns the field value. This is always identical to {@link #getValue()} * and only here because of clarity in the code that handles both the data * model value and the field value. * * @return The value of the field */ private T getFieldValue() { // Give the value from abstract buffers if the field if possible if (dataSource == null || isBuffered() || isModified()) { return getInternalValue(); } // There is no buffered value so use whatever the data model provides return convertFromModel(getDataSourceValue()); }
/** * Notifies the component that it is connected to an application. * * @see com.vaadin.ui.Component#attach() */ @Override public void attach() { super.attach(); localeMightHaveChanged(); if (!isListeningToPropertyEvents) { addPropertyListeners(); if (!isModified() && !isBuffered()) { // Update value from data source updateValueFromDataSource(); } } }
valueWasModifiedByDataSourceDuringCommit = true; } else if (!isModified()) { readValueFromProperty(event); fireValueChange(false);
final boolean wasModified = isModified(); setModified(false);
if (isModified()) { setModified(false);
if (dataSource != null && !isModified()) {