|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
javax.swing.text.AbstractDocument.DefaultDocumentEvent
org.netbeans.editor.BaseDocumentEvent
public class BaseDocumentEvent
Document implementation
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.swing.event.DocumentEvent |
|---|
DocumentEvent.ElementChange, DocumentEvent.EventType |
| Field Summary |
|---|
| Fields inherited from class javax.swing.undo.CompoundEdit |
|---|
edits |
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
RedoName, UndoName |
| Constructor Summary | |
|---|---|
BaseDocumentEvent(BaseDocument doc,
int offset,
int length,
DocumentEvent.EventType type)
Construct document event instance. |
|
| Method Summary | |
|---|---|
boolean |
addEdit(UndoableEdit anEdit)
|
boolean |
canMerge(BaseDocumentEvent evt)
Returns true if this event can be merged by the previous one (given as parameter) in the undo-manager queue. |
boolean |
canRedo()
Returns false if isInProgress or if super does. |
boolean |
canUndo()
|
void |
die()
|
void |
end()
|
protected UndoableEdit |
findEdit(Class editClass)
|
DocumentEvent.ElementChange |
getChange(Element elem)
|
char[] |
getChars()
Deprecated. |
String |
getDrawLayerName()
|
int |
getDrawLayerVisibility()
|
int |
getLFCount()
Get the count of '\n' (line-feeds) contained in the inserted/removed text. |
int |
getLine()
Deprecated. |
String |
getRedoPresentationName()
|
int |
getSyntaxUpdateOffset()
Get the offset at which the updating of the syntax stopped so there are no more changes in the tokens after this point. |
String |
getText()
Get the text that was inserted/removed or null for change event. |
String |
getUndoPresentationName()
|
boolean |
isInProgress()
|
boolean |
isInRedo()
Whether this event is being fired because it's being redone. |
boolean |
isInUndo()
Whether this event is being fired because it's being undone. |
void |
redo()
|
boolean |
replaceEdit(UndoableEdit anEdit)
Try to determine whether this event can replace the old one. |
String |
toString()
|
void |
undo()
|
| Methods inherited from class javax.swing.text.AbstractDocument.DefaultDocumentEvent |
|---|
getDocument, getLength, getOffset, getPresentationName, getType, isSignificant |
| Methods inherited from class javax.swing.undo.CompoundEdit |
|---|
lastEdit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BaseDocumentEvent(BaseDocument doc, int offset, int length, DocumentEvent.EventType type)
offset - position in the document where the insert/remove/change
occuredlength - number of the characters affected by the eventtype - type of the event - INSERT/REMOVE/CHANGE| Method Detail |
|---|
protected UndoableEdit findEdit(Class editClass)
public char[] getChars()
public String getText()
public int getLine()
public int getLFCount()
public int getSyntaxUpdateOffset()
public String getDrawLayerName()
public int getDrawLayerVisibility()
public boolean isInUndo()
public boolean isInRedo()
public void undo()
throws CannotUndoException
undo in interface UndoableEditundo in class AbstractDocument.DefaultDocumentEventCannotUndoException
public void redo()
throws CannotRedoException
redo in interface UndoableEditredo in class AbstractDocument.DefaultDocumentEventCannotRedoExceptionpublic boolean addEdit(UndoableEdit anEdit)
addEdit in interface UndoableEditaddEdit in class AbstractDocument.DefaultDocumentEventpublic boolean canUndo()
canUndo in interface UndoableEditcanUndo in class CompoundEditpublic boolean canRedo()
canRedo in interface UndoableEditcanRedo in class CompoundEditisInProgress()public boolean isInProgress()
isInProgress in class CompoundEditpublic String getUndoPresentationName()
getUndoPresentationName in interface UndoableEditgetUndoPresentationName in class AbstractDocument.DefaultDocumentEventpublic String getRedoPresentationName()
getRedoPresentationName in interface UndoableEditgetRedoPresentationName in class AbstractDocument.DefaultDocumentEventpublic boolean canMerge(BaseDocumentEvent evt)
public boolean replaceEdit(UndoableEdit anEdit)
replaceEdit in interface UndoableEditreplaceEdit in class AbstractUndoableEditpublic void die()
die in interface UndoableEditdie in class CompoundEditpublic void end()
end in class CompoundEditpublic DocumentEvent.ElementChange getChange(Element elem)
getChange in interface DocumentEventgetChange in class AbstractDocument.DefaultDocumentEventpublic String toString()
toString in class AbstractDocument.DefaultDocumentEvent
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||