eswing
b2007102501

org.phosphoresce.commons.eswing.event
クラス LineLimitationDocumentListener

java.lang.Object
  拡張org.phosphoresce.commons.eswing.event.LineLimitationDocumentListener
すべての実装インタフェース:
javax.swing.event.DocumentListener, java.util.EventListener

public class LineLimitationDocumentListener
extends java.lang.Object
implements javax.swing.event.DocumentListener

ドキュメントオブジェクトにおいて行数制限を設けるリスナークラス

ユーザーは当クラスをDocumentオブジェクトリスナーとして追加することで、 指定された行数の制限をDocumentオブジェクトに対して設けることが可能となります。
但し、行数制限に対して0以下の値が設定されている場合はリスナーは処理を行いません。

作成者:
Kitagawa

コンストラクタの概要
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
 

コンストラクタの詳細

LineLimitationDocumentListener

public LineLimitationDocumentListener()
コンストラクタ


LineLimitationDocumentListener

public LineLimitationDocumentListener(int limit)
コンストラクタ

パラメータ:
limit - 制限行数
メソッドの詳細

getLimit

public int getLimit()
制限行数を取得します。

戻り値:
制限行数

setLimit

public void setLimit(int limit)
制限行数を設定します。

パラメータ:
limit - 制限行数

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent e)
ドキュメントへの挿入があったことを通知します。

定義:
インタフェース javax.swing.event.DocumentListener 内の insertUpdate
パラメータ:
e - DocumentEventオブジェクト
関連項目:
DocumentListener.insertUpdate(javax.swing.event.DocumentEvent)

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent e)
属性または属性セットが変更されたことを通知します。

定義:
インタフェース javax.swing.event.DocumentListener 内の changedUpdate
パラメータ:
e - DocumentEventオブジェクト
関連項目:
DocumentListener.changedUpdate(javax.swing.event.DocumentEvent)

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent e)
ドキュメントの一部が削除されたことを通知します。

定義:
インタフェース javax.swing.event.DocumentListener 内の removeUpdate
パラメータ:
e - DocumentEventオブジェクト
関連項目:
DocumentListener.removeUpdate(javax.swing.event.DocumentEvent)

eswing
b2007102501