Package com.data2semantics.yasgui.client.tab

Examples of com.data2semantics.yasgui.client.tab.QueryTab


  public void onQueryError(String tabId, String error) {
    if (view.getElements() != null) {
      view.getElements().onQueryFinish();
    }
    QueryTab tab = (QueryTab)view.getTabs().getTab(tabId);
    onQueryError(error, tab.getTabSettings().getEndpoint(), tab.getTabSettings().getQueryString(), tab.getTabSettings().getQueryArgs());
  }
View Full Code Here


      GoogleAnalytics.trackEvent(new GoogleAnalyticsEvent(endpoint, JsMethods.getUncommentedSparql(queryString), "-1", -1));
    }
    view.getElements().onQueryFinish();
   
    //clear query result
    QueryTab tab = (QueryTab)view.getTabs().getTab(tabId);
    view.getTabs().selectTab(tabId);
    if (tab != null) {
      view.getSelectedTab().getResultContainer().resetResultArea();
    }
   
View Full Code Here

    if (view.getSettings().useGoogleAnalytics()) {
      GoogleAnalytics.trackEvent(new GoogleAnalyticsEvent(endpoint, JsMethods.getUncommentedSparql(queryString), "-1", -1));
    }
   
    //clear query result
    QueryTab tab = (QueryTab)view.getTabs().getTab(tabId);
    view.getTabs().selectTab(tabId);
    if (tab != null) {
      view.getSelectedTab().getResultContainer().resetResultArea();
    }
   
View Full Code Here

    }
    view.checkAndAddEndpointToDs(endpoint);
  }
 
  private void drawResults(String resultString, String contentType) {
    QueryTab tab = (QueryTab)view.getTabs().getTab(tabId);
    view.getTabs().selectTab(tabId);
    if (tab == null) {
      view.getErrorHelper().onError("No tab to draw results in");
    }
    tab.getResultContainer().drawResult(endpoint, queryString, resultString, contentType);
  }
View Full Code Here

      if (newUser) {
        // If we are a new user, just show the results in the same query
        // tab. Otherwise, show in a new query tab
        // to do this, we simple remove the only open tab, and re-open a
        // new one
        QueryTab selectedTab = getSelectedTab();
        if (selectedTab != null) {
          queryTabs.removeTab(selectedTab, false, true);
        }
      }
View Full Code Here

TOP

Related Classes of com.data2semantics.yasgui.client.tab.QueryTab

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.