A Swing component that renders a HTML block, given
by a DOM root or an internal element, typically a DIV.
This component cannot render FRAMESETs.
copy
public boolean copy()
doLayout
public void doLayout()
finalize
public void finalize()
throws Throwable
getFirstLineHeight
public int getFirstLineHeight()
getPreferredSize
public Dimension getPreferredSize()
If the preferred size has been set with
setPreferredSize(Dimension)
,
then that size is returned. Otherwise a preferred size is calculated by
rendering the HTML DOM, provided one is available and a preferred width other
than
-1
has been set with
setPreferredWidth(int)
.
An arbitrary preferred size is returned in other scenarios.
getRootNode
public NodeImpl getRootNode()
getSelectionNode
public org.w3c.dom.Node getSelectionNode()
getSelectionText
public String getSelectionText()
hasSelection
public boolean hasSelection()
isSelectionAvailable
public boolean isSelectionAvailable()
lostOwnership
public void lostOwnership(Clipboard arg0,
Transferable arg1)
paint
public void paint(Graphics g)
paintChildren
protected void paintChildren(Graphics g)
repaint
public void repaint(ModelNode modelNode)
Implementation of UINode.repaint().
revalidatePanel
protected void revalidatePanel()
setDefaultPaddingInsets
public void setDefaultPaddingInsets(Insets insets)
setPreferredWidth
public void setPreferredWidth(int width)
Allows
getPreferredSize()
to render the HTML block
in order to determine the preferred size of this component.
Note that
getPreferredSize()
is a potentially time-consuming
operation if the preferred width is set.
width
- The preferred blocked width. Use -1
to unset.
setRootNode
public void setRootNode(NodeImpl node)
Sets the root node to render. This method should
be invoked in the GUI dispatch thread.
- setRootNode in interface NodeRenderer
setRootNode
public void setRootNode(NodeImpl node,
boolean setContainer)
setContainer is unused.
validateAll
protected void validateAll()