class sap.m.SinglePlanningCalendarView

Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/m/SinglePlanningCalendarView
Application Component: CA-UI5-CTR

Represents a day view of the sap.m.SinglePlanningCalendar. The purpose of the element is to decouple the view logic from parent control SinglePlanningCalendar.


Constructor

Constructor for a new SinglePlanningCalendarView.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.

new sap.m.SinglePlanningCalendarView(sId?, mSettings?)
Param Type Default Value Description
sId? string

ID for the new control, generated automatically if no ID is given

mSettings? object

Initial settings for the new control


Properties

Name Type Default Value Description
key string

Indicates a unique key for the view

Visibility: public
title string

Adds a title for the view

Visibility: public

Methods Overview

Method Description
calculateStartDate

Should calculate the startDate which will be displayed in the sap.m.SinglePlanningCalendar based on a given date.

sap.m.SinglePlanningCalendarView.extend

Creates a new subclass of class sap.m.SinglePlanningCalendarView with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.core.Element.extend.

getEntityCount

Should return the number of columns to be displayed in the grid of the sap.m.SinglePlanningCalendar.

getKey

Gets current value of property key.

Indicates a unique key for the view

sap.m.SinglePlanningCalendarView.getMetadata

Returns a metadata object for class sap.m.SinglePlanningCalendarView.

getScrollEntityCount

Should return a number of entities until the next/previous startDate of the sap.m.SinglePlanningCalendar after navigating forward/backward with the arrows. For example, by pressing the forward button inside the work week view, the next startDate of a work week will be 7 entities (days) away from the current one.

getTitle

Gets current value of property title.

Adds a title for the view

setKey

Sets a new value for property key.

Indicates a unique key for the view

When called with a value of null or undefined, the default value of the property will be restored.

setTitle

Sets a new value for property title.

Adds a title for the view

When called with a value of null or undefined, the default value of the property will be restored.

calculateStartDate

Should calculate the startDate which will be displayed in the sap.m.SinglePlanningCalendar based on a given date.

Param Type DefaultValue Description
oDate object

the given date

sap.m.SinglePlanningCalendarView.extend

Creates a new subclass of class sap.m.SinglePlanningCalendarView with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.core.Element.extend.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

getEntityCount

Should return the number of columns to be displayed in the grid of the sap.m.SinglePlanningCalendar.

getKey

Gets current value of property key.

Indicates a unique key for the view

sap.m.SinglePlanningCalendarView.getMetadata

Returns a metadata object for class sap.m.SinglePlanningCalendarView.

getScrollEntityCount

Should return a number of entities until the next/previous startDate of the sap.m.SinglePlanningCalendar after navigating forward/backward with the arrows. For example, by pressing the forward button inside the work week view, the next startDate of a work week will be 7 entities (days) away from the current one.

getTitle

Gets current value of property title.

Adds a title for the view

setKey

Sets a new value for property key.

Indicates a unique key for the view

When called with a value of null or undefined, the default value of the property will be restored.

Param Type DefaultValue Description
sKey string

New value for property key

setTitle

Sets a new value for property title.

Adds a title for the view

When called with a value of null or undefined, the default value of the property will be restored.

Param Type DefaultValue Description
sTitle string

New value for property title