public class

OverlayToolbar

extends RelativeLayout
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.RelativeLayout
         ↳ com.sap.cloud.mobile.fiori.maps.OverlayToolbar

Class Overview

A vertical toolbar that is overlaid on another view, usually a map. The overlaid view and the toolbar must be contained in a FrameLayout.

Summary

[Expand]
Inherited Constants
From class android.widget.RelativeLayout
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
OverlayToolbar(Context context)
OverlayToolbar(Context context, AttributeSet attrs)
OverlayToolbar(Context context, AttributeSet attrs, int defStyleAttr)
OverlayToolbar(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public Methods
void addButtons(Collection<ImageButton> buttons)
Add a collection of buttons to the toolbar.
MapActionProvider getMapActionProvider()
Get the map action provider for this toolbar.
MapViewModel getMapViewModel()
Get the map view model for this toolbar.
void hideLegend()
boolean isLegendVisible()
If legend is showing
void setMapActionProvider(MapActionProvider mapActionProvider)
Set the map action provider for this toolbar.
void setMapViewModel(MapViewModel mapViewModel)
Set the map view model for this toolbar.
void showLegend()
void toggleLegend()
Toggles the visible state of Legend.
Protected Methods
LinearLayout getToolbar()
boolean isChild(View child)
Tests whether the given view is a child view
[Expand]
Inherited Methods
From class android.widget.RelativeLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public OverlayToolbar (Context context)

public OverlayToolbar (Context context, AttributeSet attrs)

public OverlayToolbar (Context context, AttributeSet attrs, int defStyleAttr)

public OverlayToolbar (Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Public Methods

public void addButtons (Collection<ImageButton> buttons)

Add a collection of buttons to the toolbar.

Parameters
buttons The collection of buttons to add to the toolbar.

public MapActionProvider getMapActionProvider ()

Get the map action provider for this toolbar.

Returns
  • The map action provider for this toolbar.

public MapViewModel getMapViewModel ()

Get the map view model for this toolbar.

Returns
  • The map view model for this toolbar.

public void hideLegend ()

public boolean isLegendVisible ()

If legend is showing

public void setMapActionProvider (MapActionProvider mapActionProvider)

Set the map action provider for this toolbar.

Parameters
mapActionProvider The map action provider for this toolbar.

public void setMapViewModel (MapViewModel mapViewModel)

Set the map view model for this toolbar.

Parameters
mapViewModel The map view model for this toolbar.

public void showLegend ()

public void toggleLegend ()

Toggles the visible state of Legend. Caller (Controller) is responsible to update model.

Protected Methods

protected LinearLayout getToolbar ()

protected boolean isChild (View child)

Tests whether the given view is a child view