public class BasicHTML extends Object
Modifier and Type | Field and Description |
---|---|
static String |
documentBaseKey
存储作为客户端属性的密钥,以指示相对引用的解决的基础。
|
static String |
propertyKey
主要用于HTML渲染时储存的一个组件客户端性能。
|
Constructor and Description |
---|
BasicHTML() |
Modifier and Type | Method and Description |
---|---|
static View |
createHTMLView(JComponent c, String html)
创建的组件串HTML HTML渲染器。
|
static int |
getHTMLBaseline(View view, int w, int h)
返回的HTML渲染器的基线。
|
static boolean |
isHTMLString(String s)
检查给定的字符串是否应该触发HTML渲染逻辑在支持HTML渲染非文本组件。
|
static void |
updateRenderer(JComponent c, String text)
把HTML对于给定的文本到给定的客户端特性使JComponent。
|
public static final String propertyKey
public static final String documentBaseKey
putclientproperty(documentbasekey JComponent,XXX班。getResource(“资源”));
public static View createHTMLView(JComponent c, String html)
public static int getHTMLBaseline(View view, int w, int h)
view
-视图得到基线
w
的宽度得到基线
h
-高度得到基线
IllegalArgumentException
如果宽度或高度小于0
FontMetrics
,
JComponent.getBaseline(int,int)
public static boolean isHTMLString(String s)
public static void updateRenderer(JComponent c, String text)
这种方法是有用的,是静态的(即ComponentUI实现共享)和得到他们的状态完全来自JComponent。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.