org.cogroo.addon.dialogs
Class MessageBox
java.lang.Object
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 |
MessageBox
public MessageBox(com.sun.star.lang.XMultiComponentFactory _xMCF,
com.sun.star.uno.XComponentContext _xContext)
MessageBox
public MessageBox(com.sun.star.uno.XComponentContext _xContext)
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.