public class

HierarchyObjectCell

extends ObjectCell
implements SupportsHierarchyAccessory
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ com.sap.cloud.mobile.fiori.object.AbstractEntityCell
         ↳ com.sap.cloud.mobile.fiori.object.ObjectCell
           ↳ com.sap.cloud.mobile.fiori.hierarchy.HierarchyObjectCell
Known Direct Subclasses

Class Overview

Class representing the HierarchyView compatible ObjectCell. HierarchyObjectCell implements SupportsHierarchyAccessory interface and allows users to map business objects in HierarchyView using ObjectCell For more details about cell check ObjectCell

Summary

[Expand]
Inherited XML Attributes
From class com.sap.cloud.mobile.fiori.object.ObjectCell
From class com.sap.cloud.mobile.fiori.object.AbstractEntityCell
[Expand]
Inherited Constants
From class com.sap.cloud.mobile.fiori.object.AbstractEntityCell
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class com.sap.cloud.mobile.fiori.object.ObjectCell
From class com.sap.cloud.mobile.fiori.object.AbstractEntityCell
From class android.view.View
Public Constructors
HierarchyObjectCell(Context context)
Public Methods
View getAccessoryView()
Return the HierarchyAccessoryView associated with this HierarchyObjectCell
boolean isAccessoryClicked(MotionEvent motionEvent, View view)
Hierarchy Cells have an accessory part in their structure.
void setSelectStateBackground(int selectStateBackground)
void setSelected(boolean selected)
void setUnSelectStateBackground(int unSelectStateBackground)
Protected Methods
int getRemainedWidth(int parentWidthSpec, int widthUsed)
Calculates how much width is left
void onLayout(boolean changed, int left, int t, int right, int b)
void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
[Expand]
Inherited Methods
From class com.sap.cloud.mobile.fiori.object.ObjectCell
From class com.sap.cloud.mobile.fiori.object.AbstractEntityCell
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
From interface com.sap.cloud.mobile.fiori.hierarchy.SupportsHierarchyAccessory
From interface com.sap.cloud.mobile.fiori.object.KeylineProvider

Public Constructors

public HierarchyObjectCell (Context context)

Public Methods

public View getAccessoryView ()

Return the HierarchyAccessoryView associated with this HierarchyObjectCell

public boolean isAccessoryClicked (MotionEvent motionEvent, View view)

Hierarchy Cells have an accessory part in their structure. In order to delve deeper in the hierarchy it is important for the HierarchyView to understand when the click events occur over accessory part of the view. This API allows HierarchyView to decide the next course of action.

Parameters
motionEvent Motion event received in response to user's interaction with HierarchyView
view Hierarchy Cell View, with which user interacted.
Returns
  • boolean is the click event was on accessory part of the View.

public void setSelectStateBackground (int selectStateBackground)

public void setSelected (boolean selected)

public void setUnSelectStateBackground (int unSelectStateBackground)

Protected Methods

protected int getRemainedWidth (int parentWidthSpec, int widthUsed)

Calculates how much width is left

protected void onLayout (boolean changed, int left, int t, int right, int b)

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)