|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicTextAreaUI
public class BasicTextAreaUI
プレーンテキストエディタの Look & Feel を提供します。この実装では、デフォルトの UI が単純なビューファクトリとして動作するように拡張されます。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。JDK バージョン 1.4 以降、すべての JavaBeans™ の長期間の運用サポートは、java.beans パッケージに追加されています。詳細は、XMLEncoder を参照してください。
| 入れ子のクラスの概要 |
|---|
| クラス javax.swing.plaf.basic.BasicTextUI から継承された入れ子のクラス/インタフェース |
|---|
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter |
| コンストラクタの概要 | |
|---|---|
BasicTextAreaUI()
新しい BasicTextAreaUI オブジェクトを構築します。 |
|
| メソッドの概要 | |
|---|---|
View |
create(Element elem)
要素のビューを作成します。 |
static ComponentUI |
createUI(JComponent ta)
JTextArea の UI を作成します。 |
Dimension |
getMinimumSize(JComponent c)
このメソッドは、キャレット幅を考慮するためにオーバーライドされます。 |
Dimension |
getPreferredSize(JComponent c)
このメソッドは、キャレット幅を考慮するためにオーバーライドされます。 |
protected String |
getPropertyPrefix()
UIManager を使ってプロパティを参照するためのキーとして使われる名前を取得します。 |
protected void |
installDefaults()
フォント、フォアグラウンド、バックグラウンド、キャレットの色、選択の色、選択されたテキストの色、無効になったテキストの色、ボーダの色などのコンポーネントプロパティを初期化します。 |
protected void |
propertyChange(PropertyChangeEvent evt)
このメソッドは、関連する JTextComponent のバウンドプロパティが変更されたときに呼び出されます。 |
| クラス javax.swing.plaf.ComponentUI から継承されたメソッド |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public BasicTextAreaUI()
| メソッドの詳細 |
|---|
public static ComponentUI createUI(JComponent ta)
ta - テキスト領域
protected String getPropertyPrefix()
BasicTextUI 内の getPropertyPrefixprotected void installDefaults()
BasicTextUI の記述:
BasicTextUI 内の installDefaultsBasicTextUI.uninstallDefaults(),
BasicTextUI.installUI(javax.swing.JComponent)protected void propertyChange(PropertyChangeEvent evt)
BasicTextUI 内の propertyChangeevt - プロパティ変更イベントpublic Dimension getPreferredSize(JComponent c)
BasicTextUI 内の getPreferredSizec - エディタコンポーネント
IllegalArgumentException - 渡された値が無効な場合JComponent.getPreferredSize(),
LayoutManager.preferredLayoutSize(java.awt.Container)public Dimension getMinimumSize(JComponent c)
BasicTextUI 内の getMinimumSizec - エディタコンポーネント
IllegalArgumentException - 渡された値が無効な場合JComponent.getMinimumSize(),
LayoutManager.minimumLayoutSize(java.awt.Container),
ComponentUI.getPreferredSize(javax.swing.JComponent)public View create(Element elem)
ViewFactory 内の createBasicTextUI 内の createelem - 要素
View
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。