org.gnu.gtk
Class MessageDialog
java.lang.Object
|
+--org.gnu.glib.GObject
|
+--org.gnu.gtk.GtkObject
|
+--org.gnu.gtk.Widget
|
+--org.gnu.gtk.Container
|
+--org.gnu.gtk.Bin
|
+--org.gnu.gtk.Window
|
+--org.gnu.gtk.Dialog
|
+--org.gnu.gtk.MessageDialog
- public class MessageDialog
- extends Dialog
MessageDialog presents a dialog with an image representing the type of
message (Error, Question, etc.) alongside some message text. It's simply
a convenience widget; you could construct the equivalent of
MessageDialog from Dialog
without too much effort, but
MessageDialog saves typing.
The easiest way to do a modal message dialog is to use Dialog.run()
.
Method Summary |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
Methods inherited from class org.gnu.gtk.Dialog |
addButton, addListener, addWidget, getActionArea, getDialogLayout, getEventListenerClass, getEventType, getHasSeparator, removeListener, run, setDefaultResponse, setHasSeparator |
Methods inherited from class org.gnu.gtk.Window |
addAccelGroup, deiconify, getFocusWidget, getGravity, getPosition, getSize, getTitle, iconify, maximize, move, present, removeAccelGroup, resize, setDecorated, setDefaultSize, setDefaultWidget, setFocusWidget, setGeometryHints, setGravity, setIcon, setModal, setPosition, setResizable, setTitle, stick, unmaximize, unstick |
Methods inherited from class org.gnu.gtk.Widget |
activate, addListener, addListener, addListener, addListener, addListener, addListener, createContext, createLayout, destroy, draw, drawArea, drawArea, getAccessible, getColormap, getContext, getModifierStyle, getName, getParent, getParentWindow, getPointer, getSensitive, getStyle, getToplevel, grabDefault, grabFocus, hasFocus, hide, hideAll, intersect, isAncestor, makeWidget, modifyStyle, popColormap, pushColormap, realize, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, reparent, setBackgroundColor, setBaseColor, setColormap, setDoubleBuffered, setDragDestination, setDragSource, setFont, setForegroundColor, setMinimumSize, setName, setNoDragDestination, setNoDragSource, setSensitive, setTextColor, shapeCombineMask, show, showAll |
Methods inherited from class org.gnu.glib.GObject |
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageDialog
public MessageDialog(Window parent,
DialogFlags flags,
MessageType type,
ButtonsType buttons,
java.lang.String message)
- Construct a new MessageDialog.
- Parameters:
parent
- The parent Window of this MessageDialog.flags
- Provides initialization information for the Dialog.type
- The type of message to display. @see MessageTypebuttons
- What type of buttons should be on this dialog.message
- The message to display.
MessageDialog
public MessageDialog(int handle)
- Construct a MessageDialog using a handle to a native resource.
getType
public static Type getType()
- Retrieve the runtime type used by the GLib library.