Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/OldServer/src/org/litesoft/GWT/forms/server/support/mdconstruction/FormAMDFactory_SimpleFloatingPointLong.java

Diff revisions: vs.
  @@ -1,32 +1,32 @@
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_SimpleFloatingPointLong extends AbstractNumericFormAMDFactory {
11 - public static final FormAttributeMetaDataFactory INSTANCE = new FormAMDFactory_SimpleFloatingPointLong();
12 -
13 - public FormAMDFactory_SimpleFloatingPointLong() {
14 - super( CreateAMDParamsPlus.DEFAULT_FLOATING_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 SendableSimpleFloatingPointLongConverter( formatControl ),
21 - new FloatingPointLongMetaData( pParams.getUsage(),
22 - pParams.isDisabled(), //
23 - pParams.getHints(), //
24 - pParams.getFieldLabel(), //
25 - pParams.getFieldTooltip(), //
26 - pParams.isRequired(), //
27 - pParams.getErrorTextForRequired(),
28 - pParams.getMaxChars(), //
29 - getDisplayCharsWidth( pParams ), //
30 - decimalPlaces, formatControl ) );
31 - }
32 - }
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_SimpleFloatingPointLong extends AbstractNumericFormAMDFactory {
11 + public static final FormAttributeMetaDataFactory INSTANCE = new FormAMDFactory_SimpleFloatingPointLong();
12 +
13 + public FormAMDFactory_SimpleFloatingPointLong() {
14 + super( CreateAMDParamsPlus.DEFAULT_FLOATING_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 SendableSimpleFloatingPointLongConverter( formatControl ),
21 + new FloatingPointLongMetaData( pParams.getUsage(),
22 + pParams.isDisabled(), //
23 + pParams.getHints(), //
24 + pParams.getFieldLabel(), //
25 + pParams.getFieldTooltip(), //
26 + pParams.isRequired(), //
27 + pParams.getErrorTextForRequired(),
28 + pParams.getMaxChars(), //
29 + getDisplayCharsWidth( pParams ), //
30 + decimalPlaces, formatControl ) );
31 + }
32 + }