javax.swing.text
Class DefaultStyledDocument.AttributeUndoableEdit

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.undo.AbstractUndoableEdit sample code for javax.swing.undo.AbstractUndoableEdit definition code for javax.swing.undo.AbstractUndoableEdit 
      extended by javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , UndoableEdit sample code for javax.swing.undo.UndoableEdit definition code for javax.swing.undo.UndoableEdit
Enclosing class:
DefaultStyledDocument sample code for javax.swing.text.DefaultStyledDocument definition code for javax.swing.text.DefaultStyledDocument

public static class DefaultStyledDocument.AttributeUndoableEdit
extends AbstractUndoableEdit sample code for javax.swing.undo.AbstractUndoableEdit definition code for javax.swing.undo.AbstractUndoableEdit

An UndoableEdit used to remember AttributeSet changes to an Element.

See Also:
Serialized Form

Field Summary
protected  AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet copy sample code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.copy definition code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.copy
           
protected  Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element element sample code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.element definition code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.element
           
protected  boolean isReplacing sample code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.isReplacing definition code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.isReplacing
           
protected  AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet newAttributes sample code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.newAttributes definition code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.newAttributes
           
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit sample code for javax.swing.undo.AbstractUndoableEdit definition code for javax.swing.undo.AbstractUndoableEdit
RedoName sample code for javax.swing.undo.AbstractUndoableEdit.RedoName definition code for javax.swing.undo.AbstractUndoableEdit.RedoName , UndoName sample code for javax.swing.undo.AbstractUndoableEdit.UndoName definition code for javax.swing.undo.AbstractUndoableEdit.UndoName
 
Constructor Summary
DefaultStyledDocument.AttributeUndoableEdit sample code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.DefaultStyledDocument.AttributeUndoableEdit(javax.swing.text.Element, javax.swing.text.AttributeSet, boolean) definition code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.DefaultStyledDocument.AttributeUndoableEdit(javax.swing.text.Element, javax.swing.text.AttributeSet, boolean) (Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  element, AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet  newAttributes, boolean isReplacing)
           
 
Method Summary
 void redo sample code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.redo() definition code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.redo() ()
          Redoes a change.
 void undo sample code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.undo() definition code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.undo() ()
          Undoes a change.
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit sample code for javax.swing.undo.AbstractUndoableEdit definition code for javax.swing.undo.AbstractUndoableEdit
addEdit sample code for javax.swing.undo.AbstractUndoableEdit.addEdit(javax.swing.undo.UndoableEdit) definition code for javax.swing.undo.AbstractUndoableEdit.addEdit(javax.swing.undo.UndoableEdit) , canRedo sample code for javax.swing.undo.AbstractUndoableEdit.canRedo() definition code for javax.swing.undo.AbstractUndoableEdit.canRedo() , canUndo sample code for javax.swing.undo.AbstractUndoableEdit.canUndo() definition code for javax.swing.undo.AbstractUndoableEdit.canUndo() , die sample code for javax.swing.undo.AbstractUndoableEdit.die() definition code for javax.swing.undo.AbstractUndoableEdit.die() , getPresentationName sample code for javax.swing.undo.AbstractUndoableEdit.getPresentationName() definition code for javax.swing.undo.AbstractUndoableEdit.getPresentationName() , getRedoPresentationName sample code for javax.swing.undo.AbstractUndoableEdit.getRedoPresentationName() definition code for javax.swing.undo.AbstractUndoableEdit.getRedoPresentationName() , getUndoPresentationName sample code for javax.swing.undo.AbstractUndoableEdit.getUndoPresentationName() definition code for javax.swing.undo.AbstractUndoableEdit.getUndoPresentationName() , isSignificant sample code for javax.swing.undo.AbstractUndoableEdit.isSignificant() definition code for javax.swing.undo.AbstractUndoableEdit.isSignificant() , replaceEdit sample code for javax.swing.undo.AbstractUndoableEdit.replaceEdit(javax.swing.undo.UndoableEdit) definition code for javax.swing.undo.AbstractUndoableEdit.replaceEdit(javax.swing.undo.UndoableEdit) , toString sample code for javax.swing.undo.AbstractUndoableEdit.toString() definition code for javax.swing.undo.AbstractUndoableEdit.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

newAttributes sample code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.newAttributes

protected AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet  newAttributes

copy sample code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.copy

protected AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet  copy

isReplacing sample code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.isReplacing

protected boolean isReplacing

element sample code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.element

protected Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  element
Constructor Detail

DefaultStyledDocument.AttributeUndoableEdit sample code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit(javax.swing.text.Element, javax.swing.text.AttributeSet, boolean) definition code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit(javax.swing.text.Element, javax.swing.text.AttributeSet, boolean)

public DefaultStyledDocument.AttributeUndoableEdit(Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  element,
                                                   AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet  newAttributes,
                                                   boolean isReplacing)
Method Detail

redo sample code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.redo() definition code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.redo()

public void redo()
          throws CannotRedoException sample code for javax.swing.undo.CannotRedoException definition code for javax.swing.undo.CannotRedoException 
Redoes a change.

Specified by:
redo sample code for javax.swing.undo.UndoableEdit.redo() definition code for javax.swing.undo.UndoableEdit.redo() in interface UndoableEdit sample code for javax.swing.undo.UndoableEdit definition code for javax.swing.undo.UndoableEdit
Overrides:
redo sample code for javax.swing.undo.AbstractUndoableEdit.redo() definition code for javax.swing.undo.AbstractUndoableEdit.redo() in class AbstractUndoableEdit sample code for javax.swing.undo.AbstractUndoableEdit definition code for javax.swing.undo.AbstractUndoableEdit
Throws:
CannotRedoException sample code for javax.swing.undo.CannotRedoException definition code for javax.swing.undo.CannotRedoException - if the change cannot be redone
See Also:
AbstractUndoableEdit.canRedo() sample code for javax.swing.undo.AbstractUndoableEdit.canRedo() definition code for javax.swing.undo.AbstractUndoableEdit.canRedo()

undo sample code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.undo() definition code for javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit.undo()

public void undo()
          throws CannotUndoException sample code for javax.swing.undo.CannotUndoException definition code for javax.swing.undo.CannotUndoException 
Undoes a change.

Specified by:
undo sample code for javax.swing.undo.UndoableEdit.undo() definition code for javax.swing.undo.UndoableEdit.undo() in interface UndoableEdit sample code for javax.swing.undo.UndoableEdit definition code for javax.swing.undo.UndoableEdit
Overrides:
undo sample code for javax.swing.undo.AbstractUndoableEdit.undo() definition code for javax.swing.undo.AbstractUndoableEdit.undo() in class AbstractUndoableEdit sample code for javax.swing.undo.AbstractUndoableEdit definition code for javax.swing.undo.AbstractUndoableEdit
Throws:
CannotUndoException sample code for javax.swing.undo.CannotUndoException definition code for javax.swing.undo.CannotUndoException - if the change cannot be undone
See Also:
AbstractUndoableEdit.canUndo() sample code for javax.swing.undo.AbstractUndoableEdit.canUndo() definition code for javax.swing.undo.AbstractUndoableEdit.canUndo()