src/services/tabService/nodes/tabNode/tab-node.ts
Properties |
Accessors |
constructor(myInstance: any)
|
||||||
Parameters :
|
currentInstance |
Type : any
|
idInstance |
Type : string
|
nextTabNode |
Type : ITabNode
|
previousTabNode |
Type : ITabNode
|
tabOrderInstance |
Type : number
|
next | ||||||
getnext()
|
||||||
setnext(tabNode: ITabNode)
|
||||||
Parameters :
Returns :
void
|
previous | ||||||
getprevious()
|
||||||
setprevious(tabNode: ITabNode)
|
||||||
Parameters :
Returns :
void
|
current | ||||||
getcurrent()
|
||||||
setcurrent(currentInstance: any)
|
||||||
Parameters :
Returns :
void
|
id |
getid()
|
tabOrder |
gettabOrder()
|
import { ITabNode } from '../../tabContracts/iTabNode';
export class TabNode implements ITabNode {
constructor(myInstance: any) {
this.currentInstance = myInstance;
this.nextTabNode = null;
this.previousTabNode = null;
this.idInstance = this.currentInstance.model.id;
this.tabOrderInstance = this.currentInstance.model.TabOrder || 0;
}
nextTabNode: ITabNode;
previousTabNode: ITabNode;
currentInstance: any;
idInstance: string;
tabOrderInstance: number;
set next(tabNode: ITabNode) {
this.nextTabNode = tabNode;
}
get next(): ITabNode {
return this.nextTabNode;
}
set previous(tabNode: ITabNode) {
this.previousTabNode = tabNode;
}
get previous(): ITabNode {
return this.previousTabNode;
}
set current(currentInstance: any) {
this.currentInstance = currentInstance;
}
get current(): any {
return this.currentInstance;
}
get id(): string {
return this.idInstance;
}
get tabOrder(): number {
return this.tabOrderInstance;
}
}