oracle.dacf.control
Interface IncompleteTransactionAlert
- All Known Implementing Classes:
- IncompleteTransactionAlertImpl
- public interface IncompleteTransactionAlert
IncompleteTransactionAlert
- Version:
- SDK
Field Summary |
static int |
CANCEL_SAVE_AND_EXIT
indicate that the transaction should not be saved but exit |
static int |
DO_NOT_SAVE_BUT_EXIT
indicate that the transaction should not be saved but exit |
static int |
SAVE_AND_EXIT
indicate that the transaction should be saved and exit |
Method Summary |
int |
promptUser(boolean forceExit)
prompt the user to save changes. |
SAVE_AND_EXIT
public static final int SAVE_AND_EXIT
- indicate that the transaction should be saved and exit
- See Also:
promptUser
DO_NOT_SAVE_BUT_EXIT
public static final int DO_NOT_SAVE_BUT_EXIT
- indicate that the transaction should not be saved but exit
- See Also:
promptUser
CANCEL_SAVE_AND_EXIT
public static final int CANCEL_SAVE_AND_EXIT
- indicate that the transaction should not be saved but exit
- See Also:
promptUser
promptUser
public int promptUser(boolean forceExit)
- prompt the user to save changes. The user can either choose to
1) save and exit
2) do not save but exit
3) don't save nor exit.
This method will be called when there is a pending transaction and the
caller would like to prompt the user on how to proceed
- Parameters:
forceExit
- a true value indicates that the UI displayed should not
include UI elements which will let the user not terminate
the application. ex., do not include cancel button- Returns:
- value indicating what should be done with the transaction
Possible return values are SAVE_AND_EXIT, DO_NOT_SAVE_BUT_EXIT,
CANCEL_SAVE_AND_EXIT