Examples of ReplacedElementFactory


Examples of org.xhtmlrenderer.extend.ReplacedElementFactory

      public void warning(SAXParseException e) throws SAXException {
        exception = e;
      }
    };
   
    ReplacedElementFactory ref = new ERPDFReplacedElementFactory(renderer.getOutputDevice());
    renderer.getSharedContext().setReplacedElementFactory(ref);
  }
View Full Code Here

Examples of org.xhtmlrenderer.extend.ReplacedElementFactory

     * @param e
     * @return the form corresponding to element <code>e</code> or
     *         <code>null</code> if none
     */
    public XhtmlForm getForm(Element e) {
        ReplacedElementFactory ref = getSharedContext()
            .getReplacedElementFactory();
        if (ref != null && ref instanceof SWTXhtmlReplacedElementFactory) {
            return ((SWTXhtmlReplacedElementFactory) ref).getForm(e);
        }
        return null;
View Full Code Here

Examples of org.xhtmlrenderer.extend.ReplacedElementFactory

    }

    public ReplacedElement createReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) {
        ReplacedElement re = null;
        for (Iterator it = factoryList.iterator(); it.hasNext();) {
            ReplacedElementFactory  ref =  (ReplacedElementFactory) it.next();
            re = ref.createReplacedElement(c, box, uac, cssWidth, cssHeight);
            if ( re != null) break;
        }
        return re;
    }
View Full Code Here

Examples of org.xhtmlrenderer.extend.ReplacedElementFactory

        this.factoryList.add(ref);
    }

    public void reset() {
        for (Iterator i = this.factoryList.iterator(); i.hasNext(); ) {
            ReplacedElementFactory factory = (ReplacedElementFactory)i.next();
            factory.reset();
        }      
    }
View Full Code Here

Examples of org.xhtmlrenderer.extend.ReplacedElementFactory

        }      
    }

    public void remove(Element e) {
        for (Iterator i = this.factoryList.iterator(); i.hasNext(); ) {
            ReplacedElementFactory factory = (ReplacedElementFactory)i.next();
            factory.remove(e);
        }      
    }
View Full Code Here

Examples of org.xhtmlrenderer.extend.ReplacedElementFactory

    public _ITextRenderer() {
      super();
     
      ITextOutputDevice outputDevice = getOutputDevice();
     
      ReplacedElementFactory replacedElementFactory = new ExtendedITextReplacedElementFactory(outputDevice);
     
      SharedContext sharedContext = getSharedContext();
     
      sharedContext.setReplacedElementFactory(replacedElementFactory);
    }
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.