Package com.sun.star.task

Examples of com.sun.star.task.XJobExecutor


        aProperties[1] = Properties.createProperty("DataSource", curTableDescriptor.xDataSource);
        aProperties[2] = Properties.createProperty("CommandType", new Integer(CommandType.TABLE));
        aProperties[3] = Properties.createProperty("Command", scomposedtablename);
        XInitialization xInitialization = (XInitialization) UnoRuntime.queryInterface(XInitialization.class, oFormWizard);
        xInitialization.initialize(aProperties);
        XJobExecutor xJobExecutor = (XJobExecutor) UnoRuntime.queryInterface(XJobExecutor.class, oFormWizard);
        xJobExecutor.trigger("start");
        XPropertySet prop = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class,xJobExecutor);
        components[0] = (XComponent)prop.getPropertyValue("Document");
        components[1] = (XComponent)prop.getPropertyValue("DocumentDefinition");
    } catch (Exception e) {
        e.printStackTrace(System.out);
View Full Code Here


        aProperties[1] = Properties.createProperty("DataSource", curTableDescriptor.xDataSource);
        aProperties[2] = Properties.createProperty("CommandType", new Integer(CommandType.TABLE));
        aProperties[3] = Properties.createProperty("Command", scomposedtablename);
        XInitialization xInitialization = (XInitialization) UnoRuntime.queryInterface(XInitialization.class, oFormWizard);
        xInitialization.initialize(aProperties);
        XJobExecutor xJobExecutor = (XJobExecutor) UnoRuntime.queryInterface(XJobExecutor.class, oFormWizard);
        xJobExecutor.trigger("start");
        XPropertySet prop = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class,xJobExecutor);
        components[0] = (XComponent)prop.getPropertyValue("Document");
        components[1] = (XComponent)prop.getPropertyValue("DocumentDefinition");
    } catch (Exception e) {
        e.printStackTrace(System.out);
View Full Code Here

            aProperties[1] = Properties.createProperty("DataSource", curTableDescriptor.getDataSource());
            aProperties[2] = Properties.createProperty("CommandType", new Integer(CommandType.TABLE));
            aProperties[3] = Properties.createProperty("Command", scomposedtablename);
            XInitialization xInitialization = (XInitialization) UnoRuntime.queryInterface(XInitialization.class, oFormWizard);
            xInitialization.initialize(aProperties);
            XJobExecutor xJobExecutor = (XJobExecutor) UnoRuntime.queryInterface(XJobExecutor.class, oFormWizard);
            xJobExecutor.trigger("start");
            XPropertySet prop = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xJobExecutor);
            components[0] = (XComponent) prop.getPropertyValue("Document");
            components[1] = (XComponent) prop.getPropertyValue("DocumentDefinition");
        }
        catch (Exception e)
View Full Code Here

            wizardContext.put( PropertyNames.COMMAND_TYPE, CommandType.TABLE );
            wizardContext.put( PropertyNames.COMMAND, scomposedtablename );
            wizardContext.put( "DocumentUI", m_docUI );
            XInitialization xInitialization = UnoRuntime.queryInterface( XInitialization.class, oFormWizard );
            xInitialization.initialize( wizardContext.getPropertyValues() );
            XJobExecutor xJobExecutor = UnoRuntime.queryInterface( XJobExecutor.class, oFormWizard );
            xJobExecutor.trigger(PropertyNames.START);
        }
        catch (Exception e)
        {
            e.printStackTrace(System.out);
        }
View Full Code Here

            aProperties[1] = Properties.createProperty("DataSource", curTableDescriptor.getDataSource());
            aProperties[2] = Properties.createProperty("CommandType", new Integer(CommandType.TABLE));
            aProperties[3] = Properties.createProperty("Command", scomposedtablename);
            XInitialization xInitialization = (XInitialization) UnoRuntime.queryInterface(XInitialization.class, oFormWizard);
            xInitialization.initialize(aProperties);
            XJobExecutor xJobExecutor = (XJobExecutor) UnoRuntime.queryInterface(XJobExecutor.class, oFormWizard);
            xJobExecutor.trigger("start");
            XPropertySet prop = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xJobExecutor);
            components[0] = (XComponent) prop.getPropertyValue("Document");
            components[1] = (XComponent) prop.getPropertyValue("DocumentDefinition");
        }
        catch (Exception e)
View Full Code Here

            aProperties[1] = Properties.createProperty("DataSource", curTableDescriptor.xDataSource);
            aProperties[2] = Properties.createProperty("CommandType", new Integer(CommandType.TABLE));
            aProperties[3] = Properties.createProperty("Command", scomposedtablename);
            XInitialization xInitialization = (XInitialization) UnoRuntime.queryInterface(XInitialization.class, oFormWizard);
            xInitialization.initialize(aProperties);
            XJobExecutor xJobExecutor = (XJobExecutor) UnoRuntime.queryInterface(XJobExecutor.class, oFormWizard);
            xJobExecutor.trigger("start");
            XPropertySet prop = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xJobExecutor);
            components[0] = (XComponent) prop.getPropertyValue("Document");
            components[1] = (XComponent) prop.getPropertyValue("DocumentDefinition");
        }
        catch (Exception e)
View Full Code Here

        aProperties[1] = Properties.createProperty("DataSource", curTableDescriptor.xDataSource);
        aProperties[2] = Properties.createProperty("CommandType", new Integer(CommandType.TABLE));
        aProperties[3] = Properties.createProperty("Command", scomposedtablename);
        XInitialization xInitialization = (XInitialization) UnoRuntime.queryInterface(XInitialization.class, oFormWizard);
        xInitialization.initialize(aProperties);
        XJobExecutor xJobExecutor = (XJobExecutor) UnoRuntime.queryInterface(XJobExecutor.class, oFormWizard);
        xJobExecutor.trigger("start");
    } catch (Exception e) {
        e.printStackTrace(System.out);
    }}
View Full Code Here

            wizardContext.put( "CommandType", CommandType.TABLE );
            wizardContext.put( "Command", scomposedtablename );
            wizardContext.put( "DocumentUI", m_docUI );
            XInitialization xInitialization = UnoRuntime.queryInterface( XInitialization.class, oFormWizard );
            xInitialization.initialize( wizardContext.getPropertyValues() );
            XJobExecutor xJobExecutor = UnoRuntime.queryInterface( XJobExecutor.class, oFormWizard );
            xJobExecutor.trigger("start");
        }
        catch (Exception e)
        {
            e.printStackTrace(System.out);
        }
View Full Code Here

TOP

Related Classes of com.sun.star.task.XJobExecutor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.