public class

EditorView

extends LinearLayout
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.LinearLayout
         ↳ com.sap.cloud.mobile.fiori.maps.edit.EditorView

Class Overview

A view for editing points, polylines, or polygons on a map.

Summary

Nested Classes
interface EditorView.OnCancelListener  
interface EditorView.OnSaveListener  
[Expand]
Inherited Constants
From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
EditorView(Context context)
EditorView(Context context, AttributeSet attrs)
Public Methods
MapEditor getMapEditor()
void hideEditToolbar()
boolean isCreatePointEnabled()
Returns true when editing points is enabled.
boolean isCreatePolygonEnabled()
Returns true when editing polygons is enabled.
boolean isCreatePolylineEnabled()
Returns true when editing polylines is enabled.
void setCreatePointEnabled(boolean createPointEnabled)
Enable or disable editing points.
void setCreatePolygonEnabled(boolean createPolygonEnabled)
Enable or disable editing polygons.
void setCreatePolylineEnabled(boolean createPolylineEnabled)
Enable or disable editing polylines.
void setMapEditor(MapEditor mapEditor)
Assigns a platform specific class to manipulate the map based on user actions.
void setOnCancelListener(EditorView.OnCancelListener onCancelListener)
Set the listener that is called when the cancel button is tapped.
void setOnSaveListener(EditorView.OnSaveListener onSaveListener)
Set the listener that is called when the save button is tapped.
void setTitle(CharSequence title)
void showEditToolbar(FrameLayout mapContainer)
void updateEditTypeToolbarButtons()
Protected Methods
void onAttachedToWindow()
void onDetachedFromWindow()
[Expand]
Inherited Methods
From class android.widget.LinearLayout
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 EditorView (Context context)

public EditorView (Context context, AttributeSet attrs)

Public Methods

public MapEditor getMapEditor ()

public void hideEditToolbar ()

public boolean isCreatePointEnabled ()

Returns true when editing points is enabled.

Returns
  • true when editing points is enabled.

public boolean isCreatePolygonEnabled ()

Returns true when editing polygons is enabled.

Returns
  • true when editing polygons is enabled

public boolean isCreatePolylineEnabled ()

Returns true when editing polylines is enabled.

Returns
  • true when editing polylines is enabled.

public void setCreatePointEnabled (boolean createPointEnabled)

Enable or disable editing points.

Parameters
createPointEnabled enable editing points when true.

public void setCreatePolygonEnabled (boolean createPolygonEnabled)

Enable or disable editing polygons.

Parameters
createPolygonEnabled enable editing polygons when true.

public void setCreatePolylineEnabled (boolean createPolylineEnabled)

Enable or disable editing polylines.

Parameters
createPolylineEnabled enable editing polylines when true.

public void setMapEditor (MapEditor mapEditor)

Assigns a platform specific class to manipulate the map based on user actions.

Parameters
mapEditor a platform specific class to manipulate the map based on user actions.

public void setOnCancelListener (EditorView.OnCancelListener onCancelListener)

Set the listener that is called when the cancel button is tapped.

Parameters
onCancelListener the listener that is called when the cancel button is tapped.

public void setOnSaveListener (EditorView.OnSaveListener onSaveListener)

Set the listener that is called when the save button is tapped.

Parameters
onSaveListener the listener that is called when the save button is tapped.

public void setTitle (CharSequence title)

public void showEditToolbar (FrameLayout mapContainer)

public void updateEditTypeToolbarButtons ()

Protected Methods

protected void onAttachedToWindow ()

protected void onDetachedFromWindow ()