litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/OldServer/src/org/litesoft/GWT/forms/server/support/converters/SendableSimpleTimestampConverter.java
|
@@ -1,19 +1,19 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.forms.server.support.converters; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.GWT.forms.server.support.nonpublic.*; |
5 |
|
- |
import org.litesoft.core.simpletypes.temporal.*; |
6 |
|
- |
|
7 |
|
- |
import java.io.*; |
8 |
|
- |
|
9 |
|
- |
public class SendableSimpleTimestampConverter extends AbstractSendableSameConverter { |
10 |
|
- |
private TimeRes mTimeRes; |
11 |
|
- |
|
12 |
|
- |
public SendableSimpleTimestampConverter( TimeRes pTimeRes ) { |
13 |
|
- |
mTimeRes = pTimeRes; |
14 |
|
- |
} |
15 |
|
- |
|
16 |
|
- |
protected Serializable convertCommon( Object pValue ) { |
17 |
|
- |
return to_SimpleTimestamp( mTimeRes, pValue ); |
18 |
|
- |
} |
19 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.forms.server.support.converters; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.GWT.forms.server.support.nonpublic.*; |
|
5 |
+ |
import org.litesoft.core.simpletypes.temporal.*; |
|
6 |
+ |
|
|
7 |
+ |
import java.io.*; |
|
8 |
+ |
|
|
9 |
+ |
public class SendableSimpleTimestampConverter extends AbstractSendableSameConverter { |
|
10 |
+ |
private TimeRes mTimeRes; |
|
11 |
+ |
|
|
12 |
+ |
public SendableSimpleTimestampConverter( TimeRes pTimeRes ) { |
|
13 |
+ |
mTimeRes = pTimeRes; |
|
14 |
+ |
} |
|
15 |
+ |
|
|
16 |
+ |
protected Serializable convertCommon( Object pValue ) { |
|
17 |
+ |
return to_SimpleTimestamp( mTimeRes, pValue ); |
|
18 |
+ |
} |
|
19 |
+ |
} |