Package view

Examples of view.Window


          e.printStackTrace();
        } catch (UnsupportedLookAndFeelException e) {
          e.printStackTrace();
        }
       
        new Window();
      }
    }.start();
  }
View Full Code Here


    System.err.close();
    OntologyWriter.ensureOntologyExistance(false);
   
    queryController = new UpdateController();

    window = new Window();
    window.getSearchBar().addFullSearchListener(this);
    window.getSearchBar().addQuickSearchListener(this);
  }
View Full Code Here

public class ActorDecadeController extends DecadeController {
  @Override
  public void decadeSelected(String uri) {
    SearchableObjectArray results = new SearchableObjectArray();
   
    Window window = MainController.getInstance().getWindow();
    HistoryArray history = window.getHistory();
   
    String queryText =   "SELECT DISTINCT ?actor ?title WHERE { " +
                "?film rdf:type <" + uri + "> . " +
                "?film dbpedia-owl:starring ?actor . " +
                "?actor h2mdb:name ?title . " +
              "} ";
    ResultSet resultSet = OntologyQueryer.resultQuery(queryText);
    while(resultSet.hasNext()) {
      QuerySolution solution = resultSet.next();
      results.add(new Actor(solution.get("actor").toString(), solution.get("title").toString().replace("@en", "")));
    }
   
    Collections.sort(results, new SearchableComparator());
    history.add(new SearchResultView(window.getPanelCount(), new SearchController(), results));
  }
View Full Code Here

public class FilmDecadeController extends DecadeController {
  @Override
  public void decadeSelected(String uri) {
    SearchableObjectArray results = new SearchableObjectArray();
   
    Window window = MainController.getInstance().getWindow();
    HistoryArray history = window.getHistory();
   
    String queryText =   "SELECT ?uri ?title WHERE { " +
                "?uri rdf:type <" + uri + "> . " +
                "?uri h2mdb:name ?title . " +
              "} ";
    ResultSet resultSet = OntologyQueryer.resultQuery(queryText);
    while(resultSet.hasNext()) {
      QuerySolution solution = resultSet.next();
      results.add(new Movie(solution.get("uri").toString(), solution.get("title").toString().replace("@en", "")));
    }
   
    Collections.sort(results, new SearchableComparator());
    history.add(new SearchResultView(window.getPanelCount(), new SearchController(), results));
  }
View Full Code Here

      QuerySolution result = resultSet.next();
      results.add(new Movie(result.get("uri").toString(), result.get("title").toString().replace("@en", "")));
    }
   
    Collections.sort(results, new SearchableComparator());
    Window window = MainController.getInstance().getWindow();
    window.getHistory().add(new SearchResultView(window.getPanelCount(), new SearchController(), results));
  }
View Full Code Here

      QuerySolution result = resultSet.next();
      results.add(new Actor(result.get("uri").toString(), result.get("title").toString().replace("@en", "")));
    }
   
    Collections.sort(results, new SearchableComparator());
    Window window = MainController.getInstance().getWindow();
    window.getHistory().add(new SearchResultView(window.getPanelCount(), new SearchController(), results));
  }
View Full Code Here

 
  }
 
   
  private void initializeWindow() {
    window = new Window();
    window.showFrame();
   
    mainMenu = new MainMenu(playerNames,colors);
    window.setFixedSize(mainMenu,GAME_BOARD_WIDTH,GAME_BOARD_HEIGHT-5);
    window.addToMainPanel(mainMenu);
View Full Code Here

TOP

Related Classes of view.Window

Copyright © 2018 www.massapicom. 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.