com.jgoodies.uifextras.util
Class HTMLUtils

java.lang.Object
  extended by com.jgoodies.uifextras.util.HTMLUtils

public final class HTMLUtils
extends Object

Consists only of static convenience methods for HTML operations.

Since:
1.4
Version:
$Revision: 1.4 $
Author:
Karsten Lentzsch

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

addDefaultStyleSheet

public static void addDefaultStyleSheet(JEditorPane editorPane)
Adds the default style sheet to the editor pane's document. That default style sheet sets the font to a body text font requested from the look&feel, the tree font for Aqua, the label font otherwise.

Parameters:
editorPane - the editor pane to be modified
Throws:
NullPointerException - if editorPane is null

addDefaultStyleSheet

public 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.

Parameters:
editorPane - the editor pane to be modified
textFont - the font used to set the name and size in the style
Throws:
NullPointerException - if editorPane is null

addStyleSheet

public static void addStyleSheet(JEditorPane editorPane,
                                 StyleSheet newStyleSheet)
Adds the given style sheet to the editor pane's document.

Parameters:
editorPane - the editor pane to be modified
newStyleSheet - the style sheet to set
Throws:
NullPointerException - if editorPane is null


Copyright © 2000-2008 JGoodies Karsten Lentzsch. All Rights Reserved.