|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.plaf.basic.BasicHTML
public class BasicHTML
Provides support for HTML rendering to ComponentUI
implementations.
| 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 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String propertyKey
public static final String documentBaseKey
| Constructor Detail |
|---|
public BasicHTML()
| Method Detail |
|---|
public static View createHTMLView(JComponent c,
String html)
View instance that can be used by the component
c to render the HTML string html.
c - the component that needs to render the HTML stringhtml - the HTML string to be rendered
public static boolean isHTMLString(String s)
true if s is HTML, false
otherwise.
s - the string to test
true if s is HTML, false
otherwise
public 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||