Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
GObject
public class MessageDialog
extends Dialog
Dialog
without too much effort, but MessageDialog saves typing.
The easiest way to do a modal message dialog is to use run()
.
Constructor Summary | |
| |
|
Method Summary | |
static MessageDialog |
|
static Type |
|
void |
|
void |
|
void |
|
Methods inherited from class org.gnu.gtk.Dialog | |
addButton , addButton , addListener , addWidget , getActionArea , getDialog , getDialogLayout , getEventListenerClass , getEventType , getHasSeparator , getResponseForWidget , getType , removeListener , run , setDefaultResponse , setHasSeparator |
Methods inherited from class org.gnu.gtk.Container | |
add , addListener , getBooleanChildProperty , getBorderWidth , getChildProperty , getChildren , getEventListenerClass , getEventType , getIntChildProperty , getResizeMode , getType , remove , removeListener , resizeChildren , setBooleanChildProperty , setBorderWidth , setChildProperty , setIntChildProperty , setResizeMode |
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.
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
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.
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.
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.
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
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