Package com.jidesoft.spring.richclient.googledemo.events

Examples of com.jidesoft.spring.richclient.googledemo.events.SearchResultsSelectionEvent


   * Listens for search results selection event. These events should occur on the EDT
   * but I check to make sure.
   */
  public void onApplicationEvent(ApplicationEvent event) {
    if(event instanceof SearchResultsSelectionEvent){
      final SearchResultsSelectionEvent selectionEvent = (SearchResultsSelectionEvent)event;
      if(SwingUtilities.isEventDispatchThread()){
        updateView(selectionEvent);
      }
      else{
        SwingUtilities.invokeLater(new Runnable(){
View Full Code Here


        if(tree.getSelectionCount() == 1){
          Object selected =
            ((DefaultMutableTreeNode)e.getPath().getLastPathComponent()).getUserObject();
          if(selected instanceof GoogleSearchResultElement){
            GoogleSearchResultElement element = (GoogleSearchResultElement)selected;
            getApplicationContext().publishEvent(new SearchResultsSelectionEvent(this,
                element));
          }
        }
  }
View Full Code Here

TOP

Related Classes of com.jidesoft.spring.richclient.googledemo.events.SearchResultsSelectionEvent

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.