org.hermit.android.notice
Class ErrorDialog

java.lang.Object
  extended by AlertDialog
      extended by org.hermit.android.notice.ErrorDialog

public class ErrorDialog
extends AlertDialog

This class implements a popup error box (a subclass of AlertDialog) which can be used to display an error message.


Constructor Summary
ErrorDialog(Context parent, java.lang.CharSequence button)
          Create an error dialog.
ErrorDialog(Context parent, int button)
          Create an error dialog.
 
Method Summary
 void show(java.lang.String text)
          Start the dialog and display it on screen.
 void show(java.lang.String title, java.lang.String text)
          Start the dialog and display it on screen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorDialog

public ErrorDialog(Context parent,
                   int button)
Create an error dialog.

Parameters:
parent - Parent application context.
button - The resource ID of the text for the OK button.

ErrorDialog

public ErrorDialog(Context parent,
                   java.lang.CharSequence button)
Create an error dialog.

Parameters:
parent - Parent application context.
button - The text for the OK button.
Method Detail

show

public void show(java.lang.String title,
                 java.lang.String text)
Start the dialog and display it on screen. The window is placed in the application layer and opaque.

Parameters:
title - Title for the dialog.
text - Text to display in the dialog.

show

public void show(java.lang.String text)
Start the dialog and display it on screen. The window is placed in the application layer and opaque.

Parameters:
text - Text to display in the dialog.