public class

MapPreviewPanel

extends ConstraintLayout
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ androidx.constraintlayout.widget.ConstraintLayout
         ↳ com.sap.cloud.mobile.fiori.maps.MapPreviewPanel

Class Overview

This view consists of a Toolbar, an ObjectHeader and a list of ActionCells to preview an object selected in a map.

Summary

Nested Classes
class MapPreviewPanel.DefaultDirectionsAction The default directions action invokes Google map for turn-by-turn navigation. 
[Expand]
Inherited Constants
From class androidx.constraintlayout.widget.ConstraintLayout
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
MapPreviewPanel(Context context)
MapPreviewPanel(Context context, AttributeSet attrs)
MapPreviewPanel(Context context, AttributeSet attrs, int defStyleAttr)
Public Methods
ObjectHeader getObjectHeader()
Returns the ObjectHeader
void setActionCells(ActionCell... actionCells)
Sets all the actions for the current map object.
void setDirectionsOnClickListener(View.OnClickListener listener)
Sets an View.OnClickListener to the directions button.
void setNavigationOnClickListener(View.OnClickListener listener)
Sets an View.OnClickListener to the dismiss button in title bar.
void setTitle(CharSequence title)
Sets the title in toolbar
[Expand]
Inherited Methods
From class androidx.constraintlayout.widget.ConstraintLayout
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 MapPreviewPanel (Context context)

public MapPreviewPanel (Context context, AttributeSet attrs)

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

Public Methods

public ObjectHeader getObjectHeader ()

Returns the ObjectHeader

public void setActionCells (ActionCell... actionCells)

Sets all the actions for the current map object. The list under ObjectHeader will show 2 to 4 ActionCells. The sole action or excessive actions will be placed into menu. View.OnClickListeners should be attached to ActionCells before calling this method, otherwise, nothing will happen when user clicks the cell/menu.

public void setDirectionsOnClickListener (View.OnClickListener listener)

Sets an View.OnClickListener to the directions button.

public void setNavigationOnClickListener (View.OnClickListener listener)

Sets an View.OnClickListener to the dismiss button in title bar.

public void setTitle (CharSequence title)

Sets the title in toolbar