|
eswing b2007102101 |
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.phosphoresce.commons.eswing.event.LineLimitationDocumentListener
ドキュメントオブジェクトにおいて行数制限を設けるリスナークラス
ユーザーは当クラスをDocumentオブジェクトリスナーとして追加することで、
指定された行数の制限をDocumentオブジェクトに対して設けることが可能となります。
但し、行数制限に対して0以下の値が設定されている場合はリスナーは処理を行いません。
コンストラクタの概要 | |
LineLimitationDocumentListener()
コンストラクタ |
|
LineLimitationDocumentListener(int limit)
コンストラクタ |
メソッドの概要 | |
void |
changedUpdate(javax.swing.event.DocumentEvent e)
属性または属性セットが変更されたことを通知します。 |
int |
getLimit()
制限行数を取得します。 |
void |
insertUpdate(javax.swing.event.DocumentEvent e)
ドキュメントへの挿入があったことを通知します。 |
void |
removeUpdate(javax.swing.event.DocumentEvent e)
ドキュメントの一部が削除されたことを通知します。 |
void |
setLimit(int limit)
制限行数を設定します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public LineLimitationDocumentListener()
public LineLimitationDocumentListener(int limit)
limit
- 制限行数メソッドの詳細 |
public int getLimit()
public void setLimit(int limit)
limit
- 制限行数public void insertUpdate(javax.swing.event.DocumentEvent e)
javax.swing.event.DocumentListener
内の insertUpdate
e
- DocumentEventオブジェクトDocumentListener.insertUpdate(javax.swing.event.DocumentEvent)
public void changedUpdate(javax.swing.event.DocumentEvent e)
javax.swing.event.DocumentListener
内の changedUpdate
e
- DocumentEventオブジェクトDocumentListener.changedUpdate(javax.swing.event.DocumentEvent)
public void removeUpdate(javax.swing.event.DocumentEvent e)
javax.swing.event.DocumentListener
内の removeUpdate
e
- DocumentEventオブジェクトDocumentListener.removeUpdate(javax.swing.event.DocumentEvent)
|
eswing b2007102101 |
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |