package library.core.object;

import library.core.model.CoreTextModel;
import library.core.view.CoreTextView;

public class CoreTextObject implements Cloneable{

	private CoreTextModel model;
	private CoreTextView view;
	
	public CoreTextObject(CoreTextModel model,CoreTextView view){
		this.model=model;
		this.view=view;
	}
	
	public CoreTextObject clone(){
		CoreTextObject c=null;
		
		try {
			c=(CoreTextObject) super.clone();
			c.model=this.model.clone();
			c.view=new CoreTextView(c.model);
		} catch (CloneNotSupportedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return c;
	}

	public CoreTextModel getModel() {
		return model;
	}

	public void setModel(CoreTextModel model) {
		this.model = model;
	}

	public CoreTextView getView() {
		return view;
	}

	public void setView(CoreTextView view) {
		this.view = view;
	}
	
	
}
