package devopsdistilled.operp.client.commons.panes.controllers.impl;

import javax.inject.Inject;

import devopsdistilled.operp.client.commons.panes.CreateContactInfoPane;
import devopsdistilled.operp.client.commons.panes.controllers.CreateContactInfoPaneController;
import devopsdistilled.operp.client.commons.panes.models.CreateContactInfoPaneModel;
import devopsdistilled.operp.client.exceptions.EntityValidationException;
import devopsdistilled.operp.server.data.entity.commons.ContactInfo;

public class CreateContactInfoPaneControllerImpl implements
		CreateContactInfoPaneController {

	@Inject
	private CreateContactInfoPane view;

	@Inject
	private CreateContactInfoPaneModel model;

	@Override
	public void validate(ContactInfo entity) throws EntityValidationException {
		// TODO Auto-generated method stub

	}

	@Override
	public ContactInfo save(ContactInfo entity) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public CreateContactInfoPaneModel getModel() {
		return model;
	}

	@Override
	public void init() {
		view.init();
		model.registerObserver(view);
	}

	@Override
	public CreateContactInfoPane getView() {
		return view;
	}

}

@@ -90,16 +90,43 @@
 .Inject;
+%0Aimport javax.swing.JPanel;
 %0A%0Aimport
@@ -192,16 +192,107 @@
 foPane;%0A
+import devopsdistilled.operp.client.commons.panes.controllers.CreateAddressPaneController;%0A
 import d
@@ -804,16 +804,92 @@
 model;%0A%0A
+%09@Inject%0A%09private CreateAddressPaneController createAddressPaneController;%0A%0A
 %09@Overri
@@ -1236,18 +1236,311 @@
 nit() %7B%0A
+%0A
 %09%09
+createAddressPaneController.init();%0A%09%09%0A%09%09// Setting controller is required%0A%09%09// if Bean scope set to Prototype%0A%09%09createAddressPaneController.getView().setController(%0A%09%09%09%09createAddressPaneController);%0A%09%09view.setAddressPanel((JPanel) createAddressPaneController.getView()%0A%09%09%09%09.getPane());%0A%09%09// 
 view.ini

Add AddressPane