org.ocd.alert
Interface IAlertManager
- All Known Implementing Classes:
- AlertManager
- public interface IAlertManager
Provides an Interface to an Alert Manager. The alert manager can be used to display a message
to the user or ask the user a confirmation question.
Method Summary |
int |
showConfirm(java.awt.Frame owner,
javax.swing.Icon icon,
java.lang.String title,
java.lang.String message,
int type)
Ask the User for a Confirmation |
void |
showError(java.awt.Frame owner,
javax.swing.Icon icon,
java.lang.String title,
java.lang.String message,
java.lang.Throwable exception)
Show an Error to the User |
void |
showMessage(java.awt.Frame owner,
javax.swing.Icon icon,
java.lang.String title,
java.lang.String message)
Show a message to the User |
IWorkInProgressAlert |
showWorkInProgress(java.awt.Frame owner,
java.lang.String title,
java.lang.String message,
boolean closeable)
Show a WorkInProgress Alert with a Status Message |
NONE
public static final int NONE
OK
public static final int OK
CANCEL
public static final int CANCEL
OK_CANCEL
public static final int OK_CANCEL
YES
public static final int YES
NO
public static final int NO
YES_NO
public static final int YES_NO
YES_NO_CANCEL
public static final int YES_NO_CANCEL
showMessage
public void showMessage(java.awt.Frame owner,
javax.swing.Icon icon,
java.lang.String title,
java.lang.String message)
- Show a message to the User
- Parameters:
icon
- to show with the Messagetitle
- title of the dialogmessage
-
showError
public void showError(java.awt.Frame owner,
javax.swing.Icon icon,
java.lang.String title,
java.lang.String message,
java.lang.Throwable exception)
- Show an Error to the User
- Parameters:
icon
- to show with the Messagetitle
- title of the dialogmessage
- exception
- that caused this Error or null
showConfirm
public int showConfirm(java.awt.Frame owner,
javax.swing.Icon icon,
java.lang.String title,
java.lang.String message,
int type)
- Ask the User for a Confirmation
- Parameters:
icon
- to show with the Messagetitle
- title of the dialogmessage
- type
- is the type of confirmation from IOWWorkSpace: OK_CANCEL, YES_NO, or YES_NO_CANCEL- Returns:
- the id of the selection OK, CANCEL, YES, NO
showWorkInProgress
public IWorkInProgressAlert showWorkInProgress(java.awt.Frame owner,
java.lang.String title,
java.lang.String message,
boolean closeable)
- Show a WorkInProgress Alert with a Status Message
- Parameters:
pTitle
- title of the AlertpMessage
- message to show on WorkInProgress AlertpCloseable
- true if the alert can be closed.- Returns:
- the IOWWorkInProgressAlert that was created.