litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/OldServer/src/org/litesoft/GWT/forms/server/support/mdconstruction/TextFieldFormAMD.java
|
@@ -1,22 +1,22 @@ |
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.ui.def.nonpublic.support.*; |
7 |
|
- |
|
8 |
|
- |
public class TextFieldFormAMD { |
9 |
|
- |
public static final TextFieldFormAMD INSTANCE = new TextFieldFormAMD(); |
10 |
|
- |
|
11 |
|
- |
public AMDconverterPair create( CreateAMDParamsPlus pParams ) { |
12 |
|
- |
return new AMDconverterPair( SendableStringConverter.INSTANCE, // |
13 |
|
- |
new TextFieldMetaData( pParams.getUsage(), pParams.isDisabled(), // |
14 |
|
- |
pParams.getHints(), // |
15 |
|
- |
pParams.getFieldLabel(), // |
16 |
|
- |
pParams.getFieldTooltip(), // |
17 |
|
- |
pParams.isRequired(), // |
18 |
|
- |
pParams.getErrorTextForRequired(), // |
19 |
|
- |
pParams.getMaxChars(), // |
20 |
|
- |
pParams.getTextFieldDisplayCharsWidth() ) ); |
21 |
|
- |
} |
22 |
|
- |
} |
|
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.ui.def.nonpublic.support.*; |
|
7 |
+ |
|
|
8 |
+ |
public class TextFieldFormAMD { |
|
9 |
+ |
public static final TextFieldFormAMD INSTANCE = new TextFieldFormAMD(); |
|
10 |
+ |
|
|
11 |
+ |
public AMDconverterPair create( CreateAMDParamsPlus pParams ) { |
|
12 |
+ |
return new AMDconverterPair( SendableStringConverter.INSTANCE, // |
|
13 |
+ |
new TextFieldMetaData( pParams.getUsage(), pParams.isDisabled(), // |
|
14 |
+ |
pParams.getHints(), // |
|
15 |
+ |
pParams.getFieldLabel(), // |
|
16 |
+ |
pParams.getFieldTooltip(), // |
|
17 |
+ |
pParams.isRequired(), // |
|
18 |
+ |
pParams.getErrorTextForRequired(), // |
|
19 |
+ |
pParams.getMaxChars(), // |
|
20 |
+ |
pParams.getTextFieldDisplayCharsWidth() ) ); |
|
21 |
+ |
} |
|
22 |
+ |
} |