sap.gantt.shape.ext.rls.Relationship.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.gantt.shape.ext.rls.Relationship with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of information as described in Object.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.shape.ext.rls.Relationship.
Returns:
Destroys the selectedShape in the aggregation selectedShape
.
Returns:
getArrowSideLength(): number
Gets current value of property
arrowSideLength
.
Size of the arrow
Default value is 5
.
Returns:
{number} | Value of property arrowSideLength |
getCategory(): string
Gets current value of property
category
.
Category name
Default value is sap.gantt.shape.ShapeCategory.Relationship
.
Returns:
{string} | Value of property category |
getFill(): string
Gets current value of property
fill
.
Fill color of the relationship shape (the color of the arrow and the square at the ends)
Default value is #000000
.
Returns:
{string} | Value of property fill |
getFromDataId(oData): string
Gets the data of the predecessor element
Parameters:
{object} | oData | Raw data object |
Returns:
{string} | Data of predecessor |
getFromObjectPath(oData): string
Gets the path of predecessor object
Parameters:
{object} | oData | Raw data object |
Returns:
{string} | Path of predecessor element |
getFromShapeId(oData): string
Gets the shape ID of the predecessor element
Parameters:
{object} | oData | Raw data object |
Returns:
{string} | Shape ID of the predecessor element |
getHtmlClass(oData): string
Gets the CSS class of the relationship shape
Parameters:
{object} | oData | Raw data object |
Returns:
{string} | CSS class name of the relationship shape |
getIsClosed(): boolean
Gets current value of property
isClosed
.
Indicates whether the shape is a closed path
Default value is true
.
Returns:
{boolean} | Value of property isClosed |
getIsDuration(): boolean
Gets current value of property
isDuration
.
Indicates whether the width of the polygon represents the duration of time
Default value is false
.
Returns:
{boolean} | Value of property isDuration |
getLShapeforTypeFS(oData): boolean
Gets the'L' shape switch
Parameters:
{object} | oData | Raw data object |
Returns:
{boolean} | 'L' shape configuration (whether the system uses L-shaped lines to represent finish-start relationships) |
getMinXLen(): number
Gets current value of property
minXLen
.
Minimum length for relationship lines
Default value is 10
.
Returns:
{number} | Value of property minXLen |
Gets content of aggregation selectedShape
.
Returns:
getShowEnd(oData): boolean
Gets whether the end shape is visible
Parameters:
{object} | oData | Raw data object |
Returns:
{boolean} | End shape configuration (whether the end shape is visible |
getShowStart(oData): boolean
Gets whether the start shape is visible
Parameters:
{object} | oData | Raw data object |
Returns:
{boolean} | Start shape configuration (whether the start shape is visible) |
getStroke(): string
Gets current value of property
stroke
.
Line color of the relationship shape
Default value is #000000
.
Returns:
{string} | Value of property stroke |
getToDataId(oData): string
Gets the data of the successor element
Parameters:
{object} | oData | Raw data object |
Returns:
{string} | Data of the successor element |
getToObjectPath(oData): string
Gets the path of the successor element
Parameters:
{object} | oData | Raw data object |
Returns:
{string} | Path of the successor element |
getToShapeId(oData): string
Gets the shape ID of the successor element
Parameters:
{object} | oData | Raw data object |
Returns:
{string} | Shape ID of the successor element |
getType(oData): number
Gets the relationship type
Parameters:
{object} | oData | Raw data object |
Returns:
{number} | The type number (from 0 to 3) |
Sets a new value for property
arrowSideLength
.
Size of the arrow
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 5
.
Parameters:
{number} | sArrowSideLength | New value for property arrowSideLength |
Returns:
Sets a new value for property
category
.
Category name
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is sap.gantt.shape.ShapeCategory.Relationship
.
Parameters:
{string} | sCategory | New value for property category |
Returns:
Sets a new value for property
fill
.
Fill color of the relationship shape (the color of the arrow and the square at the ends)
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is #000000
.
Parameters:
{string} | sFill | New value for property fill |
Returns:
Sets a new value for property
fromDataId
.
Data of predecessor element
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sFromDataId | New value for property fromDataId |
Returns:
Sets a new value for property
fromObjectPath
.
Path of predecessor element
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sFromObjectPath | New value for property fromObjectPath |
Returns:
Sets a new value for property
fromShapeId
.
Shape of predecessor element
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sFromShapeId | New value for property fromShapeId |
Returns:
Sets a new value for property
htmlClass
.
CSS class name of the relationship shape
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is relationshipLine
.
Parameters:
{string} | sHtmlClass | New value for property htmlClass |
Returns:
Sets a new value for property
isClosed
.
Indicates whether the shape is a closed path
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bIsClosed | New value for property isClosed |
Returns:
Sets a new value for property
isDuration
.
Indicates whether the width of the polygon represents the duration of time
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bIsDuration | New value for property isDuration |
Returns:
Sets a new value for property
lShapeforTypeFS
.
Indicates whether an 'L' shape is used for the finish-to-start type
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bLShapeforTypeFS | New value for property lShapeforTypeFS |
Returns:
Sets a new value for property
minXLen
.
Minimum length for relationship lines
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 10
.
Parameters:
{number} | sMinXLen | New value for property minXLen |
Returns:
Sets the aggregated selectedShape
.
Parameters:
Returns:
Sets a new value for property
showEnd
.
Indicates whether the end point (arrow) of the relationship shape is visible
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bShowEnd | New value for property showEnd |
Returns:
Sets a new value for property
showStart
.
Indicates whether the start point (square) of the relationship shape is visible
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bShowStart | New value for property showStart |
Returns:
Sets a new value for property
stroke
.
Line color of the relationship shape
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is #000000
.
Parameters:
{string} | sStroke | New value for property stroke |
Returns:
Sets a new value for property
toDataId
.
Data of successor element
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sToDataId | New value for property toDataId |
Returns:
Sets a new value for property
toObjectPath
.
Path of successor element
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sToObjectPath | New value for property toObjectPath |
Returns:
Sets a new value for property
toShapeId
.
Shape of successor element
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sToShapeId | New value for property toShapeId |
Returns:
Sets a new value for property
type
.
Relationship type
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is FinishToFinish
.
Parameters:
Returns: