diff options
Diffstat (limited to 'odk/examples/DevelopersGuide/Drawing/DrawViewDemo.java')
-rw-r--r-- | odk/examples/DevelopersGuide/Drawing/DrawViewDemo.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/odk/examples/DevelopersGuide/Drawing/DrawViewDemo.java b/odk/examples/DevelopersGuide/Drawing/DrawViewDemo.java index 41780cfb6786..efea885c8693 100644 --- a/odk/examples/DevelopersGuide/Drawing/DrawViewDemo.java +++ b/odk/examples/DevelopersGuide/Drawing/DrawViewDemo.java @@ -88,15 +88,15 @@ public class DrawViewDemo sUrl.toString(), "_blank", 0, pPropValues ); XModel xModel = - (XModel)UnoRuntime.queryInterface( - XModel.class, xComponent ); + UnoRuntime.queryInterface( + XModel.class, xComponent ); // print all available properties of first view System.out.println("*** print all available properties of first view"); XViewDataSupplier xViewDataSupplier = - (XViewDataSupplier)UnoRuntime.queryInterface( - XViewDataSupplier.class, xModel ); + UnoRuntime.queryInterface( + XViewDataSupplier.class, xModel ); XIndexAccess xIndexAccess = xViewDataSupplier.getViewData(); if ( xIndexAccess.getCount() != 0 ) { @@ -116,8 +116,8 @@ public class DrawViewDemo System.out.println("*** print all properties that are supported by the controller"); XController xController = xModel.getCurrentController(); XPropertySet xPropSet = - (XPropertySet)UnoRuntime.queryInterface( - XPropertySet.class, xController ); + UnoRuntime.queryInterface( + XPropertySet.class, xController ); XPropertySetInfo xPropSetInfo = xPropSet.getPropertySetInfo(); Property[] aPropSeq = xPropSetInfo.getProperties(); for( int i = 0; i < aPropSeq.length; i++ ) |