public abstract class

TimelineCellView

extends ViewGroup
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ com.sap.cloud.mobile.fiori.timelineview.views.TimelineCellView
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

An abstract object demonstrating a chronological event.

Structure

Summary

Nested Classes
enum TimelineCellView.TimelineCellState Enum representing the state of the cell  
enum TimelineCellView.TimelineCellType Enum representing the type of the cell  
XML Attributes
Attribute Name Related Method Description
com.sap.cloud.mobile.fiori:leftPaneWidthRatio setLeftPaneRatio(float) Left width of timeline cell

May be a floating point value, such as "1.2". 

com.sap.cloud.mobile.fiori:node setBarNodeDrawable(Drawable) Node logo of timeline cell

May be an integer value, such as "100". 

Constants
int DEFAULT_ELEMENT_MARGIN Default element margin
int DEFAULT_ICON_SIZE Default icon size
int DEFAULT_LEFT_SPAN_MAX_WIDTH Default left pane max width
int DEFAULT_LEFT_SPAN_MIN_WIDTH Default left pane min width
[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
Fields
protected TimelineLineView mChronologyBar Chronology bar
protected int mChronologyBarOffset Offset of the chronology bar
protected Date mDueDate Due date of the timeline cell
protected int mLeftPaneMaxWidth Max left pane min width
protected int mLeftPaneMinWidth Min left pane min width
protected float mLeftPaneRightPaneWidthRatio Left pane right pane width ratio
protected TimelineCellView.TimelineCellState mState State of the timeline cell
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
TimelineCellView(Context context)
TimelineCellView(Context context, AttributeSet attrs)
TimelineCellView(Context context, AttributeSet attrs, int defStyleAttr)
TimelineCellView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public Methods
Drawable getBarNodeDrawable()
Get the node/icon drawable of the cell's chronology bar
abstract TimelineCellView.TimelineCellType getCellType()
int getChronologyBarOffset()
Get the offset of the TimelineLineView in comparison with other elements.
Date getDueDate()
Get the due date of the Cell
float getLeftPaneRatio()
Gets the ratio between left pane and right pane
TimelineCellView.TimelineCellState getState()
Get the state of the Timeline cell
void recycle()
Recycles the Cell for reuse
void setBarColor(int color, TimelineLineView.LineType lineType)
Set the color of the TimelineCell's chronology bar.
void setBarNodeDrawable(Drawable drawable)
Set the node/ icon of the chronology bar
void setChronologyBarOffset(int mChronologyBarHeightOffset)
Set the offset of the TimelineLineView in comparison with other elements.
void setChronologyBarType(TimelineLineView.LineType type)
Set the type of Chronology Bars.
void setDueDate(Date mDueDate)
Set the due date on Timeline cell view
void setLeftPaneRatio(float mLeftPaneRatio)
Sets the ratio between left pane and right pane
void setState(TimelineCellView.TimelineCellState state)
Set the state of the Timeline cell
Protected Methods
void addSystemView(View v)
Add the given view to the view group
void initialize(AttributeSet attrs, int defStyle, int defStyleRes)
Handle the typed attributes of the cell
boolean isChildOrHidden(View child)
Is the given view child of this view
void measureChildConstrained(View child, int parentWidthSpec, int widthUsed, int widthConstraint, int parentHeightSpec, int heightUsed, int heightConstraint)
Measure a child for given length and width constraints
void measureChildFixed(View child, int width, int height)
Measure a child for given fixed length and width
void setLeftPaneMinMaxAsPerRatio(int width)
Sets the minimum and maximum width of the left pane
boolean shouldLayout(View view)
Check if the given View requires layout
[Expand]
Inherited Methods
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:leftPaneWidthRatio

Left width of timeline cell

May be a floating point value, such as "1.2".

Related Methods

com.sap.cloud.mobile.fiori:node

Node logo of timeline cell

May be an integer value, such as "100".

Constants

protected static final int DEFAULT_ELEMENT_MARGIN

Default element margin

Constant Value: 8 (0x00000008)

protected static final int DEFAULT_ICON_SIZE

Default icon size

Constant Value: 40 (0x00000028)

protected static final int DEFAULT_LEFT_SPAN_MAX_WIDTH

Default left pane max width

Constant Value: 200 (0x000000c8)

protected static final int DEFAULT_LEFT_SPAN_MIN_WIDTH

Default left pane min width

Constant Value: 200 (0x000000c8)

Fields

protected TimelineLineView mChronologyBar

Chronology bar

protected int mChronologyBarOffset

Offset of the chronology bar

protected Date mDueDate

Due date of the timeline cell

protected int mLeftPaneMaxWidth

Max left pane min width

protected int mLeftPaneMinWidth

Min left pane min width

protected float mLeftPaneRightPaneWidthRatio

Left pane right pane width ratio

protected TimelineCellView.TimelineCellState mState

State of the timeline cell

Public Constructors

public TimelineCellView (Context context)

public TimelineCellView (Context context, AttributeSet attrs)

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

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

Public Methods

public Drawable getBarNodeDrawable ()

Get the node/icon drawable of the cell's chronology bar

Related XML Attributes
Returns
  • Drawable

public int getChronologyBarOffset ()

Get the offset of the TimelineLineView in comparison with other elements.

Returns
  • int

public Date getDueDate ()

Get the due date of the Cell

Returns
  • Date
See Also

public float getLeftPaneRatio ()

Gets the ratio between left pane and right pane

Returns
  • Float

public TimelineCellView.TimelineCellState getState ()

Get the state of the Timeline cell

public void recycle ()

Recycles the Cell for reuse

public void setBarColor (int color, TimelineLineView.LineType lineType)

Set the color of the TimelineCell's chronology bar.

Parameters
color ColorInt
lineType TimelineLineView.LineType

public void setBarNodeDrawable (Drawable drawable)

Set the node/ icon of the chronology bar

Related XML Attributes
Parameters
drawable Drawable

public void setChronologyBarOffset (int mChronologyBarHeightOffset)

Set the offset of the TimelineLineView in comparison with other elements.

Parameters
mChronologyBarHeightOffset int

public void setChronologyBarType (TimelineLineView.LineType type)

Set the type of Chronology Bars. See TimelineLineView.LineType for available Bar types.

Parameters
type TimelineLineView.LineType

public void setDueDate (Date mDueDate)

Set the due date on Timeline cell view

Parameters
mDueDate due date
See Also

public void setLeftPaneRatio (float mLeftPaneRatio)

Sets the ratio between left pane and right pane

Parameters
mLeftPaneRatio Float

public void setState (TimelineCellView.TimelineCellState state)

Set the state of the Timeline cell

See Also

Protected Methods

protected void addSystemView (View v)

Add the given view to the view group

Parameters
v View

protected void initialize (AttributeSet attrs, int defStyle, int defStyleRes)

Handle the typed attributes of the cell

Parameters
attrs AttributeSet
defStyle Integer
defStyleRes Integer

protected boolean isChildOrHidden (View child)

Is the given view child of this view

Parameters
child View
Returns
  • boolean

protected void measureChildConstrained (View child, int parentWidthSpec, int widthUsed, int widthConstraint, int parentHeightSpec, int heightUsed, int heightConstraint)

Measure a child for given length and width constraints

Parameters
child View
parentWidthSpec android.view.View.MeasureSpec
widthUsed int
widthConstraint android.view.ViewGroup.LayoutParams
parentHeightSpec android.view.View.MeasureSpec
heightUsed int
heightConstraint android.view.ViewGroup.LayoutParams

protected void measureChildFixed (View child, int width, int height)

Measure a child for given fixed length and width

Parameters
child View
width int
height int

protected void setLeftPaneMinMaxAsPerRatio (int width)

Sets the minimum and maximum width of the left pane

Parameters
width int

protected boolean shouldLayout (View view)

Check if the given View requires layout

Parameters
view View
Returns
  • boolean