Package controller

Source Code of controller.SearchController

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");
  }
}
TOP

Related Classes of controller.SearchController

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.