org.xhtmlrenderer.simple.extend
Class NoReplacedElementFactory

java.lang.Object
  extended by org.xhtmlrenderer.simple.extend.NoReplacedElementFactory
All Implemented Interfaces:
ReplacedElementFactory

public class NoReplacedElementFactory
extends Object
implements ReplacedElementFactory


Constructor Summary
NoReplacedElementFactory()
           
 
Method Summary
 ReplacedElement createReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight)
          NOTE: Only block equivalent elements can be replaced.
 void remove(Element e)
          Removes any reference to Element e.
 void reset()
          Instructs the ReplacedElementFactory to discard any cached data (typically because a new page is about to be loaded).
 void setFormSubmissionListener(FormSubmissionListener listener)
          Identifies the FSL which will be used for callbacks when a form submit action is executed; you can use a DefaultFormSubmissionListener if you don't want any action to be taken.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoReplacedElementFactory

public NoReplacedElementFactory()
Method Detail

createReplacedElement

public ReplacedElement createReplacedElement(LayoutContext c,
                                             BlockBox box,
                                             UserAgentCallback uac,
                                             int cssWidth,
                                             int cssHeight)
Description copied from interface: ReplacedElementFactory
NOTE: Only block equivalent elements can be replaced.

Specified by:
createReplacedElement in interface ReplacedElementFactory
cssWidth - The CSS width of the element in dots (or -1 if width is auto)
cssHeight - The CSS height of the element in dots (or -1 if the height should be treated as auto)
Returns:
The ReplacedElement or null if no ReplacedElement applies

remove

public void remove(Element e)
Description copied from interface: ReplacedElementFactory
Removes any reference to Element e.

Specified by:
remove in interface ReplacedElementFactory

setFormSubmissionListener

public void setFormSubmissionListener(FormSubmissionListener listener)
Description copied from interface: ReplacedElementFactory
Identifies the FSL which will be used for callbacks when a form submit action is executed; you can use a DefaultFormSubmissionListener if you don't want any action to be taken.

Specified by:
setFormSubmissionListener in interface ReplacedElementFactory
Parameters:
listener - the listener instance to receive callbacks on form submission.

reset

public void reset()
Description copied from interface: ReplacedElementFactory
Instructs the ReplacedElementFactory to discard any cached data (typically because a new page is about to be loaded).

Specified by:
reset in interface ReplacedElementFactory


Copyright © 2013. All Rights Reserved.