Flying Saucer Project Release ${app.version}

org.xhtmlrenderer.swing
Class SwingReplacedElementFactory

java.lang.Object
  extended by org.xhtmlrenderer.swing.SwingReplacedElementFactory
All Implemented Interfaces:
ReplacedElementFactory

public class SwingReplacedElementFactory
extends java.lang.Object
implements ReplacedElementFactory

A ReplacedElementFactory where Elements are replaced by Swing components.


Constructor Summary
SwingReplacedElementFactory()
           
 
Method Summary
 ReplacedElement createReplacedElement(LayoutContext context, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight)
          NOTE: Only block equivalent elements can be replaced.
 void remove(org.w3c.dom.Element e)
          Removes any reference to Element e.
 void reset()
          Clears out any references to elements or items created by this factory so far.
 void setFormSubmissionListener(FormSubmissionListener fsl)
          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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingReplacedElementFactory

public SwingReplacedElementFactory()
Method Detail

createReplacedElement

public ReplacedElement createReplacedElement(LayoutContext context,
                                             BlockBox box,
                                             UserAgentCallback uac,
                                             int cssWidth,
                                             int cssHeight)
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

reset

public void reset()
Clears out any references to elements or items created by this factory so far.

Specified by:
reset in interface ReplacedElementFactory

remove

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

Specified by:
remove in interface ReplacedElementFactory

setFormSubmissionListener

public void setFormSubmissionListener(FormSubmissionListener fsl)
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:
fsl - the listener instance to receive callbacks on form submission.

Flying Saucer Project Release ${app.version}

Flying Saucer Project Home