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, updateButtons
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public static final java.lang.String TOOLS_DROPDOWN_KEY
protected LoadoutToolsDropDown(MapView mapView)
protected void disposeImpl()
disposeImpl
in class NavigationStackItem
public 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()
NavigationStackView
getButtons
in interface NavigationStackView
getButtons
in class NavigationStackItem
public void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class NavigationStackItem
public boolean onBackButton()
NavigationStackView
onBackButton
in interface NavigationStackView
onBackButton
in class NavigationStackItem
public boolean onCloseButton()
NavigationStackView
onCloseButton
in interface NavigationStackView
onCloseButton
in class NavigationStackItem
public java.lang.String getTitle()
NavigationStackView
getTitle
in interface NavigationStackView
getTitle
in class NavigationStackItem
public void onClose()
NavigationStackView
onClose
in interface NavigationStackView
onClose
in class NavigationStackItem
public void onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences, java.lang.String key)
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener
public void onModelListChanged()
NavButtonManager.OnModelListChangedListener
onModelListChanged
in interface NavButtonManager.OnModelListChangedListener
public void onModelChanged(NavButtonModel model)
NavButtonManager.OnModelChangedListener
onModelChanged
in interface NavButtonManager.OnModelChangedListener
public void onLoadoutAdded(LoadoutItemModel loadout)
LoadoutManager.OnLoadoutChangedListener
onLoadoutAdded
in interface LoadoutManager.OnLoadoutChangedListener
loadout
- Loadoutpublic void onLoadoutModified(LoadoutItemModel loadout)
LoadoutManager.OnLoadoutChangedListener
onLoadoutModified
in interface LoadoutManager.OnLoadoutChangedListener
loadout
- Loadoutpublic void onLoadoutRemoved(LoadoutItemModel loadout)
LoadoutManager.OnLoadoutChangedListener
onLoadoutRemoved
in interface LoadoutManager.OnLoadoutChangedListener
loadout
- Loadoutpublic void onLoadoutSelected(LoadoutItemModel loadout)
LoadoutManager.OnLoadoutChangedListener
onLoadoutSelected
in interface LoadoutManager.OnLoadoutChangedListener
loadout
- 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.OnLayoutChangeListener
public boolean onDrag(android.view.View v, android.view.DragEvent event)
onDrag
in interface android.view.View.OnDragListener