UNPKG

@appshuttle.io/turing

Version:
67 lines (45 loc) 1.07 kB
const Frame = require('./Attributes/Frame/Frame') const View = require('./Attributes/View') const Subview = require('./Attributes/Subview') const Title = require('./Attributes/Title/Title') class SHLabel { constructor(parameters) { this.id = parameters.id this.type = parameters.type this.index = parameters.index this.frame = new Frame(parameters.frame) this.view = new View(parameters.view) this.title = new Title(parameters.title) } getId() { return this.id } getType() { return this.type } getIndex() { return this.index } setIndex(index) { this.index = index } getFrame() { return this.frame } setFrame(frame) { this.frame = frame } getView() { return this.view } setView(view) { this.view = view } getTitle() { return this.title } setTitle(title) { this.title = title } } module.exports = SHLabel