|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProviderUiContext
Allows certificate status providers to display UI to the user (while processing status requests or responses) in a uniform fashion.
Field Summary | ||
---|---|---|
|
static int |
NO_UI_AVAILABLE
Indicates that no UI is currently available. |
Method Summary | ||
---|---|---|
|
int |
promptUser(String title,
String message,
String[] buttonText,
int[] returnCodes)
Prompts the user with a dialog containing the specified title, message, and buttons. |
|
void |
setErrorMessage(String message)
Sets the error message for the current provider. |
Field Detail |
---|
static final int NO_UI_AVAILABLE
Method Detail |
---|
int promptUser(String title, String message, String[] buttonText, int[] returnCodes)
buttonText
array.
This method blocks until the user chooses one of the buttons in the dialog. The return
value is the return code associated with the specified button, as determined by the
returnCodes
array. If no UI is available to the provider for some reason,
the method returns immediately with NO_UI_AVAILABLE
.
title
- A title to be shown at the top of the dialog.message
- A textual message to be shown to the user.buttonText
- An array of strings specifying the labels of the buttons that
should be placed at the bottom of the dialog. One button is created for each string.returnCodes
- An array of integers storing the return codes for each button in
buttonText
.
NO_UI_AVAILABLE
if UI cannot presently be shown to the user.void setErrorMessage(String message)
message
- A (descriptive) textual error message that can be shown to the user.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.