A calendar that contains a list of time interval definitions.
A pattern definition is generated per calendar key.
Constructor Summary
new sap.gantt.def.cal.Calendar(sId?, mSettings?)Creates and initializes a calendar defined and embedded in a 'defs' tag for later reuse. Method Summary
sap.gantt.def.cal.Calendar.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.gantt.def.cal.Calendar with name sClassName
and enriches it with the information contained in oClassInfo
. addTimeInterval(oTimeInterval)Adds some timeInterval to the aggregation timeIntervals
. getKey()Gets current value of property key
. indexOfTimeInterval(oTimeInterval)Checks for the provided sap.gantt.def.cal.TimeInterval
in the aggregation timeIntervals
. insertTimeInterval(oTimeInterval, iIndex)Inserts a timeInterval into the aggregation timeIntervals
. removeTimeInterval(vTimeInterval)Removes a timeInterval from the aggregation timeIntervals
. setKey(sKey)Sets a new value for property key
. $,
addCustomData,
addDependent,
addEventDelegate,
applyFocusInfo,
bindElement,
clone,
data,
destroy,
destroyCustomData,
destroyDependents,
destroyLayoutData,
destroyTooltip,
enhanceAccessibilityState,
exit,
findElements,
fireEvent,
focus,
getCustomData,
getDependents,
getDomRef,
getElementBinding,
getFocusDomRef,
getFocusInfo,
getInterface,
getLayoutData,
getMetadata,
getTooltip,
getTooltip_AsString,
getTooltip_Text,
indexOfCustomData,
indexOfDependent,
init,
insertCustomData,
insertDependent,
prop,
removeAllCustomData,
removeAllDependents,
removeCustomData,
removeDependent,
removeEventDelegate,
rerender,
setLayoutData,
setTooltip,
toString,
unbindElement addAggregation,
addAssociation,
applySettings,
attachFormatError,
attachModelContextChange,
attachParseError,
attachValidationError,
attachValidationSuccess,
bindAggregation,
bindContext,
bindObject,
bindProperty,
destroyAggregation,
detachFormatError,
detachModelContextChange,
detachParseError,
detachValidationError,
detachValidationSuccess,
findAggregatedObjects,
fireFormatError,
fireModelContextChange,
fireParseError,
fireValidationError,
fireValidationSuccess,
getAggregation,
getAssociation,
getBinding,
getBindingContext,
getBindingInfo,
getBindingPath,
getEventingParent,
getId,
getModel,
getObjectBinding,
getOriginInfo,
getParent,
getProperty,
hasModel,
indexOfAggregation,
insertAggregation,
invalidate,
isBound,
isInvalidateSuppressed,
isTreeBinding,
propagateMessages,
removeAggregation,
removeAllAggregation,
removeAllAssociation,
removeAssociation,
setAggregation,
setAssociation,
setBindingContext,
setModel,
setProperty,
unbindAggregation,
unbindContext,
unbindObject,
unbindProperty,
validateAggregation,
validateProperty Constructor Detail
new sap.gantt.def.cal.Calendar(sId?, mSettings?)
Creates and initializes a calendar defined and embedded in a 'defs' tag for later reuse.
Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
- Properties
- key : string (default: calendar)
- backgroundColor : sap.gantt.ValueSVGPaintServer (default: #e5e5e5)
- Aggregations
In addition, all settings applicable to the base type sap.gantt.def.DefBase can be used as well.
Parameters:
{string} | sId? | ID of the new control, generated automatically if no ID is given |
{object} | mSettings? | Initial settings for the new control |
Method Detail
sap.gantt.def.cal.Calendar.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.gantt.def.cal.Calendar with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.gantt.def.DefBase.extend.
Parameters:
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
Returns:
{function} | Created class / constructor function |
Returns a metadata object for class sap.gantt.def.cal.Calendar.
Returns:
Adds some timeInterval to the aggregation timeIntervals
.
Parameters:
Returns:
Binds aggregation
timeIntervals
to model data.
See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo
.
Parameters:
{object} | oBindingInfo | The binding information |
Returns:
Destroys all the timeIntervals in the aggregation timeIntervals
.
Returns:
Gets current value of property
backgroundColor
.
Background color of time intervals.
Default value is #e5e5e5
.
Returns:
getKey(): string
Gets current value of property
key
.
Key of the calendar. Note that this value is used to generate the referencing string of the calendar pattern.
Default value is calendar
.
Returns:
{string} | Value of property key |
Gets content of aggregation
timeIntervals
.
Time intervals that should be painted with the value of backgroundColor
.
Returns:
indexOfTimeInterval(oTimeInterval): int
Checks for the provided sap.gantt.def.cal.TimeInterval
in the aggregation timeIntervals
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a timeInterval into the aggregation timeIntervals
.
Parameters:
{sap.gantt.def.cal.TimeInterval} | oTimeInterval | the timeInterval to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the timeInterval should be inserted at; for a negative value of iIndex , the timeInterval is inserted at position 0; for a value greater than the current size of the aggregation, the timeInterval is inserted at the last position |
Returns:
Removes all the controls from the aggregation
timeIntervals
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes a timeInterval from the aggregation timeIntervals
.
Parameters:
Returns:
Sets a new value for property
backgroundColor
.
Background color of time intervals.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is #e5e5e5
.
Parameters:
Returns:
Sets a new value for property
key
.
Key of the calendar. Note that this value is used to generate the referencing string of the calendar pattern.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is calendar
.
Parameters:
{string} | sKey | New value for property key |
Returns:
Unbinds aggregation timeIntervals
from model data.
Returns: