javax.swing.text
Class StringContent.UndoPosRef

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

final class StringContent.UndoPosRef
extends Object

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


Field Summary
protected  StringContent.PosRec rec
          Position to reset offset.
protected  int undoLocation
          Location to reset to when resetLocatino is invoked.
 
Constructor Summary
(package private) StringContent.UndoPosRef(StringContent.PosRec rec)
           
 
Method Summary
protected  void resetLocation()
          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
Location to reset to when resetLocatino is invoked.


rec

protected StringContent.PosRec rec
Position to reset offset.

Constructor Detail

StringContent.UndoPosRef

StringContent.UndoPosRef(StringContent.PosRec rec)
Method Detail

resetLocation

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