Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -1,26 +1,26 @@
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.ui.def.nonpublic.support.*;
8 -
9 - public class FormAMDFactory_String implements FormAttributeMetaDataFactory {
10 - public static final FormAttributeMetaDataFactory INSTANCE = new FormAMDFactory_String();
11 -
12 - public AMDconverterPair createAttributeMetaData( CreateAMDParamsPlus pParams ) {
13 - return !pParams.shouldBeTextArea() ? //
14 - TextFieldFormAMD.INSTANCE.create( pParams ) :
15 - new AMDconverterPair( SendableStringConverter.INSTANCE, //
16 - new TextAreaMetaData( pParams.getUsage(), pParams.isDisabled(), //
17 - pParams.getHints(), //
18 - pParams.getFieldLabel(), //
19 - pParams.getFieldTooltip(), //
20 - pParams.isRequired(), //
21 - pParams.getErrorTextForRequired(), //
22 - pParams.getMaxChars(), //
23 - pParams.getTextAreaInitialDisplayCharsWidth(), //
24 - pParams.getTextAreaInitialDisplayLines() ) ); //
25 - }
26 - }
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.ui.def.nonpublic.support.*;
8 +
9 + public class FormAMDFactory_String implements FormAttributeMetaDataFactory {
10 + public static final FormAttributeMetaDataFactory INSTANCE = new FormAMDFactory_String();
11 +
12 + public AMDconverterPair createAttributeMetaData( CreateAMDParamsPlus pParams ) {
13 + return !pParams.shouldBeTextArea() ? //
14 + TextFieldFormAMD.INSTANCE.create( pParams ) :
15 + new AMDconverterPair( SendableStringConverter.INSTANCE, //
16 + new TextAreaMetaData( pParams.getUsage(), pParams.isDisabled(), //
17 + pParams.getHints(), //
18 + pParams.getFieldLabel(), //
19 + pParams.getFieldTooltip(), //
20 + pParams.isRequired(), //
21 + pParams.getErrorTextForRequired(), //
22 + pParams.getMaxChars(), //
23 + pParams.getTextAreaInitialDisplayCharsWidth(), //
24 + pParams.getTextAreaInitialDisplayLines() ) ); //
25 + }
26 + }