Package org.xhtmlrenderer.swt.simple
Class SWTXhtmlReplacedElementFactory
java.lang.Object
org.xhtmlrenderer.swt.SWTReplacedElementFactory
org.xhtmlrenderer.swt.simple.SWTXhtmlReplacedElementFactory
- All Implemented Interfaces:
ReplacedElementFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Element,
ReplacedElement> private final BasicRenderer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateReplacedElement
(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) NOTE: Only block equivalent elements can be replaced.protected Element
getParentForm
(Element e, LayoutContext context) void
Removes any reference toElement
e
.void
reset()
Instructs theReplacedElementFactory
to discard any cached data (typically because a new page is about to be loaded).Methods inherited from class org.xhtmlrenderer.swt.SWTReplacedElementFactory
clean, lookupImageReplacedElement, replaceImage, setFormSubmissionListener, storeImageReplacedElement
-
Field Details
-
_parent
-
_forms
-
_controls
-
-
Constructor Details
-
SWTXhtmlReplacedElementFactory
-
-
Method Details
-
getForm
- Returns:
- the form corresponding to element
e
ornull
if none
-
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 interfaceReplacedElementFactory
- Overrides:
createReplacedElement
in classSWTReplacedElementFactory
cssWidth
- The CSS width of the element in dots (or-1
if width isauto
)cssHeight
- The CSS height of the element in dots (or-1
if the height should be treated asauto
)- Returns:
- The
ReplacedElement
ornull
if noReplacedElement
applies
-
remove
Description copied from interface:ReplacedElementFactory
Removes any reference toElement
e
.- Specified by:
remove
in interfaceReplacedElementFactory
- Overrides:
remove
in classSWTReplacedElementFactory
-
reset
public void reset()Description copied from interface:ReplacedElementFactory
Instructs theReplacedElementFactory
to discard any cached data (typically because a new page is about to be loaded).- Specified by:
reset
in interfaceReplacedElementFactory
- Overrides:
reset
in classSWTReplacedElementFactory
-
getParentForm
-