javax.swing.text
Class GapContent.UndoPosRef

java.lang.Object
  extended byjavax.swing.text.GapContent.UndoPosRef
Enclosing class:
GapContent

final class GapContent.UndoPosRef
extends Object

Used to hold a reference to a Mark that is being reset as the result of removing from the content.


Field Summary
protected  GapContent.MarkData rec
          Mark to reset offset.
protected  int undoLocation
          Previous Offset of rec.
 
Constructor Summary
(package private) GapContent.UndoPosRef(GapContent.MarkData rec)
           
 
Method Summary
protected  void resetLocation(int endOffset, int g1)
          Resets the location of the Position to the offset when the receiver was instantiated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

undoLocation

protected int undoLocation
Previous Offset of rec.


rec

protected GapContent.MarkData rec
Mark to reset offset.

Constructor Detail

GapContent.UndoPosRef

GapContent.UndoPosRef(GapContent.MarkData rec)
Method Detail

resetLocation

protected void resetLocation(int endOffset,
                             int g1)
Resets the location of the Position to the offset when the receiver was instantiated.

Parameters:
endOffset - end location of inserted string.
g1 - resulting end of gap.