org.cogroo.addon.dialogs
Class MessageBox

java.lang.Object
  extended by org.cogroo.addon.dialogs.MessageBox

public class MessageBox
extends Object


Constructor Summary
MessageBox(com.sun.star.uno.XComponentContext _xContext)
           
MessageBox(com.sun.star.lang.XMultiComponentFactory _xMCF, com.sun.star.uno.XComponentContext _xContext)
           
 
Method Summary
 com.sun.star.frame.XFrame getCurrentFrame()
           
 short showMessageBox(String _sTitle, String _sMessage, String _aType, int _aButtons)
           
 short showMessageBox(com.sun.star.frame.XFrame _xFrame, String _sTitle, String _sMessage, String _aType, int _aButtons)
           
 short showMessageBox(com.sun.star.awt.XWindowPeer _xParentWindowPeer, String _sTitle, String _sMessage, String _aType, int _aButtons)
          Shows an messagebox
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageBox

public MessageBox(com.sun.star.lang.XMultiComponentFactory _xMCF,
                  com.sun.star.uno.XComponentContext _xContext)

MessageBox

public MessageBox(com.sun.star.uno.XComponentContext _xContext)
Method Detail

showMessageBox

public short showMessageBox(com.sun.star.awt.XWindowPeer _xParentWindowPeer,
                            String _sTitle,
                            String _sMessage,
                            String _aType,
                            int _aButtons)
Shows an messagebox

Parameters:
_xParentWindowPeer - the windowpeer of the parent window
_sTitle - the title of the messagebox
_sMessage - the message of the messagebox
_aType - string which determines the message box type: (infobox|warningbox|errorbox|querybox|messbox)
_aButtons - MessageBoxButtons which buttons should be available on the message box

showMessageBox

public short showMessageBox(com.sun.star.frame.XFrame _xFrame,
                            String _sTitle,
                            String _sMessage,
                            String _aType,
                            int _aButtons)

showMessageBox

public short showMessageBox(String _sTitle,
                            String _sMessage,
                            String _aType,
                            int _aButtons)

getCurrentFrame

public com.sun.star.frame.XFrame getCurrentFrame()


Copyright © 2012-2013 CoGrOO. All Rights Reserved.