litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/OldClient/src/org/litesoft/GWT/forms/client/nonpublic/TemporalAttributeAdapter.java
|
@@ -1,28 +1,28 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.forms.client.nonpublic; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.GWT.forms.client.components.*; |
5 |
|
- |
import org.litesoft.ui.def.nonpublic.support.*; |
6 |
|
- |
|
7 |
|
- |
import java.io.*; |
8 |
|
- |
|
9 |
|
- |
public class TemporalAttributeAdapter extends AbstractNonStringRequireableAttributeAdapter { |
10 |
|
- |
public TemporalAttributeAdapter( FormInstanceComponentHandler pComponentHandler, |
11 |
|
- |
RequirableAttributeMetaData pRMD, |
12 |
|
- |
IFormComponentWithRawTextAccess pComponent ) { |
13 |
|
- |
super( pComponentHandler, pRMD, pComponent ); |
14 |
|
- |
} |
15 |
|
- |
|
16 |
|
- |
protected final Serializable LLconvertNonNullComponentValueToSendable( Object pValue ) { |
17 |
|
- |
return (pValue instanceof String) ? null : |
18 |
|
- |
LLconvertNonNullNonStringComponentValueToSendable( pValue ); |
19 |
|
- |
} |
20 |
|
- |
|
21 |
|
- |
protected Object convertSendableToComponentValue( Serializable pValue ) { |
22 |
|
- |
return pValue; |
23 |
|
- |
} |
24 |
|
- |
|
25 |
|
- |
protected Serializable LLconvertNonNullNonStringComponentValueToSendable( Object pValue ) { |
26 |
|
- |
return (Serializable) pValue; |
27 |
|
- |
} |
28 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.forms.client.nonpublic; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.GWT.forms.client.components.*; |
|
5 |
+ |
import org.litesoft.ui.def.nonpublic.support.*; |
|
6 |
+ |
|
|
7 |
+ |
import java.io.*; |
|
8 |
+ |
|
|
9 |
+ |
public class TemporalAttributeAdapter extends AbstractNonStringRequireableAttributeAdapter { |
|
10 |
+ |
public TemporalAttributeAdapter( FormInstanceComponentHandler pComponentHandler, |
|
11 |
+ |
RequirableAttributeMetaData pRMD, |
|
12 |
+ |
IFormComponentWithRawTextAccess pComponent ) { |
|
13 |
+ |
super( pComponentHandler, pRMD, pComponent ); |
|
14 |
+ |
} |
|
15 |
+ |
|
|
16 |
+ |
protected final Serializable LLconvertNonNullComponentValueToSendable( Object pValue ) { |
|
17 |
+ |
return (pValue instanceof String) ? null : |
|
18 |
+ |
LLconvertNonNullNonStringComponentValueToSendable( pValue ); |
|
19 |
+ |
} |
|
20 |
+ |
|
|
21 |
+ |
protected Object convertSendableToComponentValue( Serializable pValue ) { |
|
22 |
+ |
return pValue; |
|
23 |
+ |
} |
|
24 |
+ |
|
|
25 |
+ |
protected Serializable LLconvertNonNullNonStringComponentValueToSendable( Object pValue ) { |
|
26 |
+ |
return (Serializable) pValue; |
|
27 |
+ |
} |
|
28 |
+ |
} |