biojs-vis-pdbviewer
Version:
A BioJS 2.0 component to view protein structures
24 lines (23 loc) • 552 B
JavaScript
Clazz.declarePackage ("JSV.common");
c$ = Clazz.decorateAsClass (function () {
this.isub = 0;
this.title = null;
Clazz.instantialize (this, arguments);
}, JSV.common, "SubSpecChangeEvent");
Clazz.makeConstructor (c$,
function (isub, title) {
this.isub = isub;
this.title = title;
}, "~N,~S");
Clazz.defineMethod (c$, "isValid",
function () {
return (this.title != null);
});
Clazz.defineMethod (c$, "getSubIndex",
function () {
return this.isub;
});
Clazz.overrideMethod (c$, "toString",
function () {
return this.title;
});