package controller;
import view.buttons.interfaces.SearchResultPressed;
import view.panels.ActorView;
import view.panels.MovieView;
public class SearchController implements SearchResultPressed {
@Override
public void searchResultPressed(int type, String uri) {
if(type==MOVIE)
new MovieView(MainController.getInstance().getWindow().getPanelCount(), uri);
else if(type==ACTOR)
new ActorView(MainController.getInstance().getWindow().getPanelCount(), uri);
else
if(MainController.DEBUG)
System.out.println("URI not movie/actor");
}
}