|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface OptionsProvider
Option providers may add entries into the system's Options screen.
An application must implement this interface to add items to the Options
screen; register as a provider with the OptionsManager by invoking
registerOptionsProvider.
| Method Summary | ||
|---|---|---|
|
String |
getTitle()
Retrieves the title to place in the Options screen. |
|
void |
populateMainScreen(MainScreen mainScreen)
Creates the main screen for this option item. |
|
void |
save()
Saves data for this option item. |
| Method Detail |
|---|
String getTitle()
Sub-classes that implement this method must provide the string the system should place in the Options screen.
void populateMainScreen(MainScreen mainScreen)
This screen appears when a user selects your item in the Options
screen. In your implementation of this method, add one or more fields to
the screen to display options. Any static or class level fields in
MainScreen must be removed or a new instance of the field must be
instantiated each time this method is called.
mainScreen - Main screen for this option item.void save()
In your implementation of this method, you should commit the selected values for fields on your option screen to a persistent object.
|
|||||||||
| 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.