javax.swing.plaf.basic
public class BasicHTML extends Object
Field Summary | |
---|---|
static String | documentBaseKey
The key that is used to store the document base in a JComponent's client
properties. |
static String | propertyKey
The key that is used to store a HTML view in a JComponent's client
properties. |
Constructor Summary | |
---|---|
BasicHTML()
Creates a new instance of BasicHTML. |
Method Summary | |
---|---|
static View | createHTMLView(JComponent c, String html)
Creates a {@link View} instance that can be used by the component
c to render the HTML string html .
|
static boolean | isHTMLString(String s)
Returns true if s is HTML, false
otherwise.
|
static void | updateRenderer(JComponent c, String text)
Stores a HTML renderer in c 's client property if
text is HTML, otherwise it clears the corresponding client
property. |
c
to render the HTML string html
.
Parameters: c the component that needs to render the HTML string html the HTML string to be rendered
Returns: a view that can render the HTML string
true
if s
is HTML, false
otherwise.
Parameters: s the string to test
Returns: true
if s
is HTML, false
otherwise
c
's client property if
text
is HTML, otherwise it clears the corresponding client
property. This is useful for {@link javax.swing.plaf.ComponentUI}
implementations that are shared between it's components.
Parameters: c the component to update the renderer for text the string to be rendered