Package com.sun.star.awt

Examples of com.sun.star.awt.WindowDescriptor


            // TODO Auto-generated catch block
            e.printStackTrace();
        }

        //describe the window and its properties
        WindowDescriptor aDescriptor = new WindowDescriptor();
        aDescriptor.Type = com.sun.star.awt.WindowClass.TOP;
        aDescriptor.WindowServiceName = "window";
        aDescriptor.ParentIndex = -1;
        aDescriptor.Parent = null;
        aDescriptor.Bounds = new Rectangle(10, 10, 640, 480);
View Full Code Here


        bPeer = false;
      }

      // create native window (mWindow)
      Rectangle aRect = new Rectangle( 0, 0, 20, 20 );
      WindowDescriptor desc = new WindowDescriptor();
      desc.Type = WindowClass.TOP;
      desc.Parent = parentPeer;
      desc.Bounds = aRect;
      desc.WindowServiceName = "workwindow";
      desc.WindowAttributes = (type == SystemDependent.SYSTEM_WIN32
View Full Code Here

        bPeer = false;
      }

      // create native window (mWindow)
      Rectangle aRect = new Rectangle( 0, 0, 20, 20 );
      WindowDescriptor desc = new WindowDescriptor();
      desc.Type = WindowClass.TOP;
      desc.Parent = parentPeer;
      desc.Bounds = aRect;
      desc.WindowServiceName = "workwindow";
      desc.WindowAttributes = (type == SystemDependent.SYSTEM_WIN32
View Full Code Here

        bPeer = false;
      }

      // create native window (mWindow)
      Rectangle aRect = new Rectangle( 0, 0, 20, 20 );
      WindowDescriptor desc = new WindowDescriptor();
      desc.Type = WindowClass.TOP;
      desc.Parent = parentPeer;
      desc.Bounds = aRect;
      desc.WindowServiceName = "workwindow";
      desc.WindowAttributes = (type == SystemDependent.SYSTEM_WIN32
View Full Code Here

   {
      try
      {
         if (null != xFrame && null != xToolkit)
         {
            WindowDescriptor aDescriptor = new WindowDescriptor();
            aDescriptor.Type = WindowClass.MODALTOP;
            aDescriptor.WindowServiceName = new String("infobox");
            aDescriptor.ParentIndex = -1;
            aDescriptor.Parent =
                     (XWindowPeer) UnoRuntime.queryInterface(XWindowPeer.class, xFrame.getContainerWindow());
View Full Code Here

   {
      try
      {
         if (null != xFrame && null != xToolkit)
         {
            WindowDescriptor aDescriptor = new WindowDescriptor();
            aDescriptor.Type = WindowClass.MODALTOP;
            aDescriptor.WindowServiceName = new String("infobox");
            aDescriptor.ParentIndex = -1;
            aDescriptor.Parent =
                     (XWindowPeer) UnoRuntime.queryInterface(XWindowPeer.class, xFrame.getContainerWindow());
View Full Code Here

   {
      try
      {
         if (null != xFrame && null != xToolkit)
         {
            WindowDescriptor aDescriptor = new WindowDescriptor();
            aDescriptor.Type = WindowClass.MODALTOP;
            aDescriptor.WindowServiceName = new String("querybox");
            aDescriptor.ParentIndex = -1;
            aDescriptor.Parent =
                     (XWindowPeer) UnoRuntime.queryInterface(XWindowPeer.class, xFrame.getContainerWindow());
View Full Code Here

        try {
            Object oToolkit = m_xContext.getServiceManager().createInstanceWithContext("com.sun.star.awt.Toolkit", m_xContext);
            XToolkit xToolkit = (XToolkit) UnoRuntime.queryInterface(XToolkit.class, oToolkit);
            XMessageBoxFactory xMessageBoxFactory = (XMessageBoxFactory)UnoRuntime.queryInterface(XMessageBoxFactory.class, oToolkit);
            if ( m_xFrame != null && xToolkit != null ) {
                WindowDescriptor aDescriptor = new WindowDescriptor();
                aDescriptor.Type              = WindowClass.MODALTOP;
                aDescriptor.ParentIndex       = -1;
                aDescriptor.Parent            = (XWindowPeer)UnoRuntime.queryInterface(XWindowPeer.class, m_xFrame.getContainerWindow());
                XWindowPeer xPeer = xToolkit.createWindow( aDescriptor );
                if ( null != xPeer ) {
View Full Code Here

        try {
            Object oToolkit = m_xContext.getServiceManager().createInstanceWithContext("com.sun.star.awt.Toolkit", m_xContext);
            XToolkit xToolkit = (XToolkit) UnoRuntime.queryInterface(XToolkit.class, oToolkit);
            XMessageBoxFactory xMessageBoxFactory = (XMessageBoxFactory)UnoRuntime.queryInterface(XMessageBoxFactory.class, oToolkit);
            if ( m_xFrame != null && xToolkit != null ) {
                WindowDescriptor aDescriptor = new WindowDescriptor();
                aDescriptor.Type              = WindowClass.MODALTOP;
                aDescriptor.ParentIndex       = -1;
                aDescriptor.Parent            = (XWindowPeer)UnoRuntime.queryInterface(XWindowPeer.class, m_xFrame.getContainerWindow());
                XWindowPeer xPeer = xToolkit.createWindow( aDescriptor );
                if ( null != xPeer ) {
View Full Code Here

    public void showMessageBox(String sTitle, String sMessage){
        try{
            Object oToolkit = m_xContext.getServiceManager().createInstanceWithContext("com.sun.star.awt.Toolkit",m_xContext);
            XToolkit xToolkit = (XToolkit) UnoRuntime.queryInterface(XToolkit.class, oToolkit);
            if ( m_xFrame != null && xToolkit != null ) {
                WindowDescriptor aDescriptor = new WindowDescriptor();
                aDescriptor.Type              = WindowClass.MODALTOP;
                aDescriptor.WindowServiceName = "infobox";
                aDescriptor.ParentIndex       = -1;
                aDescriptor.Parent            = (XWindowPeer)UnoRuntime.queryInterface(XWindowPeer.class, m_xFrame.getContainerWindow());
                //aDescriptor.Bounds            = new Rectangle(0,0,60000,1000);
View Full Code Here

TOP

Related Classes of com.sun.star.awt.WindowDescriptor

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.