Code example for Vector

Methods: add

0
		splicingOptions.add(new ValueLabel("Premature termination codon", "Yes: Premature termination codon")); 
 
		Vector<ValueLabel> founderOptions = new Vector<ValueLabel>(); 
		founderOptions.add(new ValueLabel("foundermutation", "")); 
 
		Vector<ValueLabel> snpOptions = new Vector<ValueLabel>(); 
		snpOptions.add(new ValueLabel("reportedsnp", "")); 
 
		this.add(new StringInput("gene")); 
		((StringInput) this.get("gene")).setReadonly(true); 
		this.add(new StringInput("refseq")); 
		this.add(new StringInput("position")); // add onchange 
		this.add(new StringInput("nt")); 
		((StringInput) this.get("nt")).setReadonly(true); 
		this.add(new SelectInput("event", "")); // add onchange 
		this.add(new StringInput("length")); // TODO: does JavaScript work? 
		((StringInput) this.get("length")).setStyle("display:none"); 
		((StringInput) this.get("length")).setId("length_input"); 
		this.add(new StringInput("ntchange")); // TODO: does JavaScript work? 
		((StringInput) this.get("ntchange")).setStyle("display:none"); 
		((StringInput) this.get("ntchange")).setId("ntchange_input"); 
		this.add(new CheckboxInput("conservedaa", "", "Conserved amino acid?", conservedaaOptions, new Vector<String>())); 
		this.add(new SelectInput("effectonsplicing", "")); 
		((SelectInput) this.get("effectonsplicing")).setOptions(splicingOptions); 
		// this.add(new CheckboxInput("effectonsplicing", "", 
		// "Effect on splicing?", splicingOptions, new Vector<String>())); 
		this.add(new CheckboxInput("foundermutation", "", "Founder mutation?", founderOptions, new Vector<String>())); 
		this.add(new StringInput("population")); 
		this.add(new CheckboxInput("reportedsnp", "", "Reported as SNP?", snpOptions, new Vector<String>())); 
		this.add(new SelectInput("inheritance", "recessive")); 
		this.add(new StringInput("comment")); 
 
		this.add(new StringInput("readonly_pos")); 
		((StringInput) this.get("readonly_pos")).setReadonly(true); 
Stop searching for code, let great code find you!  Add Codota to your java IDE