|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.ui.Field
net.rim.device.api.ui.ScrollView
net.rim.device.api.ui.Manager
net.rim.device.api.ui.Screen
net.rim.device.api.ui.container.PopupScreen
net.rim.device.api.lbs.picker.AbstractLocationPicker
net.rim.device.api.lbs.picker.SuggestedLocationPicker
public class SuggestedLocationPicker
The SuggestedLocationPicker provides the ability for a user to select from a list of application suggestions via the LocationPicker. The set of locations is provided by the third party developer, and therefore no geocoding / reverse geocoding will be done.
A Landmark has an associated name and description. The SuggestedLocationPicker ui provides an AutoCompleteField where each entry is exapanded when focused. The initial result displays the Landmark's name. When focused the expanded row will show the Landmark's description. Subsequent Landmarks with the same name will be grouped together.
Given:
Landmark[] landmarks = new Landmark[2]; landmarks[0] = new Landmark("New York City", "555 West St. New York, NY 10004", null, null); landmarks[1] = new Landmark("New York City", "555 South William St. New York, NY 10004", null, null); Result:
| No Focus: | New York City |
| Focus: | New York City |
| 555 West St. New York, NY 10004 | |
| 555 South William St. New York, NY 10004 |
| Field Summary |
|---|
| Fields inherited from class net.rim.device.api.lbs.picker.AbstractLocationPicker |
|---|
CANCEL, CLOSE |
| Fields inherited from class net.rim.device.api.ui.Screen |
|---|
DEFAULT_CLOSE, DEFAULT_MENU, NO_SYSTEM_MENU_ITEMS |
| Fields inherited from class net.rim.device.api.ui.Manager |
|---|
BOTTOMMOST, DOWNWARD, HORIZONTAL_SCROLL, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_MASK, HORIZONTAL_SCROLL_MASK, LEAVE_BLANK_SPACE, LEFTMOST, LEFTWARD, NO_HORIZONTAL_SCROLL, NO_HORIZONTAL_SCROLLBAR, NO_SCROLL_RESET, NO_VERTICAL_SCROLL, NO_VERTICAL_SCROLLBAR, QUANTA_FONT, RIGHTMOST, RIGHTWARD, TOPMOST, UPWARD, VERTICAL_SCROLL, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_MASK, VERTICAL_SCROLL_MASK |
| Fields inherited from interface net.rim.device.api.ui.FieldChangeListener |
|---|
PROGRAMMATIC |
| Constructor Summary | ||
|---|---|---|
|
protected |
SuggestedLocationPicker(Manager delegate,
String name,
Landmark[] locations)
Construct a SuggestedLocationPicker |
| Method Summary | ||
|---|---|---|
|
static SuggestedLocationPicker |
getInstance(String name,
Landmark[] locations)
Get an instance of the "Application Suggested..." |
| Methods inherited from class net.rim.device.api.lbs.picker.AbstractLocationPicker |
|---|
cancelPickLocation, closePicker, doModal, fieldChanged, getLocation, getLocationPickerName, isLocationPersistable, pickLocation, setLocation |
| Methods inherited from class net.rim.device.api.ui.container.PopupScreen |
|---|
getAccessibleContext, paint, sublayout |
| Methods inherited from class net.rim.device.api.ui.Manager |
|---|
addAll, deleteAll, getHorizontalScroll, getPreferredHeightOfChild, getPreferredWidthOfChild, getVerticalScroll, getVirtualHeight, getVirtualWidth, insertAll, invalidateFieldRange, isDownArrowShown, isUpArrowShown, isValidLayout, layout, layoutChild, moveFocus, moveFocus, nextFocus, nextFocus, paintChild, setFocus, setPositionChild, setScrollingInertial, setVirtualExtent, subpaint |
| Methods inherited from class net.rim.device.api.ui.ScrollView |
|---|
configurationChanged, getHorizontalAdjustment, getVerticalAdjustment, getVisibleHeight, getVisibleWidth, setCurrentLocation, setExtent, setHorizontalAdjustment, setHorizontalScroll, setHorizontalScroll, setScrollListener, setVerticalAdjustment, setVerticalScroll, setVerticalScroll, valueChanged, waitForScrolling |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SuggestedLocationPicker(Manager delegate,
String name,
Landmark[] locations)
delegate - Manager this screen uses as a layout delegate.name - display name for pickerlandmarks - set of locations to pick
NullPointerException - if manager passed in is null.| Method Detail |
|---|
public static SuggestedLocationPicker getInstance(String name,
Landmark[] locations)
name - The name to display in LocationPicker dialoglocations - Application defined locations available for selection
|
|||||||||
| 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