org.gnu.gtk
Class MessageDialog
public class 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
run()
.
static MessageDialog | getMessageDialog(Handle handle) - Internal static factory method to be used by Java-Gnome only.
|
static Type | getType() - Retrieve the runtime type used by the GLib library.
|
void | setMarkup(String markup) - Sets the text of the message dialog to be markup, which is
marked up with the Pango text markup language.
|
void | setSecondaryMarkup(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(String text) - Sets the secondary text of the message dialog to be text.
|
addButton , addButton , addListener , addWidget , getActionArea , getDialog , getDialogLayout , getEventListenerClass , getEventType , getHasSeparator , getResponseForWidget , getType , removeListener , run , setDefaultResponse , setHasSeparator |
addAccelGroup , deiconify , destroy , fullscreen , getAcceptFocus , getDefaultIconList , getFocusOnMap , getFocusWidget , getGravity , getIcon , getIconList , getIconName , getPosition , getScreen , getSize , getSkipPagerHint , getSkipTaskbarHint , getTitle , getTransientParent , getType , getWindow , hasToplevelFocus , iconify , isActive , isDestroyed , listToplevelWindows , maximize , move , present , removeAccelGroup , resize , setAcceptFocus , setAutoStartupNotification , setDecorated , setDefaultIcon , setDefaultIconFromFile , setDefaultIconList , setDefaultIconName , setDefaultSize , setDefaultWidget , setFocusOnMap , setFocusWidget , setGeometryHints , setGravity , setIcon , setIconFromFile , setIconList , setIconName , setKeepAbove , setKeepBelow , setModal , setPosition , setResizable , setScreen , setSkipPagerHint , setSkipTaskbarHint , setTitle , setTransientParent , stick , unfullscreen , unmaximize , unstick |
add , addListener , getBooleanChildProperty , getBorderWidth , getChildProperty , getChildren , getEventListenerClass , getEventType , getIntChildProperty , getResizeMode , getType , remove , removeListener , resizeChildren , setBooleanChildProperty , setBorderWidth , setChildProperty , setIntChildProperty , setResizeMode |
activate , addAccelerator , addEvents , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , canActivateAccel , createContext , createLayout , draw , drawArea , drawArea , finish , getAccessible , getAllocation , getCanFocus , getColormap , getContext , getData , getDisplay , getDragData , getEventListenerClass , getEventType , getExtensionEvents , getModifierStyle , getName , getParent , getParentWindow , getPointer , getRootWindow , getScreen , getSensitive , getStyle , getToplevel , getType , getWidget , getWindow , grabDefault , grabFocus , hasFocus , hasScreen , hide , hideAll , highlight , highlight , intersect , isAncestor , makeWidget , modifyStyle , popColormap , pushColormap , realize , removeAccelerator , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , reparent , setBackgroundColor , setBaseColor , setCanFocus , setColormap , setDoubleBuffered , setDragDestination , setDragIcon , setDragIconPixbuf , setDragIconStock , setDragSource , setEvents , setExtensionEvents , setFont , setForegroundColor , setMinimumSize , setName , setNoDragDestination , setNoDragSource , setSensitive , setTextColor , shapeCombineMask , show , showAll , unHighlight , unHighlight |
MessageDialog
public MessageDialog(Handle handle)
Construct a MessageDialog using a handle to a native resource.
MessageDialog
public MessageDialog(Window parent,
DialogFlags flags,
MessageType type,
ButtonsType buttons,
String message,
boolean hasMarkup)
Construct a new MessageDialog.
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?
getMessageDialog
public static MessageDialog getMessageDialog(Handle handle)
Internal static factory method to be used by Java-Gnome only.
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
- getType in interface Dialog
setMarkup
public void setMarkup(String markup)
Sets the text of the message dialog to be markup, which is
marked up with the Pango text markup language.
markup
- The markup string.
setSecondaryMarkup
public void setSecondaryMarkup(String markup)
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.
setSecondaryText
public void setSecondaryText(String text)
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.