public class BasicHTML extends Object
ComponentUI
implementations.| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
BasicHTML()
Creates a new instance of BasicHTML.
|
| Modifier and Type | Method and Description |
|---|---|
static View |
createHTMLView(JComponent c,
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. |
public static final String propertyKey
public static final String documentBaseKey
public BasicHTML()
public static View createHTMLView(JComponent c, String html)
c - the component that needs to render the HTML stringhtml - the HTML string to be renderedpublic static boolean isHTMLString(String s)
true if s is HTML, false
otherwise.s - the string to testtrue if s is HTML, false
otherwisepublic static void updateRenderer(JComponent c, String text)
c's client property if
text is HTML, otherwise it clears the corresponding client
property. This is useful for ComponentUI
implementations that are shared between it's components.c - the component to update the renderer fortext - the string to be rendered