litesoft
Diff Revisions
852
vs
853
for /trunk/Java/GWT/OldServer/src/org/litesoft/GWT/forms/server/support/converters/SendableSimpleDateConverter.java
|
@@ -2,19 +2,21 @@ |
2 |
2 |
|
package org.litesoft.GWT.forms.server.support.converters; |
3 |
3 |
|
|
4 |
4 |
|
import org.litesoft.GWT.forms.server.support.nonpublic.*; |
|
5 |
+ |
import org.litesoft.core.simpletypes.temporal.*; |
|
6 |
+ |
|
5 |
7 |
|
import java.io.*; |
6 |
8 |
|
|
7 |
9 |
|
public class SendableSimpleDateConverter extends AbstractSendableSameConverter |
8 |
10 |
|
{ |
9 |
|
- |
private String mDateFormat; |
|
11 |
+ |
private DateRes mDateRes; |
10 |
12 |
|
|
11 |
|
- |
public SendableSimpleDateConverter( String pDateFormat ) |
|
13 |
+ |
public SendableSimpleDateConverter( DateRes pDateRes ) |
12 |
14 |
|
{ |
13 |
|
- |
mDateFormat = pDateFormat; |
|
15 |
+ |
mDateRes = pDateRes; |
14 |
16 |
|
} |
15 |
17 |
|
|
16 |
18 |
|
protected Serializable convertCommon( Object pValue ) |
17 |
19 |
|
{ |
18 |
|
- |
return to_SimpleDate( mDateFormat, pValue ); |
|
20 |
+ |
return to_SimpleDate( mDateRes, pValue ); |
19 |
21 |
|
} |
20 |
22 |
|
} |