com.esri.arcgis.framework
Class MessageDialog

java.lang.Object
  extended by com.esri.arcgis.framework.MessageDialog
All Implemented Interfaces:
IMessageDialog, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class MessageDialog
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IMessageDialog

A dialog used for displaying a message.

Remarks

The message dialog is used to display a message to the user.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

See Also:
Serialized Form

Constructor Summary
MessageDialog()
          Constructs a MessageDialog using ArcGIS Engine.
MessageDialog(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
MessageDialog theMessageDialog = (MessageDialog) obj;
 
Method Summary
 boolean doModal(String title, String message, String oKButtonMessage, String cANCELButtonMessage, int hWnd)
          Shows the dialog with a message.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

MessageDialog

public MessageDialog()
              throws IOException,
                     UnknownHostException
Constructs a MessageDialog using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

MessageDialog

public MessageDialog(Object obj)
              throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
MessageDialog theMessageDialog = (MessageDialog) obj;

Construct a MessageDialog using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to MessageDialog.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

doModal

public boolean doModal(String title,
                       String message,
                       String oKButtonMessage,
                       String cANCELButtonMessage,
                       int hWnd)
                throws IOException,
                       AutomationException
Shows the dialog with a message.

Description

Title is a string that specifies the title of the dialog.

Message is a string used for the message displayed in the dialog.

OKButtonMessage specifies the caption for the OK button on the dialog.

CANCELButtonMessage specifies the caption for the Cancel button on the dialog.

hWnd specifies the window handle of the parent window. In most cases this will be the hWnd of the application.

Remarks

If the dialog was cancelled, the DoModal method returns False.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
doModal in interface IMessageDialog
Parameters:
title - The title (in)
message - The message (in)
oKButtonMessage - The oKButtonMessage (in)
cANCELButtonMessage - The cANCELButtonMessage (in)
hWnd - The hWnd (A COM typedef) (in)
Returns:
The okPressed
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.