FileDocCategorySizeDatePackage
UndoableJToggleButton2.javaAPI DocExample1189Thu Oct 24 20:14:26 BST 2002None

UndoableJToggleButton2

public class UndoableJToggleButton2 extends JToggleButton

Fields Summary
private UndoableEditSupport
support
Constructors Summary
public UndoableJToggleButton2(String txt)

    super(txt);
    support = new UndoableEditSupport(this);
  
Methods Summary
public voidaddUndoableEditListener(javax.swing.event.UndoableEditListener l)

    support.addUndoableEditListener(l);
  
protected voidfireActionPerformed(java.awt.event.ActionEvent ev)


    // Fire the ActionEvent as usual.
    super.fireActionPerformed(ev);

    support.postEdit(new UndoableToggleEdit(this));
  
public voidremoveUndoableEditListener(javax.swing.event.UndoableEditListener l)

    support.addUndoableEditListener(l);