Examples of XDialog


Examples of com.sun.star.awt.XDialog

        }

        XDialogProvider2 xDialogProvider = (XDialogProvider2)
          UnoRuntime.queryInterface( XDialogProvider2.class, obj );
           
        XDialog xDialog = xDialogProvider.createDialogWithHandler( DialogURL, this );
        if( xDialog != null )
          xDialog.execute();
      }
      catch (Exception e) {
        e.printStackTrace();
      }
      return "Created dialog \"" + DialogURL + "\"";
View Full Code Here

Examples of com.sun.star.awt.XDialog

            log.println("wating for recovery dialog...");
           
            int counter = 0;
            int maximum = param.getInt(PropertyName.THREAD_TIME_OUT) / param.getInt(PropertyName.SHORT_WAIT);
           
            XDialog oDialog = rt.getActiveDialog(xMSF);
           
            while ( oDialog == null && (counter < maximum))
            {
                rt.pause();
                oDialog = rt.getActiveDialog(xMSF);               
View Full Code Here

Examples of com.sun.star.awt.XDialog

     private void handleCrashReporterDialog(boolean cancel, boolean YesNo){
        try{
           
            log.println("try to get Crash Reporter Dialog...");
           
            XDialog oDialog = rt.getActiveDialog(xMSF);
            assure("could not get CrashReporter Dialog", oDialog != null);
           
            XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, oDialog);
           
            log.println(oDialog.getTitle());

            UITools oUITools = new UITools(xMSF, xWindow);

            if (cancel) {
                log.println("clicking 'Cancel' button...");
View Full Code Here

Examples of com.sun.star.awt.XDialog

    private void handleRecoveryDialogAtRestart(int expectedDocumentCount, boolean recover, boolean cancel){
        try{
           
            log.println("try to get Recovery Dialog...");

            XDialog oDialog = null;
            oDialog = rt.getActiveDialogAfterStartup(xMSF);
           
            assure("could not get Recovery Dialog at start of office", (oDialog != null), CONTINUE);
           
            XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, oDialog);
            log.println("got the following dialog: '" +oDialog.getTitle() + "'");

            UITools oUITools = new UITools(xMSF, xWindow);

            String listBoxName = "Status of recovered documents";
            String[] documents = oUITools.getListBoxItems(listBoxName);
View Full Code Here

Examples of com.sun.star.awt.XDialog

        int multi = 5;
        int pause = param.getInt(PropertyName.SHORT_WAIT)*10;
        int timeOut = param.getInt(PropertyName.THREAD_TIME_OUT)*5;
        int maximum = (timeOut / pause) * multi;
       
        XDialog oDialog = getActiveDialog(xMSF);
       
        while (oDialog == null && (counter < maximum)){
            log.println("waiting until the office has recoverd... remaining " + (timeOut * multi - pause * counter)/1000 + " seconds");
            pause(pause);
            oDialog = getActiveDialog(xMSF);
View Full Code Here

Examples of com.sun.star.awt.XDialog

            SetThrobberVisible( true );
            SetThrobberActive( true );

            if ( Helper.AllowThreadUsage( m_xContext ) )
            {
                final XDialog xDialogForThread = xDialog;
                final XComponentContext xContext = m_xContext;
                final WikiEditSettingDialog aThis = this;
               
                // the thread name is used to allow the error dialogs
                m_bThreadFinished = false;
View Full Code Here

Examples of com.sun.star.awt.XDialog

            XWindow.class, xControl );
        xWindow.setVisible( false );     
        xControl.createPeer( xToolkit, null );
     
        // execute the dialog
        XDialog xDialog = ( XDialog )UnoRuntime.queryInterface(
            XDialog.class, dialog );
        xDialog.execute();
     
        // dispose the dialog
        XComponent xComponent = ( XComponent )UnoRuntime.queryInterface(
            XComponent.class, dialog );
        xComponent.dispose();
View Full Code Here

Examples of com.sun.star.awt.XDialog

            XWindow.class, xControl );
        xWindow.setVisible( false );     
        xControl.createPeer( xToolkit, null );
     
        // return the dialog
        XDialog xDialog = ( XDialog )UnoRuntime.queryInterface(
            XDialog.class, dialog );
        return xDialog;
    }
View Full Code Here

Examples of net.xoetrope.swing.XDialog

        m_trans = trans;
        m_pos = page;
    }

    public String openDlg() {
        XDialog dlg = (XDialog) pageMgr.loadPage(m_pos.getScreenLocation() + "/dialog/SelectProduct");
        m_dialog = dlg;
        dlg.setCaption(UtilProperties.getMessage(PosTransaction.resource, "PosSelectAProduct", Locale.getDefault()));
        //dlg.setModal(true);
        m_productsList = (XList) dlg.findComponent("productsList");
        XEventHelper.addMouseHandler(this, m_productsList, "DoubleClick");

        m_cancel = (XButton) dlg.findComponent("BtnCancel");
        m_select = (XButton) dlg.findComponent("BtnSelect");

        XEventHelper.addMouseHandler(this, m_cancel, "cancel");
        XEventHelper.addMouseHandler(this, m_select, "selectProduct");

        m_listModel = new DefaultListModel();
        for (Iterator i = m_productsMap.entrySet().iterator(); i.hasNext();) {
            Object o = i.next();
            Map.Entry entry = (Map.Entry)o;
            String val = entry.getValue().toString();
            m_listModel.addElement(val);
        }
        m_productsList.setModel(m_listModel);
        m_productsList.setVisibleRowCount(-1);
        m_productsList.ensureIndexIsVisible(m_productsList.getItemCount());
        m_productsList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        m_productsList.setToolTipText(UtilProperties.getMessage(PosTransaction.resource, "PosSelectProductListDblClickTip", Locale.getDefault()));

        dlg.pack();
        dlg.showDialog(this);
        return m_productIdSelected;
    }
View Full Code Here

Examples of net.xoetrope.swing.XDialog

        m_trans = trans;
        m_pos = page;
    }

    public String openDlg() {
        XDialog dlg = (XDialog) pageMgr.loadPage(m_pos.getScreenLocation() + "/dialog/SelectProduct");
        m_dialog = dlg;
        dlg.setCaption(UtilProperties.getMessage(PosTransaction.resource, "PosSelectAProduct", Locale.getDefault()));
        //dlg.setModal(true);
        m_productsList = (XList) dlg.findComponent("productsList");
        XEventHelper.addMouseHandler(this, m_productsList, "DoubleClick");

        m_cancel = (XButton) dlg.findComponent("BtnCancel");
        m_select = (XButton) dlg.findComponent("BtnSelect");

        XEventHelper.addMouseHandler(this, m_cancel, "cancel");
        XEventHelper.addMouseHandler(this, m_select, "selectProduct");

        m_listModel = new DefaultListModel();
        for (Map.Entry<String, Object> entry : m_productsMap.entrySet()) {
            String val = entry.getValue().toString();
            m_listModel.addElement(val);
        }
        m_productsList.setModel(m_listModel);
        m_productsList.setVisibleRowCount(-1);
        m_productsList.ensureIndexIsVisible(m_productsList.getItemCount());
        m_productsList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        m_productsList.setToolTipText(UtilProperties.getMessage(PosTransaction.resource, "PosSelectProductListDblClickTip", Locale.getDefault()));

        dlg.pack();
        dlg.showDialog(this);
        return m_productIdSelected;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.