org.gnu.gtk

Class MessageDialog

public class MessageDialog extends Dialog

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may in the future have an equivalent in java-gnome 4.0, try looking for org.gnome.gtk.MessageDialog. You should be aware that there is a considerably different API in the new library: the architecture is completely different and most notably internals are no longer exposed to public view.

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 MessageDialog.

Constructor Summary
MessageDialog(Window parent, DialogFlags flags, MessageType type, ButtonsType buttons, String message, boolean hasMarkup)
Construct a new MessageDialog.
MessageDialog(Handle handle)
Construct a MessageDialog using a handle to a native resource.
Method Summary
static MessageDialoggetMessageDialog(Handle handle)
Internal static factory method to be used by Java-Gnome only.
static TypegetType()
Retrieve the runtime type used by the GLib library.
voidsetMarkup(String markup)
Sets the text of the message dialog to be markup, which is marked up with the Pango text markup language.
voidsetSecondaryMarkup(String markup)
Sets the secondary text of the message dialog to be markup, which is marked up with the Pango text markup language.
voidsetSecondaryText(String text)
Sets the secondary text of the message dialog to be text.

Constructor Detail

MessageDialog

public MessageDialog(Window parent, DialogFlags flags, MessageType type, ButtonsType buttons, String message, boolean hasMarkup)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

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. buttons What type of buttons should be on this dialog. message The message to display. hasMarkup Does the message String contain markup?

See Also: MessageType

MessageDialog

public MessageDialog(Handle handle)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Construct a MessageDialog using a handle to a native resource.

Method Detail

getMessageDialog

public static MessageDialog getMessageDialog(Handle handle)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Internal static factory method to be used by Java-Gnome only.

getType

public static Type getType()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Retrieve the runtime type used by the GLib library.

setMarkup

public void setMarkup(String markup)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Sets the text of the message dialog to be markup, which is marked up with the Pango text markup language.

Parameters: markup The markup string.

setSecondaryMarkup

public void setSecondaryMarkup(String markup)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Sets the secondary text of the message dialog to be markup, which is marked up with the Pango text markup language.

Note that setting a secondary text makes the primary text become bold, unless you have provided explicit markup.

Since: 2.6

setSecondaryText

public void setSecondaryText(String text)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Sets the secondary text of the message dialog to be text.

Note that setting a secondary text makes the primary text become bold, unless you have provided explicit markup.

Since: 2.6