public class LoadoutToolsDropDown extends NavigationStackItem implements android.content.SharedPreferences.OnSharedPreferenceChangeListener, NavButtonManager.OnModelListChangedListener, NavButtonManager.OnModelChangedListener, LoadoutManager.OnLoadoutChangedListener, MappingAdapterEventReceiver<MappingVM>, android.view.View.OnLayoutChangeListener, android.view.View.OnDragListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TOOLS_DROPDOWN_KEY |
_context, _itemView, _mapView, _navigationStack| Modifier | Constructor and Description |
|---|---|
protected |
LoadoutToolsDropDown(MapView mapView) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
disposeImpl() |
void |
eventReceived(MappingVM event) |
java.util.List<android.widget.ImageButton> |
getButtons()
Returns the Image Buttons associated with the stack view
|
java.lang.String |
getTitle()
Returns the title of the stack view
|
boolean |
isInEditMode()
Check if the tools drop-down is in edit mode
|
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
|
boolean |
onDrag(android.view.View v,
android.view.DragEvent event) |
void |
onLayoutChange(android.view.View v,
int l,
int t,
int r,
int b,
int ol,
int ot,
int or,
int ob) |
void |
onLoadoutAdded(LoadoutItemModel loadout)
A new loadout has been added
|
void |
onLoadoutModified(LoadoutItemModel loadout)
An existing loadout has been modified
|
void |
onLoadoutRemoved(LoadoutItemModel loadout)
A loadout has been removed
|
void |
onLoadoutSelected(LoadoutItemModel loadout)
A loadout has been selected
|
void |
onModelChanged(NavButtonModel model)
Called when a model has been modified
|
void |
onModelListChanged()
Model list has been changed
|
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
void |
onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences,
java.lang.String key) |
void |
setEditMode(boolean edit)
Set whether this loadout is in edit mode
|
void |
setLoadout(LoadoutItemModel loadout)
Set the loadout used by this drop-down
|
closeNavigationStack, createButton, createButton, dispose, getMapView, getNavigationStack, getView, hideView, isVisible, popView, pushView, setAssociationKey, setNavigationStack, setRetain, setTransient, unhideView, updateButtonsabortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtraspublic static final java.lang.String TOOLS_DROPDOWN_KEY
protected LoadoutToolsDropDown(MapView mapView)
protected void disposeImpl()
disposeImpl in class NavigationStackItempublic void setLoadout(LoadoutItemModel loadout)
loadout - Loadout to usepublic boolean isInEditMode()
public void setEditMode(boolean edit)
edit - True if enable mode enabledpublic java.util.List<android.widget.ImageButton> getButtons()
NavigationStackViewgetButtons in interface NavigationStackViewgetButtons in class NavigationStackItempublic void onReceive(android.content.Context context,
android.content.Intent intent)
onReceive in class NavigationStackItempublic boolean onBackButton()
NavigationStackViewonBackButton in interface NavigationStackViewonBackButton in class NavigationStackItempublic boolean onCloseButton()
NavigationStackViewonCloseButton in interface NavigationStackViewonCloseButton in class NavigationStackItempublic java.lang.String getTitle()
NavigationStackViewgetTitle in interface NavigationStackViewgetTitle in class NavigationStackItempublic void onClose()
NavigationStackViewonClose in interface NavigationStackViewonClose in class NavigationStackItempublic void onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences,
java.lang.String key)
onSharedPreferenceChanged in interface android.content.SharedPreferences.OnSharedPreferenceChangeListenerpublic void onModelListChanged()
NavButtonManager.OnModelListChangedListeneronModelListChanged in interface NavButtonManager.OnModelListChangedListenerpublic void onModelChanged(NavButtonModel model)
NavButtonManager.OnModelChangedListeneronModelChanged in interface NavButtonManager.OnModelChangedListenerpublic void onLoadoutAdded(LoadoutItemModel loadout)
LoadoutManager.OnLoadoutChangedListeneronLoadoutAdded in interface LoadoutManager.OnLoadoutChangedListenerloadout - Loadoutpublic void onLoadoutModified(LoadoutItemModel loadout)
LoadoutManager.OnLoadoutChangedListeneronLoadoutModified in interface LoadoutManager.OnLoadoutChangedListenerloadout - Loadoutpublic void onLoadoutRemoved(LoadoutItemModel loadout)
LoadoutManager.OnLoadoutChangedListeneronLoadoutRemoved in interface LoadoutManager.OnLoadoutChangedListenerloadout - Loadoutpublic void onLoadoutSelected(LoadoutItemModel loadout)
LoadoutManager.OnLoadoutChangedListeneronLoadoutSelected in interface LoadoutManager.OnLoadoutChangedListenerloadout - Loadoutpublic void eventReceived(MappingVM event)
eventReceived in interface MappingAdapterEventReceiver<MappingVM>public void onLayoutChange(android.view.View v,
int l,
int t,
int r,
int b,
int ol,
int ot,
int or,
int ob)
onLayoutChange in interface android.view.View.OnLayoutChangeListenerpublic boolean onDrag(android.view.View v,
android.view.DragEvent event)
onDrag in interface android.view.View.OnDragListener