litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/OldServer/src/org/litesoft/GWT/forms/server/support/nonpublic/AbstractNumericFormAMDFactory.java
|
@@ -6,30 +6,25 @@ |
6 |
6 |
|
import org.litesoft.configuration.*; |
7 |
7 |
|
import org.litesoft.core.simpletypes.*; |
8 |
8 |
|
|
9 |
|
- |
public abstract class AbstractNumericFormAMDFactory implements FormAttributeMetaDataFactory |
10 |
|
- |
{ |
|
9 |
+ |
public abstract class AbstractNumericFormAMDFactory implements FormAttributeMetaDataFactory { |
11 |
10 |
|
protected Configuration.CachedConfigInt mDefaultWidth; |
12 |
11 |
|
|
13 |
|
- |
protected AbstractNumericFormAMDFactory( Configuration.CachedConfigInt pDefaultWidth ) |
14 |
|
- |
{ |
|
12 |
+ |
protected AbstractNumericFormAMDFactory( Configuration.CachedConfigInt pDefaultWidth ) { |
15 |
13 |
|
mDefaultWidth = pDefaultWidth; |
16 |
14 |
|
} |
17 |
15 |
|
|
18 |
|
- |
protected Integer getDisplayCharsWidth( CreateAMDParamsPlus pParams ) |
19 |
|
- |
{ |
|
16 |
+ |
protected Integer getDisplayCharsWidth( CreateAMDParamsPlus pParams ) { |
20 |
17 |
|
return pParams.oneLineHintOveride( mDefaultWidth ); |
21 |
18 |
|
} |
22 |
19 |
|
|
23 |
|
- |
protected Integer getDecimalPlaces( CreateAMDParamsPlus pHintSource, Integer pDefaultDecimalPlaces ) |
24 |
|
- |
{ |
|
20 |
+ |
protected Integer getDecimalPlaces( CreateAMDParamsPlus pHintSource, Integer pDefaultDecimalPlaces ) { |
25 |
21 |
|
String zDP = pHintSource.getHintValue( DECIMAL_PLACES ); |
26 |
22 |
|
return Strings.isNullOrEmpty( zDP ) ? // |
27 |
23 |
|
pDefaultDecimalPlaces : // |
28 |
24 |
|
Integer.valueOf( zDP.trim() ); |
29 |
25 |
|
} |
30 |
26 |
|
|
31 |
|
- |
protected NumericFormatControl getNumericFormatControl( CreateAMDParamsPlus pHintSource ) |
32 |
|
- |
{ |
|
27 |
+ |
protected NumericFormatControl getNumericFormatControl( CreateAMDParamsPlus pHintSource ) { |
33 |
28 |
|
String zFC = pHintSource.getHintValue( FORMAT_CONTROL ); |
34 |
29 |
|
return Strings.isNullOrEmpty( zFC ) ? // |
35 |
30 |
|
NumericFormatControl.JUST_DOT : // |