Examples of addToBody()


Examples of com.lowagie.text.pdf.PdfWriter.addToBody()

       
        // add the swf file
        byte[] swfData = readSwf();
        PdfFileSpecification swfFile = PdfFileSpecification.fileEmbedded(writer,
            null, "Open Flash Chart", swfData);
        swfRef = writer.addToBody(swfFile);
        existingContexts.put(exporterContext, swfRef);
      }
      else
      {
        swfRef = (PdfIndirectObject) existingContexts.get(exporterContext);
View Full Code Here

Examples of com.lowagie.text.pdf.PdfWriter.addToBody()

      String chartData = (String) element.getParameterValue(PARAMETER_CHART_DATA);
      String vars = "inline_data=" + chartData;
      params.put(new PdfName("FlashVars"), new PdfString(vars));
      instance.put(new PdfName("Params"), params);
      instance.put(new PdfName("Asset"), swfRef.getIndirectReference());
      PdfIndirectObject instanceRef = writer.addToBody(instance);
      instances.add(instanceRef.getIndirectReference());
      configuration.put(new PdfName("Instances"), instances);
     
      PdfIndirectObject configurationRef = writer.addToBody(configuration);
      configurations.add(configurationRef.getIndirectReference());
View Full Code Here

Examples of com.lowagie.text.pdf.PdfWriter.addToBody()

      instance.put(new PdfName("Asset"), swfRef.getIndirectReference());
      PdfIndirectObject instanceRef = writer.addToBody(instance);
      instances.add(instanceRef.getIndirectReference());
      configuration.put(new PdfName("Instances"), instances);
     
      PdfIndirectObject configurationRef = writer.addToBody(configuration);
      configurations.add(configurationRef.getIndirectReference());
      content.put(new PdfName("Configurations"), configurations);
     
      ann.put(new PdfName("RichMediaContent"), content);
     
View Full Code Here

Examples of com.warrows.plugins.TreeSpirit.trees.GreatTree.addToBody()

      return;
    }

    /* On agrandis l'arbre ou on annule */
    if (tree.isAdjacent(item))
      tree.addToBody(item);
    else
      event.setCancelled(true);
  }

  @EventHandler(ignoreCancelled = true)
View Full Code Here

Examples of fit.Parse.addToBody()

    }

    public void exception(Throwable e)
    {
      Parse cell = cells.get(0);
      cell.addToBody("<hr/>" + label(e.toString()));
      cell.addToTag(" class=\"error\"");
    }

    public void right(int col)
    {
View Full Code Here

Examples of org.ajax4jsf.javascript.JSFunctionDefinition.addToBody()

            AjaxFunction ajaxFunction = AjaxRendererUtils.buildAjaxFunction(facesContext, component);
            ajaxFunction.getOptions().setParameter("dragSource", dragSourceId);
            ajaxFunction.getOptions().setParameter(component.getClientId(facesContext), component.getClientId(facesContext));
            ajaxFunction.setSource(new JSReference("event", "target"));
            ajaxFunction.getOptions().setAjaxComponent(component.getClientId(facesContext));
            function.addToBody(ajaxFunction);

            AbstractDropTarget dropTarget = (AbstractDropTarget) component;
            Set<String> acceptedTypes = Sets.asSet(dropTarget.getAcceptedTypes());

            if (acceptedTypes != null) {
View Full Code Here

Examples of org.ajax4jsf.javascript.JSFunctionDefinition.addToBody()

    return statusId;
  }

  public static JSFunctionDefinition buildAjaxOncomplete(String body) {
    JSFunctionDefinition function = new JSFunctionDefinition("request", "event", "data");
    function.addToBody(body);

    return function;
  }
 
  public static JSFunctionDefinition buildAjaxOnBeforeDomUpdate(String body) {
View Full Code Here

Examples of org.ajax4jsf.javascript.JSFunctionDefinition.addToBody()

    return function;
  }
 
  public static JSFunctionDefinition buildAjaxOnBeforeDomUpdate(String body) {
    JSFunctionDefinition function = new JSFunctionDefinition("request", "event", "data");
    function.addToBody(body);

    return function;
  }

  /**
 
View Full Code Here

Examples of org.ajax4jsf.javascript.JSFunctionDefinition.addToBody()

    ResponseWriter writer = context.getResponseWriter();
    Object script = component.getAttributes().get(eventName);
    if (script != null && !script.equals("")) {
      JSFunctionDefinition onEventDefinition = new JSFunctionDefinition();
      onEventDefinition.addParameter("event");
      onEventDefinition.addToBody(script);
      writer.writeText(eventName + ": "
          + onEventDefinition.toScript(), null);
    }else{
      writer.writeText(eventName + ": ''", null);
    }
View Full Code Here

Examples of org.ajax4jsf.javascript.JSFunctionDefinition.addToBody()

   
      if (event.length() != 0) {
        JSFunctionDefinition function = new JSFunctionDefinition();
        function.addParameter("event");
        if(null!=append && append.length()>0){
          function.addToBody(event+append);
        }else{
          function.addToBody(event);
        }
      return  function;
      }
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.