站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

HtmlRenderer (NetBeans APIs) - NetBeans API Javadoc 4.1.0


org.openide.awt
Class HtmlRenderer

java.lang.Object
  extended byorg.openide.awt.HtmlRenderer

public final class HtmlRenderer
extends Object

A lightweight html renderer supporting a minimal subset of HTML used for markup purposes only - basic font styles, colors, etc. Also supports named logical colors specified by a preceding ! character for specifying colors that should be looked up in the current look and feel's UIDefaults (e.g. <font color=&!textText&>).

Provides a generic cell renderer implementation which can be used for trees, tables, lists, combo boxes, etc.

If you only need to paint some HTML quickly, use the static methods for painting - renderString, renderPlainString or renderHtml. These methods differ as follows: