|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.undo.AbstractUndoableEdit | +--javax.swing.undo.CompoundEdit | +--com.borland.primetime.editor.JBUndoManager.UndoGroup | +--com.borland.primetime.editor.JBUndoManager.UndoSegment
An UndoSegment is a special subclass of UndoGroup which is able to coalesce subsequent edits of the same type.
Fields inherited from class com.borland.primetime.editor.JBUndoManager.UndoGroup |
endMark, endPoint, startMark, startPoint |
Fields inherited from class javax.swing.undo.CompoundEdit |
edits |
Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
RedoName, UndoName |
Constructor Summary | |
JBUndoManager.UndoSegment(int point,
int mark,
int type)
Create a new UndoSegment, with the specified caret state, and edit type. |
Method Summary | |
boolean |
addEdit(javax.swing.undo.UndoableEdit anEdit)
Attempt to add an edit to this undo segment. |
boolean |
canChain(JBUndoManager.UndoSegment seg)
Determine if an UndoSegment can be chained to the current segment. |
int |
getType()
Return the type of this UndoSegment. |
Methods inherited from class com.borland.primetime.editor.JBUndoManager.UndoGroup |
getEndMark, getEndPoint, getStartMark, getStartPoint, hashCode, setEndOffsets, setStartOffsets |
Methods inherited from class javax.swing.undo.CompoundEdit |
canRedo, canUndo, die, end, getPresentationName, getRedoPresentationName, getUndoPresentationName, isInProgress, isSignificant, lastEdit, redo, toString, undo |
Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
replaceEdit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JBUndoManager.UndoSegment(int point, int mark, int type)
point
- The position of the caret dot at the start of this edit.mark
- The position of the caret mark at the start of this edit.type
- The type of edit this UndoSegment represents.Method Detail |
public int getType()
public boolean addEdit(javax.swing.undo.UndoableEdit anEdit)
addEdit
in class javax.swing.undo.CompoundEdit
anEdit
- The UndoableEdit to try to add.canChain(com.borland.primetime.editor.JBUndoManager.UndoSegment)
public boolean canChain(JBUndoManager.UndoSegment seg)
seg
- The UndoableSegment to check for chaining.canChain(com.borland.primetime.editor.JBUndoManager.UndoSegment)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |