Examples of XMessageBox


Examples of com.sun.star.awt.XMessageBox

            oDescriptor.WindowServiceName = windowServiceName;
            oDescriptor.Parent = peer;
            oDescriptor.Type = com.sun.star.awt.WindowClass.MODALTOP;
            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

Examples of net.xoetrope.html.XMessageBox

        XTable table = (XTable)findComponent( obj, "table" );
        XEdit edit = (XEdit)findComponent( "edit" );
        XEdit edit2 = (XEdit)findComponent( "edit2" );
        XEdit edit3 = (XEdit)findComponent( "edit3" );
        if ( edit2.getText().equals( "" ) || edit2.getText().equals( "Row Index" ) || edit3.getText().equals( "" ) || edit3.getText().equals( "Column Index" ) ) {
            XMessageBox alert = new XMessageBox( "You must enter a row number and a column number.");
        } else {
            if ( table.getCell( Integer.parseInt( edit2.getText() ), Integer.parseInt( edit3.getText() ) ) == null ) {
                table.insertCell( Integer.parseInt( edit2.getText() ), Integer.parseInt( edit3.getText() ) );
                table.setValue( Integer.parseInt( edit2.getText() ), Integer.parseInt( edit3.getText() ), edit.getText() );
            } else {
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.