From e387f24dd71fd07a800273aa8066075a4e2e8b3a Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Wed, 20 Apr 2011 15:03:39 +0000 Subject: [PATCH] merged #18418 (typo in fieldname) svn changeset:18419/svn branch:6.6 --- src/com/vaadin/ui/AbstractField.java | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/com/vaadin/ui/AbstractField.java b/src/com/vaadin/ui/AbstractField.java index 2ce6294df5..097de6f705 100644 --- a/src/com/vaadin/ui/AbstractField.java +++ b/src/com/vaadin/ui/AbstractField.java @@ -77,12 +77,12 @@ public abstract class AbstractField extends AbstractComponent implements Field, /** * Auto commit mode. */ - private boolean writeTroughMode = true; + private boolean writeThroughMode = true; /** * Reads the value from data-source, when it is not modified. */ - private boolean readTroughMode = true; + private boolean readThroughMode = true; /** * Is the field modified but not committed. @@ -327,7 +327,7 @@ public abstract class AbstractField extends AbstractComponent implements Field, * here, we use the default documentation from the implemented interface. */ public boolean isWriteThrough() { - return writeTroughMode; + return writeThroughMode; } /* @@ -337,11 +337,11 @@ public abstract class AbstractField extends AbstractComponent implements Field, */ public void setWriteThrough(boolean writeThrough) throws Buffered.SourceException, InvalidValueException { - if (writeTroughMode == writeThrough) { + if (writeThroughMode == writeThrough) { return; } - writeTroughMode = writeThrough; - if (writeTroughMode) { + writeThroughMode = writeThrough; + if (writeThroughMode) { commit(); } } @@ -351,7 +351,7 @@ public abstract class AbstractField extends AbstractComponent implements Field, * here, we use the default documentation from the implemented interface. */ public boolean isReadThrough() { - return readTroughMode; + return readThroughMode; } /* @@ -359,13 +359,13 @@ public abstract class AbstractField extends AbstractComponent implements Field, * JavaDoc comment here, we use the default documentation from the * implemented interface. */ - public void setReadThrough(boolean readTrough) + public void setReadThrough(boolean readThrough) throws Buffered.SourceException { - if (readTroughMode == readTrough) { + if (readThroughMode == readThrough) { return; } - readTroughMode = readTrough; - if (!isModified() && readTroughMode && dataSource != null) { + readThroughMode = readThrough; + if (!isModified() && readThroughMode && dataSource != null) { setInternalValue(String.class == getType() ? dataSource.toString() : dataSource.getValue()); fireValueChange(false); @@ -481,7 +481,7 @@ public abstract class AbstractField extends AbstractComponent implements Field, setInternalValue(newValue); modified = dataSource != null; - // In write trough mode , try to commit + // In write through mode , try to commit if (isWriteThrough() && dataSource != null && (isInvalidCommitted() || isValid())) { try { -- 2.39.5