public TemplateView(ConstraintTemplate anTemplate) { super(); model = new AssignmentModel(anTemplate.getLanguage()); view = new AssignmentModelView(model); template = anTemplate; model.addListener(view); if (anTemplate != null) { this.createCells(); } }