:: com :: sun :: star :: awt ::
|
interface XMessageBoxFactory |
|
- Description
- specifies a factory interface for creating message boxes.
|
Methods' Details |
createMessageBox
XMessageBox |
createMessageBox( |
[in] XWindowPeer |
aParent, |
| [in] Rectangle |
aPosSize, |
| [in] string |
aType, |
| [in] long |
aButtons, |
| [in] string |
aTitle, |
| [in] string |
aMessage ); |
- Description
- creates a message box.
- Returns
- the created message box or a null reference if it cannot be
created.
- Parameter aParent
- a valid XWindowPeer reference which is used as a parent. This parameter
must not be null.
- Parameter aPosSize
- a rectangle which defines the position and size of the message
box in pixel.
- Parameter aType
- a string which determines the message box type.
The following strings are defined.
- infobox A message box to inform the user about a certain event.
Attention:
This type of message box ignores the argument
aButton because a info box always shows a OK button.
- warningbox A message to warn the user about a certain problem.
- errorbox A message box to provide an error message to the user.
- querybox A message box to query information from the user.
- messbox A normal message box.
- Parameter aButtons
- specifies which buttons should be available on the
message box. A combination of
MessageBoxButtons. An infobox
ignores this parameter and always use button "OK".
- Parameter aTitle
- specifies the title of the message box.
- Parameter aMessage
- specifies text which will be shown by the message box.
Line-breaks must be added using "CR" or "CR+LF".
|
|
Top of Page
Copyright © 1995, 2012, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.