diff options
Diffstat (limited to 'odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.java')
-rw-r--r-- | odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.java b/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.java index 301db58a2c6f..9d27e66a5d42 100644 --- a/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.java +++ b/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.java @@ -134,7 +134,7 @@ public class HelloTextTableShape { XPropertySet xShapeProps = UnoRuntime.queryInterface( XPropertySet.class, writerShape); // wrap text inside shape - xShapeProps.setPropertyValue("TextContourFrame", new Boolean(true)); + xShapeProps.setPropertyValue("TextContourFrame", Boolean.TRUE); XText xShapeText = UnoRuntime.queryInterface(XText.class, writerShape); @@ -217,7 +217,7 @@ public class HelloTextTableShape { XCell xCell = xSpreadsheetCells.getCellByPosition(0,1); XPropertySet xCellProps = UnoRuntime.queryInterface( XPropertySet.class, xCell); - xCellProps.setPropertyValue("IsTextWrapped", new Boolean(true)); + xCellProps.setPropertyValue("IsTextWrapped", Boolean.TRUE); XText xCellText = UnoRuntime.queryInterface(XText.class, xCell); @@ -244,7 +244,7 @@ public class HelloTextTableShape { XPropertySet xShapeProps = UnoRuntime.queryInterface( XPropertySet.class, calcShape); // wrap text inside shape - xShapeProps.setPropertyValue("TextContourFrame", new Boolean(true)); + xShapeProps.setPropertyValue("TextContourFrame", Boolean.TRUE); XText xShapeText = UnoRuntime.queryInterface(XText.class, calcShape); @@ -291,7 +291,7 @@ public class HelloTextTableShape { XPropertySet.class, drawShape); // wrap text inside shape - xShapeProps.setPropertyValue("TextContourFrame", new Boolean(true)); + xShapeProps.setPropertyValue("TextContourFrame", Boolean.TRUE); manipulateText(xShapeText); manipulateShape(xDrawShape); |