Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.ide.controls
Class JTextComponentUndoSupport

java.lang.Object
  extended by oracle.ide.controls.JTextComponentUndoSupport

public final class JTextComponentUndoSupport
extends java.lang.Object

A utility class adding undo/redo support to a JTextComponent


Constructor Summary
JTextComponentUndoSupport(javax.swing.text.JTextComponent textComponent)
           
 
Method Summary
 void clearUndo()
          Clears the undo stack
 void commitCombinedEdit()
          Commits the combined edits (if any) that have been accrued since startCombiningEdits() was called.
 void startCombiningEdits()
          Calling this causes the undoable edits to be combined until commitCombinedEdits() is called.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTextComponentUndoSupport

public JTextComponentUndoSupport(javax.swing.text.JTextComponent textComponent)
Method Detail

clearUndo

public void clearUndo()
Clears the undo stack


startCombiningEdits

public void startCombiningEdits()
Calling this causes the undoable edits to be combined until commitCombinedEdits() is called. This allows the user of this support to perform multiple edits to the JTextComponent and wrap them together in the undo stack. It is left to the user of this class to be sure that the edits can be combined. If edits are already being combined this method does nothing and edits will continue to be combined.


commitCombinedEdit

public void commitCombinedEdit()
Commits the combined edits (if any) that have been accrued since startCombiningEdits() was called.


Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

Copyright © 1997, 2011, Oracle. All rights reserved.