|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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
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()
.
Field Summary |
Fields inherited from class org.gnu.glib.GObject |
eventsInitialized |
Constructor Summary | |
MessageDialog(Handle handle)
Construct a MessageDialog using a handle to a native resource. |
|
MessageDialog(Window parent,
DialogFlags flags,
MessageType type,
ButtonsType buttons,
java.lang.String message,
boolean hasMarkup)
Construct a new MessageDialog. |
Method Summary | |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
protected static int |
gtk_message_dialog_get_type()
|
protected static Handle |
gtk_message_dialog_new_with_markup(Handle parent,
int flags,
int type,
int buttons,
java.lang.String message)
|
protected static Handle |
gtk_message_dialog_new(Handle parent,
int flags,
int type,
int buttons,
java.lang.String message)
|
protected static void |
gtk_message_dialog_set_markup(Handle mdialog,
java.lang.String str)
|
void |
setMarkup(java.lang.String markup)
Sets the text of the message dialog to be markup, which is marked up with the Pango text markup language. |
void |
setSecondaryMarkup(java.lang.String markup)
Sets the secondary text of the message dialog to be markup, which is marked up with the Pango text markup language. |
void |
setSecondaryText(java.lang.String text)
Sets the secondary text of the message dialog to be text. |
Methods inherited from class org.gnu.gtk.Bin |
getChild, gtk_bin_get_child, gtk_bin_get_type |
Methods inherited from class org.gnu.gtk.GtkObject |
getFlags, gtk_object_destroy, gtk_object_get_type, gtk_object_sink, setFlags, sink |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MessageDialog(Window parent, DialogFlags flags, MessageType type, ButtonsType buttons, java.lang.String message, boolean hasMarkup)
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.hasMarkup
- Does the message String contain markup?public MessageDialog(Handle handle)
Method Detail |
public void setMarkup(java.lang.String markup)
markup
- The markup string.public void setSecondaryText(java.lang.String text)
Note that setting a secondary text makes the primary text become bold, unless you have provided explicit markup.
public void setSecondaryMarkup(java.lang.String markup)
Note that setting a secondary text makes the primary text become bold, unless you have provided explicit markup.
public static Type getType()
protected static final int gtk_message_dialog_get_type()
protected static final Handle gtk_message_dialog_new(Handle parent, int flags, int type, int buttons, java.lang.String message)
protected static final Handle gtk_message_dialog_new_with_markup(Handle parent, int flags, int type, int buttons, java.lang.String message)
protected static final void gtk_message_dialog_set_markup(Handle mdialog, java.lang.String str)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |