Package com.data2semantics.yasgui.shared.autocompletions

Examples of com.data2semantics.yasgui.shared.autocompletions.FetchType


        response.sendError(HttpServletResponse.SC_FORBIDDEN, "You should be logged in before submitting completions");
        return;
      }
     
     
      FetchType type = getTypeFromJson(jsonObj);
      String endpoint = getEndpointFromJson(jsonObj);
      JSONArray completions = jsonObj.getJSONArray(AutocompleteKeys.REQUEST_COMPLETIONS);
     
      //does endpoint already exist as a public endpoint?? If so, ignore..
      try {
View Full Code Here


      //This way we can use the same canvas for every cell, and still change the click handler
      if (rollOverCanvasClickHandler != null) rollOverCanvasClickHandler.removeHandler();
      rollOverCanvasClickHandler = rollOverCanvas.getMembers()[0].addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
          final String endpoint = rollOverRecord.getAttribute(AutocompletionConfigCols.ENDPOINT.getKey());
          final FetchType type = Util.stringToFetchType(rollOverRecord.getAttribute(AutocompletionConfigCols.TYPE.getKey()));
          final FetchMethod method = Util.stringToFetchMethod(getFieldName(colNum));
          new GwtCallbackWrapper<Void>(view) {
            public void onCall(AsyncCallback<Void> callback) {
              view.getRemoteService().clearPrivateCompletions(type, method, endpoint, callback);
            }
View Full Code Here

  }

 
 
  private JSONObject getJson(HttpServletRequest request, HttpServletResponse response) throws JSONException, ClassNotFoundException, FileNotFoundException, SQLException, IOException, ParseException {
    FetchType type = getTypeInRequest(request);
    FetchMethod method = getMethodInRequest(request);
    String endpoint = request.getParameter(AutocompleteKeys.REQUEST_ENDPOINT); //can be null, in that case retrieve both methods
    String partialCompletion = request.getParameter(AutocompleteKeys.REQUEST_QUERY); //can be null, in that case retrieve both methods
    int maxResults = Integer.parseInt(request.getParameter(AutocompleteKeys.REQUEST_MAX_RESULTS));
   
View Full Code Here

TOP

Related Classes of com.data2semantics.yasgui.shared.autocompletions.FetchType

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.