summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java')
-rw-r--r--odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java b/odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java
index d599eeef54ae..d860c2c6c840 100644
--- a/odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java
+++ b/odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java
@@ -51,10 +51,10 @@ public class SpreadsheetValueBinding extends DocumentBasedExample
// a numeric control
XPropertySet numericControl = m_formLayer.insertControlLine( "NumericField",
"enter a value", "", 30 );
- numericControl.setPropertyValue( "ValueMin", new Short( (short)1 ) );
- numericControl.setPropertyValue( "ValueMax", new Short( (short)5 ) );
- numericControl.setPropertyValue( "Value", new Short( (short)1 ) );
- numericControl.setPropertyValue( "DecimalAccuracy", new Short( (short)0 ) );
+ numericControl.setPropertyValue( "ValueMin", Short.valueOf( (short)1 ) );
+ numericControl.setPropertyValue( "ValueMax", Short.valueOf( (short)5 ) );
+ numericControl.setPropertyValue( "Value", Short.valueOf( (short)1 ) );
+ numericControl.setPropertyValue( "DecimalAccuracy", Short.valueOf( (short)0 ) );
numericControl.setPropertyValue( "Spin", Boolean.TRUE );
// bind the control model to cell B2