public class BasicTextPaneUI extends BasicEditorPaneUI
警告:此类的序列化对象与将来的Swing版本不兼容。 当前的序列化支持适用于运行相同版本的Swing的应用程序之间的短期存储或RMI。 从1.4版本开始,所有JavaBeans的长期存储支持已被添加到java.beans
软件包中。 请参阅XMLEncoder
。
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
Constructor and Description |
---|
BasicTextPaneUI()
创建一个新的BasicTextPaneUI。
|
Modifier and Type | Method and Description |
---|---|
static ComponentUI |
createUI(JComponent c)
为JTextPane创建一个UI。
|
protected String |
getPropertyPrefix()
获取通过UIManager查找属性的键。
|
void |
installUI(JComponent c)
安装组件的UI。
|
protected void |
propertyChange(PropertyChangeEvent evt)
当在关联的JTextComponent上更改bound属性时,将调用此方法。
|
getEditorKit, uninstallUI
create, create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installDefaults, installKeyboardActions, installListeners, modelChanged, modelToView, modelToView, paint, paintBackground, paintSafely, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, update, viewToModel, viewToModel
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
public static ComponentUI createUI(JComponent c)
c
- JTextPane对象
protected String getPropertyPrefix()
getPropertyPrefix
在
BasicEditorPaneUI
类
public void installUI(JComponent c)
BasicEditorPaneUI
null
或null
的实例时才会设置 。 installUI
在
BasicEditorPaneUI
c
- 编辑器组件
ComponentUI.installUI(javax.swing.JComponent)
protected void propertyChange(PropertyChangeEvent evt)
propertyChange
在
BasicEditorPaneUI
evt
- 物业变更事件
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.