|
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/CHANGEMethod 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 UndoableEdit
undo
in class AbstractDocument.DefaultDocumentEvent
CannotUndoException
public void redo() throws CannotRedoException
redo
in interface UndoableEdit
redo
in class AbstractDocument.DefaultDocumentEvent
CannotRedoException
public boolean addEdit(UndoableEdit anEdit)
addEdit
in interface UndoableEdit
addEdit
in class AbstractDocument.DefaultDocumentEvent
public boolean canUndo()
canUndo
in interface UndoableEdit
canUndo
in class CompoundEdit
public boolean canRedo()
canRedo
in interface UndoableEdit
canRedo
in class CompoundEdit
isInProgress()
public boolean isInProgress()
isInProgress
in class CompoundEdit
public String getUndoPresentationName()
getUndoPresentationName
in interface UndoableEdit
getUndoPresentationName
in class AbstractDocument.DefaultDocumentEvent
public String getRedoPresentationName()
getRedoPresentationName
in interface UndoableEdit
getRedoPresentationName
in class AbstractDocument.DefaultDocumentEvent
public boolean canMerge(BaseDocumentEvent evt)
public boolean replaceEdit(UndoableEdit anEdit)
replaceEdit
in interface UndoableEdit
replaceEdit
in class AbstractUndoableEdit
public void die()
die
in interface UndoableEdit
die
in class CompoundEdit
public void end()
end
in class CompoundEdit
public DocumentEvent.ElementChange getChange(Element elem)
getChange
in interface DocumentEvent
getChange
in class AbstractDocument.DefaultDocumentEvent
public 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 |