public class NavigationStackItem extends android.content.BroadcastReceiver implements NavigationStackView, NavigationStackManager
DropDownNavigationStack| Modifier and Type | Field and Description |
|---|---|
protected android.content.Context |
_context |
protected android.view.View |
_itemView |
protected MapView |
_mapView |
protected DropDownNavigationStack |
_navigationStack |
| Constructor and Description |
|---|
NavigationStackItem(MapView mapView) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeNavigationStack()
Close the entire navigation stack
|
protected android.widget.ImageButton |
createButton(android.content.Context context,
int drawableId,
android.view.View.OnClickListener onClick)
Helper method for creating a button to use with
getButtons() |
protected android.widget.ImageButton |
createButton(int drawableId,
android.view.View.OnClickListener onClick)
Helper method for creating a button to use with
getButtons()
The context used is the application context provided by MapView |
void |
dispose() |
protected void |
disposeImpl() |
java.util.List<android.widget.ImageButton> |
getButtons()
Returns the Image Buttons associated with the stack view
|
MapView |
getMapView() |
DropDownNavigationStack |
getNavigationStack() |
java.lang.String |
getTitle()
Returns the title of the stack view
|
android.view.View |
getView()
Returns the actual view
|
protected void |
hideView()
Hide the current view
|
boolean |
isVisible()
Redirect for
DropDownReceiver.isVisible() |
boolean |
onBackButton()
Called when the device back button is pressed
|
void |
onClose()
Called when the stack view is closed
|
boolean |
onCloseButton()
Called when the close button is tapped
|
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
protected void |
popView()
Pop a view off the navigation stack
|
protected void |
pushView(NavigationStackView view)
Push a view onto the navigation stack
|
void |
setAssociationKey(java.lang.String associationKey)
Redirect for
DropDownReceiver.setAssociationKey(String) |
void |
setNavigationStack(DropDownNavigationStack navigationStack) |
void |
setRetain(boolean retain)
Redirect for
DropDownReceiver.setRetain(boolean) |
void |
setTransient(boolean isTransient)
Redirect for
DropDownReceiver.setTransient(boolean) |
protected void |
unhideView()
Un-hide the current view
|
protected void |
updateButtons()
Update the buttons in the header of the drop-down
|
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtrasprotected final MapView _mapView
protected final android.content.Context _context
protected android.view.View _itemView
protected DropDownNavigationStack _navigationStack
public NavigationStackItem(MapView mapView)
public final MapView getMapView()
public void onReceive(android.content.Context context,
android.content.Intent intent)
onReceive in class android.content.BroadcastReceiverpublic java.lang.String getTitle()
NavigationStackViewgetTitle in interface NavigationStackViewpublic java.util.List<android.widget.ImageButton> getButtons()
NavigationStackViewgetButtons in interface NavigationStackViewpublic android.view.View getView()
NavigationStackViewgetView in interface NavigationStackViewpublic boolean onBackButton()
NavigationStackViewonBackButton in interface NavigationStackViewpublic boolean onCloseButton()
NavigationStackViewonCloseButton in interface NavigationStackViewpublic void onClose()
NavigationStackViewonClose in interface NavigationStackViewpublic final void dispose()
protected void disposeImpl()
public DropDownNavigationStack getNavigationStack()
getNavigationStack in interface NavigationStackManagerpublic void setNavigationStack(DropDownNavigationStack navigationStack)
setNavigationStack in interface NavigationStackManagerprotected android.widget.ImageButton createButton(android.content.Context context,
int drawableId,
android.view.View.OnClickListener onClick)
getButtons()context - Button contextdrawableId - Icon drawable IDonClick - On-click callbackprotected android.widget.ImageButton createButton(int drawableId,
android.view.View.OnClickListener onClick)
getButtons()
The context used is the application context provided by MapViewdrawableId - Icon drawable IDonClick - On-click callbackprotected void pushView(NavigationStackView view)
view - Navigation stack viewprotected void popView()
protected void hideView()
protected void closeNavigationStack()
protected void unhideView()
protected void updateButtons()
public void setRetain(boolean retain)
DropDownReceiver.setRetain(boolean)retain - True to retainpublic void setTransient(boolean isTransient)
DropDownReceiver.setTransient(boolean)isTransient - True if transientpublic boolean isVisible()
DropDownReceiver.isVisible()public void setAssociationKey(java.lang.String associationKey)
DropDownReceiver.setAssociationKey(String)associationKey - Associated preference key