|
@@ -1,33 +1,33 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.forms.server.support.mdconstruction; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.GWT.forms.server.support.*; |
5 |
|
- |
import org.litesoft.GWT.forms.server.support.converters.*; |
6 |
|
- |
import org.litesoft.GWT.forms.server.support.nonpublic.*; |
7 |
|
- |
import org.litesoft.core.simpletypes.*; |
8 |
|
- |
import org.litesoft.ui.def.nonpublic.support.*; |
9 |
|
- |
|
10 |
|
- |
public class FormAMDFactory_SimpleFixedPointLong extends AbstractNumericFormAMDFactory { |
11 |
|
- |
public static final FormAttributeMetaDataFactory INSTANCE = new FormAMDFactory_SimpleFixedPointLong(); |
12 |
|
- |
|
13 |
|
- |
public FormAMDFactory_SimpleFixedPointLong() { |
14 |
|
- |
super( CreateAMDParamsPlus.DEFAULT_FIXED_PLONG_DISPLAY_CHARS_WIDTH ); |
15 |
|
- |
} |
16 |
|
- |
|
17 |
|
- |
public AMDconverterPair createAttributeMetaData( CreateAMDParamsPlus pParams ) { |
18 |
|
- |
Integer decimalPlaces = getDecimalPlaces( pParams, 0 ); |
19 |
|
- |
NumericFormatControl formatControl = getNumericFormatControl( pParams ); |
20 |
|
- |
return new AMDconverterPair( new SendableSimpleFixedPointLongConverter( decimalPlaces, // |
21 |
|
- |
formatControl ), |
22 |
|
- |
new FixedPointLongMetaData( pParams.getUsage(), |
23 |
|
- |
pParams.isDisabled(), // |
24 |
|
- |
pParams.getHints(), // |
25 |
|
- |
pParams.getFieldLabel(), // |
26 |
|
- |
pParams.getFieldTooltip(), // |
27 |
|
- |
pParams.isRequired(), // |
28 |
|
- |
pParams.getErrorTextForRequired(), // |
29 |
|
- |
pParams.getMaxChars(), // |
30 |
|
- |
getDisplayCharsWidth( pParams ), // |
31 |
|
- |
decimalPlaces, formatControl ) ); |
32 |
|
- |
} |
33 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.forms.server.support.mdconstruction; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.GWT.forms.server.support.*; |
|
5 |
+ |
import org.litesoft.GWT.forms.server.support.converters.*; |
|
6 |
+ |
import org.litesoft.GWT.forms.server.support.nonpublic.*; |
|
7 |
+ |
import org.litesoft.core.simpletypes.*; |
|
8 |
+ |
import org.litesoft.ui.def.nonpublic.support.*; |
|
9 |
+ |
|
|
10 |
+ |
public class FormAMDFactory_SimpleFixedPointLong extends AbstractNumericFormAMDFactory { |
|
11 |
+ |
public static final FormAttributeMetaDataFactory INSTANCE = new FormAMDFactory_SimpleFixedPointLong(); |
|
12 |
+ |
|
|
13 |
+ |
public FormAMDFactory_SimpleFixedPointLong() { |
|
14 |
+ |
super( CreateAMDParamsPlus.DEFAULT_FIXED_PLONG_DISPLAY_CHARS_WIDTH ); |
|
15 |
+ |
} |
|
16 |
+ |
|
|
17 |
+ |
public AMDconverterPair createAttributeMetaData( CreateAMDParamsPlus pParams ) { |
|
18 |
+ |
Integer decimalPlaces = getDecimalPlaces( pParams, 0 ); |
|
19 |
+ |
NumericFormatControl formatControl = getNumericFormatControl( pParams ); |
|
20 |
+ |
return new AMDconverterPair( new SendableSimpleFixedPointLongConverter( decimalPlaces, // |
|
21 |
+ |
formatControl ), |
|
22 |
+ |
new FixedPointLongMetaData( pParams.getUsage(), |
|
23 |
+ |
pParams.isDisabled(), // |
|
24 |
+ |
pParams.getHints(), // |
|
25 |
+ |
pParams.getFieldLabel(), // |
|
26 |
+ |
pParams.getFieldTooltip(), // |
|
27 |
+ |
pParams.isRequired(), // |
|
28 |
+ |
pParams.getErrorTextForRequired(), // |
|
29 |
+ |
pParams.getMaxChars(), // |
|
30 |
+ |
getDisplayCharsWidth( pParams ), // |
|
31 |
+ |
decimalPlaces, formatControl ) ); |
|
32 |
+ |
} |
|
33 |
+ |
} |