Package com.data2semantics.yasgui.shared.autocompletions

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


      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));
   
    return AutocompleteResponseCreator.create(request, response, getServletContext().getRealPath("/"), type, method, endpoint, partialCompletion, maxResults);
View Full Code Here

TOP

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

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.