Code example for Vector

Methods: addElement, removeAllElements

0
 
	/* (non-Javadoc) 
	 * @see eu.planets_project.tb.api.model.ExperimentApproval#setApprovalRequiredRole(int) 
	 */ 
	public void setApprovalRequiredRole(int roleID) {
		this.vReqRoles.removeAllElements();
		this.vReqRoles.addElement(roleID);
	} 
 
	/* (non-Javadoc) 
	 * @see eu.planets_project.tb.api.model.ExperimentApproval#setApprovalRequiredRoles(java.util.Vector) 
	 */ 
	public void setApprovalRequiredRoles(List<Integer> roleIDs) {
		this.vReqRoles.removeAllElements();
		this.vReqRoles.addAll(roleIDs);
	} 
 
	/* (non-Javadoc) 
	 * @see eu.planets_project.tb.api.model.ExperimentApproval#setApprovalUser(eu.planets_project.tb.api.model.User) 
	 */ 
/*	public void setApprovalUser(User user) {