public SearchController(SearchModel model, JSearchBox view, PreviewI preview, Files files, DatabaseAccess db){
		this.model = model;
		this.view = view;
		this.view.setSearchPreview(preview);
		this.db = db;
		this.searchThread = new SearchThread(this.model, this.view.getSearchBoxText(), this.db);
		this.files = files;
		
		this.view.setSearchBoxActionListener(new SearchBoxEnterListener());
		this.view.setSearchBoxFocusListener(new SearchBoxFocusListener());
		this.view.setSearchBoxDocumentListener(new SearchBoxDocumentListener());
		this.view.setSearchButtonListener(new SearchButtonListener());
		
		this.view.setPreviewComponentListener(new PreviewComponentMouseListener());
	}