|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.uifextras.util.HTMLUtils
public final class HTMLUtils
Consists only of static convenience methods for HTML operations.
Method Summary | |
---|---|
static void |
addDefaultStyleSheet(JEditorPane editorPane)
Adds the default style sheet to the editor pane's document. |
static void |
addDefaultStyleSheet(JEditorPane editorPane,
Font textFont)
Adds a default style sheet to the editor pane's document that uses the given font as text font. |
static void |
addStyleSheet(JEditorPane editorPane,
StyleSheet newStyleSheet)
Adds the given style sheet to the editor pane's document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void addDefaultStyleSheet(JEditorPane editorPane)
editorPane
- the editor pane to be modified
NullPointerException
- if editorPane is nullpublic static void addDefaultStyleSheet(JEditorPane editorPane, Font textFont)
editorPane
- the editor pane to be modifiedtextFont
- the font used to set the name and size in the style
NullPointerException
- if editorPane is nullpublic static void addStyleSheet(JEditorPane editorPane, StyleSheet newStyleSheet)
editorPane
- the editor pane to be modifiednewStyleSheet
- the style sheet to set
NullPointerException
- if editorPane is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |