|
@@ -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.core.simpletypes.temporal.*; |
8 |
|
- |
import org.litesoft.ui.def.nonpublic.support.*; |
9 |
|
- |
|
10 |
|
- |
public class FormAMDFactory_SimpleTimestamp extends AbstractTimeFormAMDFactory { |
11 |
|
- |
public static final FormAttributeMetaDataFactory INSTANCE = new FormAMDFactory_SimpleTimestamp(); |
12 |
|
- |
|
13 |
|
- |
public AMDconverterPair createAttributeMetaData( CreateAMDParamsPlus pParams ) { |
14 |
|
- |
TimeRes zRes = getTimeRes( pParams, TimeRes.ToMSEC ); |
15 |
|
- |
return new AMDconverterPair( new SendableSimpleTimestampConverter( zRes ), // |
16 |
|
- |
new SimpleTimestampMetaData( pParams.getUsage(), pParams.isDisabled(), // |
17 |
|
- |
pParams.getHints(), // |
18 |
|
- |
pParams.getFieldLabel(), // |
19 |
|
- |
pParams.getFieldTooltip(), // |
20 |
|
- |
pParams.isRequired(), // |
21 |
|
- |
pParams.getErrorTextForRequired(),// |
22 |
|
- |
pParams.resolveAction( "Cancel" ), // |
23 |
|
- |
pParams.resolveAction( "OK" ), // |
24 |
|
- |
zRes ) ); |
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.core.simpletypes.temporal.*; |
|
8 |
+ |
import org.litesoft.ui.def.nonpublic.support.*; |
|
9 |
+ |
|
|
10 |
+ |
public class FormAMDFactory_SimpleTimestamp extends AbstractTimeFormAMDFactory { |
|
11 |
+ |
public static final FormAttributeMetaDataFactory INSTANCE = new FormAMDFactory_SimpleTimestamp(); |
|
12 |
+ |
|
|
13 |
+ |
public AMDconverterPair createAttributeMetaData( CreateAMDParamsPlus pParams ) { |
|
14 |
+ |
TimeRes zRes = getTimeRes( pParams, TimeRes.ToMSEC ); |
|
15 |
+ |
return new AMDconverterPair( new SendableSimpleTimestampConverter( zRes ), // |
|
16 |
+ |
new SimpleTimestampMetaData( pParams.getUsage(), pParams.isDisabled(), // |
|
17 |
+ |
pParams.getHints(), // |
|
18 |
+ |
pParams.getFieldLabel(), // |
|
19 |
+ |
pParams.getFieldTooltip(), // |
|
20 |
+ |
pParams.isRequired(), // |
|
21 |
+ |
pParams.getErrorTextForRequired(),// |
|
22 |
+ |
pParams.resolveAction( "Cancel" ), // |
|
23 |
+ |
pParams.resolveAction( "OK" ), // |
|
24 |
+ |
zRes ) ); |
|
25 |
+ |
} |
|
26 |
+ |
} |