FileDocCategorySizeDatePackage
UndoableJToggleButton2.javaAPI DocExample1188Mon Nov 09 12:45:50 GMT 1998None

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);