/** * Represents a property of an event. Does not represent an evaluation. * @param type {String} Ex: "CHP Radio" * @param data Array(text) OR Array(label1, text1, label2, text2, ...) */ function Property(type, data) { //========== public read-only members ==========// this.type = type; this.data = data; //========== public methods ==========// this.html = html; //========== method definitions ==========// /** * @return The html representation of this property. */ function html() { var text = "" + "" + "" + ""; if (this.data.length == 1) { text += "" + "" + ""; } else { for (i=0;i" + this.data[i] + "" + "" + ""; } } text += "
" + type + "
" + this.data[0] + "
" + this.data[i+1] + "
"; return text; } }