public class AbstractDocument.DefaultDocumentEvent extends CompoundEdit implements DocumentEvent
DocumentEvent.ElementChange, DocumentEvent.EventTypeeditsRedoName, UndoName| コンストラクタと説明 |
|---|
AbstractDocument.DefaultDocumentEvent(int offs, int len, DocumentEvent.EventType type)
変更レコードを作成します。
|
| 修飾子と型 | メソッドと説明 |
|---|---|
boolean |
addEdit(UndoableEdit anEdit)
ドキュメント編集を追加します。
|
DocumentEvent.ElementChange |
getChange(Element elem)
要素の変更を取得します。
|
Document |
getDocument()
変更イベントの基となったドキュメントを返します。
|
int |
getLength()
変更の長さを返します。
|
int |
getOffset()
変更の始点のドキュメント内でのオフセットを返します。
|
String |
getPresentationName()
変更ログなどで使われる、この編集結果の、判読可能なローカライズされた記述を提供します。
|
String |
getRedoPresentationName()
次のような、編集結果の再実行可能な形式の判読可能なローカライズ済みの説明を提供します。
|
DocumentEvent.EventType |
getType()
イベントの型を返します。
|
String |
getUndoPresentationName()
次のような、この編集結果の取り消し可能な形式の判読可能なローカライズ済みの説明を提供します。
|
boolean |
isSignificant()
DefaultDocument イベントは重要です。
|
void |
redo()
変更をやり直します。
|
String |
toString()
変更イベントの説明文字列を返します。
|
void |
undo()
変更を元に戻します。
|
canRedo, canUndo, die, end, isInProgress, lastEditreplaceEditpublic AbstractDocument.DefaultDocumentEvent(int offs,
int len,
DocumentEvent.EventType type)
offs - 変更ドキュメントへのオフセット >= 0len - 変更の長さ >= 0type - イベントの型 (DocumentEvent.EventType)public String toString()
toString、クラス: CompoundEditpublic boolean addEdit(UndoableEdit anEdit)
addEdit、インタフェース: UndoableEditaddEdit、クラス: CompoundEditanEdit - ドキュメント編集レコードUndoableEdit.addEdit(javax.swing.undo.UndoableEdit)public void redo()
throws CannotRedoException
redo、インタフェース: UndoableEditredo、クラス: CompoundEditCannotRedoException - 変更のやり直しができない場合AbstractUndoableEdit.canRedo()public void undo()
throws CannotUndoException
undo、インタフェース: UndoableEditundo、クラス: CompoundEditCannotUndoException - 変更を元に戻せない場合AbstractUndoableEdit.canUndo()public boolean isSignificant()
isSignificant、インタフェース: UndoableEditisSignificant、クラス: CompoundEditUndoableEdit.isSignificant()public String getPresentationName()
getPresentationName、インタフェース: UndoableEditgetPresentationName、クラス: CompoundEditAbstractUndoableEdit.getUndoPresentationName(), AbstractUndoableEdit.getRedoPresentationName()public String getUndoPresentationName()
getUndoPresentationName、インタフェース: UndoableEditgetUndoPresentationName、クラス: CompoundEditAbstractUndoableEdit.getPresentationName()public String getRedoPresentationName()
getRedoPresentationName、インタフェース: UndoableEditgetRedoPresentationName、クラス: CompoundEditAbstractUndoableEdit.getPresentationName()public DocumentEvent.EventType getType()
getType、インタフェース: DocumentEventDocumentEvent.getType()public int getOffset()
getOffset、インタフェース: DocumentEventDocumentEvent.getOffset()public int getLength()
getLength、インタフェース: DocumentEventDocumentEvent.getLength()public Document getDocument()
getDocument、インタフェース: DocumentEventDocumentEvent.getDocument()public DocumentEvent.ElementChange getChange(Element elem)
getChange、インタフェース: DocumentEventelem - 要素 バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.