litesoft
Diff Revisions
49
vs
60
for /trunk/Java/GWT/OldClient/src/org/litesoft/GWT/forms/client/components/factories/input/UiCheckBoxWidgetFactory.java
|
@@ -1,17 +1,18 @@ |
1 |
1 |
|
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt |
2 |
2 |
|
package org.litesoft.GWT.forms.client.components.factories.input; |
3 |
3 |
|
|
4 |
|
- |
import com.google.gwt.user.client.ui.*; |
|
4 |
+ |
import java.io.*; |
|
5 |
+ |
|
5 |
6 |
|
import org.litesoft.GWT.forms.client.components.factories.*; |
6 |
7 |
|
import org.litesoft.GWT.forms.client.components.impls.input.*; |
7 |
8 |
|
import org.litesoft.GWT.forms.client.nonpublic.*; |
8 |
|
- |
import org.litesoft.core.simpletypes.boxers.*; |
9 |
9 |
|
import org.litesoft.core.util.*; |
10 |
|
- |
import org.litesoft.rpcpassable.*; |
11 |
10 |
|
import org.litesoft.ui.def.nonpublic.*; |
12 |
11 |
|
import org.litesoft.ui.def.nonpublic.support.*; |
13 |
12 |
|
import org.litesoft.uispecification.*; |
14 |
13 |
|
|
|
14 |
+ |
import com.google.gwt.user.client.ui.*; |
|
15 |
+ |
|
15 |
16 |
|
public class UiCheckBoxWidgetFactory implements InputWidgetFactory |
16 |
17 |
|
{ |
17 |
18 |
|
public Widget create( FormInstanceComponentHandler pComponentHandler, // |
|
@@ -44,15 +45,14 @@ |
44 |
45 |
|
optionallyPublishUpdatedValue(); |
45 |
46 |
|
} |
46 |
47 |
|
|
47 |
|
- |
protected RPCpassable convertComponentValueToSendable( Object pValue ) |
|
48 |
+ |
protected Serializable convertComponentValueToSendable( Object pValue ) |
48 |
49 |
|
{ |
49 |
|
- |
return new BoxedBoolean( (Boolean) pValue ); |
|
50 |
+ |
return (Boolean) pValue; |
50 |
51 |
|
} |
51 |
52 |
|
|
52 |
|
- |
protected Object convertSendableToComponentValue( RPCpassable pValue ) |
|
53 |
+ |
protected Object convertSendableToComponentValue( Serializable pValue ) |
53 |
54 |
|
{ |
54 |
|
- |
return (pValue instanceof BoxedBoolean) && |
55 |
|
- |
Boolean.TRUE.equals( ((BoxedBoolean) pValue).getBoxedValue() ); |
|
55 |
+ |
return Boolean.TRUE.equals( pValue ); |
56 |
56 |
|
} |
57 |
57 |
|
|
58 |
58 |
|
protected String convertComponentValueToString( Object pValue ) |