/** * Sets the visibleProperties. * * @param visibleProperties * the visibleProperties to set. */ public void setVisibleItemProperties(Collection<?> visibleProperties) { visibleItemProperties = visibleProperties; Object value = getValue(); if (value == null) { value = itemDatasource; } setFormDataSource(value, getVisibleItemProperties()); }
/** * Sets the internal value. * * This is relevant when the Form is used as Field. * * @see AbstractField#setInternalValue(java.lang.Object) */ @Override protected void setInternalValue(Object newValue) { // Stores the old value final Object oldValue = propertyValue; // Sets the current Value super.setInternalValue(newValue); propertyValue = newValue; // Ignores form updating if data object has not changed. if (oldValue != newValue) { setFormDataSource(newValue, getVisibleItemProperties()); } }