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, setResultExtras
protected 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.BroadcastReceiver
public java.lang.String getTitle()
NavigationStackView
getTitle
in interface NavigationStackView
public java.util.List<android.widget.ImageButton> getButtons()
NavigationStackView
getButtons
in interface NavigationStackView
public android.view.View getView()
NavigationStackView
getView
in interface NavigationStackView
public boolean onBackButton()
NavigationStackView
onBackButton
in interface NavigationStackView
public boolean onCloseButton()
NavigationStackView
onCloseButton
in interface NavigationStackView
public void onClose()
NavigationStackView
onClose
in interface NavigationStackView
public final void dispose()
protected void disposeImpl()
public DropDownNavigationStack getNavigationStack()
getNavigationStack
in interface NavigationStackManager
public void setNavigationStack(DropDownNavigationStack navigationStack)
setNavigationStack
in interface NavigationStackManager
protected 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 MapView
drawableId
- 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