litesoft
Diff Revisions
49
vs
60
for /trunk/Java/GWT/OldClient/src/org/litesoft/GWT/forms/client/nonpublic/StringRequireableAttributeAdapter.java
|
@@ -1,11 +1,11 @@ |
1 |
1 |
|
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt |
2 |
2 |
|
package org.litesoft.GWT.forms.client.nonpublic; |
3 |
3 |
|
|
4 |
|
- |
import org.litesoft.core.simpletypes.boxers.*; |
|
4 |
+ |
import java.io.*; |
|
5 |
+ |
|
|
6 |
+ |
import org.litesoft.GWT.forms.client.components.*; |
5 |
7 |
|
import org.litesoft.core.util.*; |
6 |
|
- |
import org.litesoft.rpcpassable.*; |
7 |
8 |
|
import org.litesoft.ui.def.nonpublic.support.*; |
8 |
|
- |
import org.litesoft.GWT.forms.client.components.*; |
9 |
9 |
|
|
10 |
10 |
|
public class StringRequireableAttributeAdapter extends AbstractFormRequireableAttributeAdapter |
11 |
11 |
|
{ |
|
@@ -16,13 +16,12 @@ |
16 |
16 |
|
super( pComponentHandler, pMD, pRMD, pComponent ); |
17 |
17 |
|
} |
18 |
18 |
|
|
19 |
|
- |
protected RPCpassable LLconvertNonNullComponentValueToSendable( Object pValue ) |
|
19 |
+ |
protected Serializable LLconvertNonNullComponentValueToSendable( Object pValue ) |
20 |
20 |
|
{ |
21 |
|
- |
String str = UtilsCommon.noEmpty( (String) pValue ); |
22 |
|
- |
return (str != null) ? new BoxedString( str ) : null; |
|
21 |
+ |
return UtilsCommon.noEmpty( (String) pValue ); |
23 |
22 |
|
} |
24 |
23 |
|
|
25 |
|
- |
protected Object convertSendableToComponentValue( RPCpassable pValue ) |
|
24 |
+ |
protected Object convertSendableToComponentValue( Serializable pValue ) |
26 |
25 |
|
{ |
27 |
26 |
|
return (pValue == null) ? "" : pValue.toString().trim(); |
28 |
27 |
|
} |