Package com.sun.star.awt

Examples of com.sun.star.awt.XMessageBox.execute()


            XMessageBoxFactory xMessageBoxFactory = (XMessageBoxFactory) UnoRuntime.queryInterface(XMessageBoxFactory.class, oToolkit);
            Rectangle aRectangle = new Rectangle();
            XMessageBox xMessageBox = xMessageBoxFactory.createMessageBox(_xWindowPeer, aRectangle, "errorbox", com.sun.star.awt.MessageBoxButtons.BUTTONS_OK, _sTitle, _sMessage);
            XComponent xComponent = (XComponent) UnoRuntime.queryInterface(XComponent.class, xMessageBox);
            if (xMessageBox != null){
                short nResult = xMessageBox.execute();
                xComponent.dispose();
            }
        } catch (com.sun.star.uno.Exception ex) {
            ex.printStackTrace(System.out);
        }}
View Full Code Here


                            smgr.createInstanceWithContext(
                                "com.sun.star.frame.Desktop", context)).
                         getCurrentFrame().getComponentWindow())),
                    MessageBoxType.INFOBOX, MessageBoxButtons.BUTTONS_OK,
                    "passive", "java");
            box.execute();
            UnoRuntime.queryInterface(XComponent.class, box).dispose();
        } catch (com.sun.star.uno.RuntimeException e) {
            throw e;
        } catch (com.sun.star.uno.Exception e) {
            throw new WrappedTargetRuntimeException(
View Full Code Here

                            XMessageBox.class, xPeer);
                        if ( null != xMsgBox )
                        {
                            xMsgBox.setCaptionText( sTitle );
                            xMsgBox.setMessageText( sMessage );
                            xMsgBox.execute();
                        }
                    }
                }
            } catch ( com.sun.star.uno.Exception e) {
                // do your error handling
View Full Code Here

              XMessageBox.class, xPeer);
            if ( null != xMsgBox )
            {
              xMsgBox.setCaptionText( sTitle );
              xMsgBox.setMessageText( sMessage );
              xMsgBox.execute();
            }
          }
        }
      } catch ( com.sun.star.uno.Exception e) {
        // do your error handling
View Full Code Here

        XRequestCallback async = AsyncCallback.create(
            tParam.getComponentContext());
        async.addCallback(
            new XCallback() {
                public void notify(Object aData) {
                    mb.execute();
                    synchronized (done) {
                        done[0] = true;
                        done.notifyAll();
                    }
                }
View Full Code Here

            oDescriptor.WindowAttributes = windowAttribute;
            XWindowPeer xMsgPeer = xToolkit.createWindow(oDescriptor);
            XMessageBox xMsgbox = (XMessageBox) UnoRuntime.queryInterface(XMessageBox.class, xMsgPeer);
            XComponent xComponent = (XComponent) UnoRuntime.queryInterface(XComponent.class, xMsgbox);
            xMsgbox.setMessageText(MessageText);
            iMessage = xMsgbox.execute();
            xComponent.dispose();
        }
        catch (Exception e)
        {
            // TODO Auto-generated catch block
View Full Code Here

  oDescriptor.Type = com.sun.star.awt.WindowClass.MODALTOP;
  oDescriptor.WindowAttributes = WindowAttribute;
  XWindowPeer xMsgPeer = xToolkit.createWindow(oDescriptor);
  XMessageBox xMsgbox = (XMessageBox) UnoRuntime.queryInterface(XMessageBox.class, xMsgPeer);
  xMsgbox.setMessageText(MessageText);
  iMessage = xMsgbox.execute();
    }
    catch(Exception exception){
        exception.printStackTrace(System.out);
    }
    return iMessage;
View Full Code Here

               XMessageBox xMsgBox = (XMessageBox) UnoRuntime.queryInterface(XMessageBox.class, xPeer);
               if (null != xMsgBox)
               {
                  xMsgBox.setCaptionText(sTitle);
                  xMsgBox.setMessageText(sMessage);
                  xMsgBox.execute();
               }
            }
         }
      }
      catch (com.sun.star.uno.Exception e)
View Full Code Here

               XMessageBox xMsgBox = (XMessageBox) UnoRuntime.queryInterface(XMessageBox.class, xPeer);
               if (null != xMsgBox)
               {
                  xMsgBox.setCaptionText("eXo-Platform OOPlug-In.");
                  xMsgBox.setMessageText(sMessage);
                  xMsgBox.execute();
               }
            }
         }
      }
      catch (com.sun.star.uno.Exception e)
View Full Code Here

               XMessageBox xMsgBox = (XMessageBox) UnoRuntime.queryInterface(XMessageBox.class, xPeer);
               if (null != xMsgBox)
               {
                  xMsgBox.setCaptionText("eXo-Platform OOPlug-In.");
                  xMsgBox.setMessageText(sMessage);
                  return xMsgBox.execute();
               }
            }
         }
      }
      catch (com.sun.star.uno.Exception e)
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.