public class FiresToolbar extends java.lang.Object implements IToolbarExtension, android.view.View.OnTouchListener, android.view.View.OnLongClickListener, android.content.SharedPreferences.OnSharedPreferenceChangeListener, ClearContentRegistry.ClearContentListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
Modifier and Type | Method and Description |
---|---|
static void |
dispose() |
static FiresToolbar |
getInstance(MapView mapView)
Get a new instance of the FiresToolbar if one doesn't exist.
|
ActionBarView |
getToolbarView()
Implement this method to return the view that should be placed in the toolbar drawer when
your component has control of it.
|
java.util.List<Tool> |
getTools()
Implement this method to return a set of tools to be managed by ToolbarLibrary.
|
boolean |
hasToolbar()
Implement this method to tell ToolbarLibrary whether your component will sometimes take
control of the toolbar's contents or whether it only implements tools without implementing a
toolbar.
|
void |
onClearContent(boolean clearmaps)
Used to remove the markers from the map in case of a zeroize action.
|
boolean |
onLongClick(android.view.View view) |
void |
onSharedPreferenceChanged(android.content.SharedPreferences prefs,
java.lang.String key) |
void |
onToolbarVisible(boolean vis) |
boolean |
onTouch(android.view.View view,
android.view.MotionEvent motionEvent) |
public static final java.lang.String TAG
public static FiresToolbar getInstance(MapView mapView)
mapView
- MapView to pass to the constructorpublic static void dispose()
public java.util.List<Tool> getTools()
IToolbarExtension
getTools
in interface IToolbarExtension
public ActionBarView getToolbarView()
IToolbarExtension
getToolbarView
in interface IToolbarExtension
public void onSharedPreferenceChanged(android.content.SharedPreferences prefs, java.lang.String key)
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener
public boolean onLongClick(android.view.View view)
onLongClick
in interface android.view.View.OnLongClickListener
public boolean hasToolbar()
IToolbarExtension
hasToolbar
in interface IToolbarExtension
public boolean onTouch(android.view.View view, android.view.MotionEvent motionEvent)
onTouch
in interface android.view.View.OnTouchListener
public void onToolbarVisible(boolean vis)
onToolbarVisible
in interface IToolbarExtension
public void onClearContent(boolean clearmaps)
onClearContent
in interface ClearContentRegistry.ClearContentListener
clearmaps
- True to clear map source and cache data