Examples of JSLiteral


Examples of com.google.gwt.dev.js.ast.JsLiteral

    JClassType type = jjsmap.nameToType(name);
    if (type != null) {
      return new TypedProgramReference("type", type.getName());
    }

    JsLiteral literal = internedLiteralByVariableName.get(name);
    if (literal instanceof JsStringLiteral) {
      return new TypedProgramReference("string", ((JsStringLiteral) literal).getValue());
    }

    return new TypedProgramReference("var", name.getShortIdent());
View Full Code Here

Examples of com.google.gwt.dev.js.ast.JsLiteral

    JClassType type = jjsmap.nameToType(name);
    if (type != null) {
      return new TypedProgramReference("type", type.getName());
    }

    JsLiteral literal = internedLiteralByVariableName.get(name);
    if (literal instanceof JsStringLiteral) {
      return new TypedProgramReference("string", ((JsStringLiteral) literal).getValue());
    }

    return new TypedProgramReference("var", name.getShortIdent());
View Full Code Here

Examples of org.ajax4jsf.javascript.JSLiteral

        @ArquillianResource
        private JavaScriptService jsService;

        @BeforePhase(RENDER_RESPONSE)
        public void add_script_using_JavaScriptService() {
            jsService.addScript(facesContext, new JSLiteral("document.title += ' javascriptServiceInProgress';"));
        }
View Full Code Here

Examples of org.ajax4jsf.javascript.JSLiteral

        Map params = getParameters(context,component);
        if(!params.isEmpty()){
          parameters.putAll(params);
        }
       
        parameters.put(component.getClientId(context), new JSLiteral("event.memo.page"));
       
        function.addParameter(eventOptions);
        StringBuffer buffer = new StringBuffer();
        function.appendScript(buffer);
        buffer.append("; return false;");
View Full Code Here

Examples of org.ajax4jsf.javascript.JSLiteral

        .append(mode).append("',") // mode
        .append(minValue).append(",") // min value
        .append(maxValue).append(","); // max value
    script.append(getContext(component)); // context
    script.append(",");
    script.append(markup != null ? new JSLiteral(markup.toString())
        : JSReference.NULL); // markup
    script.append(",");
    script.append(ScriptUtils.toScript(buildAjaxOptions(clientId, // options
        progressBar, context)));
    String progressVar = (String) component.getAttributes().get(
View Full Code Here

Examples of org.ajax4jsf.javascript.JSLiteral

   * @return
   */
  private JSLiteral getContext(UIComponent component) {
    StringBuffer buffer = new StringBuffer();
    String parameters = getParameters(component);
    JSLiteral literal = null;
    if (parameters != null) {
      buffer.append("{").append(parameters).append("}");
      literal = new JSLiteral(buffer.toString());
    } else {
      literal = new JSLiteral("null");
    }
    return literal;
  }
View Full Code Here

Examples of org.ajax4jsf.javascript.JSLiteral

        context.setResponseWriter(writer);
      }
      result = customWriter.getContent();
    }

    return (result != null) ? new JSLiteral(result.toString())
        : JSReference.NULL;
  }
View Full Code Here

Examples of org.ajax4jsf.javascript.JSLiteral

        context.setResponseWriter(writer);
      }
      result = customWriter.getContent();
    }

    return (result != null) ? new JSLiteral(result.toString())
        : null;
  }
View Full Code Here

Examples of org.ajax4jsf.javascript.JSLiteral

    public void writeFacetMarkup(FacesContext context, UIComponent component) throws IOException {
        Map<String, JSLiteral> jsonMap = new HashMap<String, JSLiteral>();
        if (component.getChildCount() != 0) {
            String markupScriptBody = getMarkupScriptBody(context, component, true);
      jsonMap.put("dayList" + MARKUP_PARAMETER_SUFFIX, new JSLiteral(markupScriptBody));
        }

        addFacetMarkupScriptBody(context, component, jsonMap, "optionalHeader");
        addFacetMarkupScriptBody(context, component, jsonMap, "optionalFooter");
View Full Code Here

Examples of org.ajax4jsf.javascript.JSLiteral

    }

    private void addFacetMarkupScriptBody(FacesContext context, UIComponent component, Map<String, JSLiteral> jsonMap, String facetName) throws IOException {
        String res = getOptionalFacetMarkupScriptBody(context, component, facetName);
        if (res != null) {
            jsonMap.put(facetName + MARKUP_PARAMETER_SUFFIX, new JSLiteral(res));
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.