public class

HierarchyView

extends LinearLayout
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.LinearLayout
         ↳ com.sap.cloud.mobile.fiori.hierarchy.HierarchyView

Class Overview

HierarchyView presents a hierarchy of business objects.

Structure

  • Columns
  • A set of vertically stacked business objects representing siblings of a node. Number of such columns depends on the hierarchy provided by data source and users interactions with the view. In phone layout only one column is visible at a time and allows users to scroll to neighboring columns. When used in tablet mode HierarchyView presents 2 columns at once, which can expand to present 3 columns.

  • Column Header
  • HierarchyView in phone mode layout presents a header for the column which provides navigation buttons to help user navigate to previous or next columns.

Summary

Nested Classes
class HierarchyView.CellHolder<V extends View & SupportsHierarchyAccessory> A CellHolder to hold the Views for BusinessObjects. 
enum HierarchyView.LayoutType LayoutType of the HierarchyView. 
XML Attributes
Attribute Name Related Method Description
com.sap.cloud.mobile.fiori:autoLoadSiblings Auto load the siblings of root and roots parents

May be a boolean value, such as "true" or "false". 

com.sap.cloud.mobile.fiori:layoutType Force the layout to be phone or tablet

Must be one of the following constant values. 

[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
HierarchyView(Context context)
HierarchyView(Context context, AttributeSet attrs)
HierarchyView(Context context, AttributeSet attrs, int defStyleAttr)
HierarchyView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public Methods
void forceLayoutType(HierarchyView.LayoutType layoutType)
Force the HierarchyView to use the given HierarchyView.LayoutType
void setAutoLoadSiblings(boolean autoLoadSiblings)
This api has been deprecated and will have no effect on the HierarchyView behavior.
<T extends Serializable, K extends CellHolder> void setHierarchyAdapter(HierarchyViewItemAdapter<T, K> adapter)
Protected Methods
void onRestoreInstanceState(Parcelable state)
Parcelable onSaveInstanceState()
void onSizeChanged(int newWidth, int newHeight, int oldWidth, int oldHeight)
[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

XML Attributes

com.sap.cloud.mobile.fiori:autoLoadSiblings

Auto load the siblings of root and roots parents

May be a boolean value, such as "true" or "false".

Related Methods

com.sap.cloud.mobile.fiori:layoutType

Force the layout to be phone or tablet

Must be one of the following constant values.

ConstantValueDescription
phone0Phone layout
tab1Tablet Layout
unspecified2Unspecified layout

Related Methods

Public Constructors

public HierarchyView (Context context)

public HierarchyView (Context context, AttributeSet attrs)

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

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

Public Methods

public void forceLayoutType (HierarchyView.LayoutType layoutType)

Force the HierarchyView to use the given HierarchyView.LayoutType

Parameters
layoutType LayoutType HierarchyView.LayoutType

public void setAutoLoadSiblings (boolean autoLoadSiblings)

This api has been deprecated and will have no effect on the HierarchyView behavior. See notifyChildrenRangeInserted(Serializable, int, int) Enable or disable the loading of siblings for root object. For details about root object see getRootId() This flag will also affect the column presenting ancestors of root.

Parameters
autoLoadSiblings boolean

public void setHierarchyAdapter (HierarchyViewItemAdapter<T, K> adapter)

Protected Methods

protected void onRestoreInstanceState (Parcelable state)

protected Parcelable onSaveInstanceState ()

protected void onSizeChanged (int newWidth, int newHeight, int oldWidth, int oldHeight)