diff options
author | Henri Sara <hesara@vaadin.com> | 2011-12-20 10:12:07 +0200 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2011-12-20 10:12:07 +0200 |
commit | 1981c9153a04c2e93cd3d64e22cbf5e2f6bd1d26 (patch) | |
tree | a80699369b4155b6c796d57a3a1c7ecb733edef6 /src/com | |
parent | e8856d80d800a1caccabc0199a765d3d5151f89a (diff) | |
download | vaadin-framework-1981c9153a04c2e93cd3d64e22cbf5e2f6bd1d26.tar.gz vaadin-framework-1981c9153a04c2e93cd3d64e22cbf5e2f6bd1d26.zip |
Add javadoc for AbstractField.getInternalValue().
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/vaadin/ui/AbstractField.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/com/vaadin/ui/AbstractField.java b/src/com/vaadin/ui/AbstractField.java index 339741545d..daef4c0ddb 100644 --- a/src/com/vaadin/ui/AbstractField.java +++ b/src/com/vaadin/ui/AbstractField.java @@ -1333,8 +1333,17 @@ public abstract class AbstractField<T> extends AbstractComponent implements } /** + * Returns the internal field value, which might not match the data source + * value e.g. if the field has been modified and is not in write-through + * mode. + * + * This method can be overridden by subclasses together with + * {@link #setInternalValue(Object)} to compute internal field value at + * runtime. When doing so, typically also {@link #isModified()} needs to be + * overridden and care should be taken in the management of the empty state + * and buffering support. * - * @return + * @return internal field value */ protected T getInternalValue() { return value; @@ -1346,6 +1355,8 @@ public abstract class AbstractField<T> extends AbstractComponent implements * It can be overridden by the inheriting classes to update all dependent * variables. * + * Subclasses can also override {@link #getInternalValue()} if necessary. + * * @param newValue * the new value to be set. */ |