Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/forms/client/components/nonpublic/AbstractFormattableTextField.java

Diff revisions: vs.
  @@ -3,38 +3,33 @@
3 3
4 4 import org.litesoft.GWT.forms.client.components.*;
5 5
6 - public class AbstractFormattableTextField extends AbstractTextField
7 - {
6 + public class AbstractFormattableTextField extends AbstractTextField {
8 7 /**
9 8 * @param pTooltip - empty means no tooltip
10 9 * @param pDisplayCharsWidth - null means floodX
11 10 * @param pMaxChars - null means unlimited?
12 11 */
13 - public AbstractFormattableTextField( String pTooltip, Integer pDisplayCharsWidth, Integer pMaxChars )
14 - {
12 + public AbstractFormattableTextField( String pTooltip, Integer pDisplayCharsWidth, Integer pMaxChars ) {
15 13 super( pTooltip, false, pDisplayCharsWidth, pMaxChars );
16 14 }
17 15
18 16 @Override
19 - protected void fireBlurListeners()
20 - {
17 + protected void fireBlurListeners() {
21 18 setCurrentValue( getCurrentValue() ); // todo: Is this how to force an Error?
22 19 super.fireBlurListeners();
23 20 }
24 21
25 - @SuppressWarnings({"UnnecessaryLocalVariable"}) @Override
26 - public Object getCurrentValue()
27 - {
22 + @SuppressWarnings({"UnnecessaryLocalVariable"})
23 + @Override
24 + public Object getCurrentValue() {
28 25 Object zValue = super.getCurrentValue();
29 26 // undecorate & possibly return FormTextInputErrorValue
30 27 return zValue;
31 28 }
32 29
33 30 @Override
34 - public void setCurrentValue( Object pNewValue )
35 - {
36 - if ( pNewValue instanceof FormTextInputErrorValue )
37 - {
31 + public void setCurrentValue( Object pNewValue ) {
32 + if ( pNewValue instanceof FormTextInputErrorValue ) {
38 33 super.setCurrentValue( pNewValue.toString() );
39 34 return;
40 35 }