|
|||||||||
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()
Retrieves the title to place in the Options screen.
Sub-classes that implement this method must provide the string the system should place in the Options screen.
void populateMainScreen(MainScreen mainScreen)
Creates the main screen for this option item.
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()
Saves data for this option item.
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-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal