/*
* file: SomeGuiPanel.java
* package: oreilly.hcj.review
*
* This software is granted under the terms of the Common Public License,
* CPL, which may be found at the following URL:
* http://www-124.ibm.com/developerworks/oss/CPLv1.0.htm
*
* Copyright(c) 2003-2005 by the authors indicated in the @author tags.
* All Rights are Reserved by the various authors.
*
########## DO NOT EDIT ABOVE THIS LINE ########## */
package oreilly.hcj.review;
import java.awt.event.ActionEvent;
import javax.swing.JButton;
/**
* __UNDOCUMENTED__
*
* @author <a href="mailto:kraythe@arcor.de">Robert (Kraythe) Simmons jr.</a>
*/
public class SomeGuiPanel {
/** A control. */
private JButton cancelBtn;
/** A control. */
private JButton noBtn;
/** A control. */
private JButton yesBtn;
/**
* __UNDOCUMENTED__
*
* @param event __UNDOCUMENTED__
*/
public void actionPerformed(final ActionEvent event) {
Object source = event.getSource();
assert (source != null);
// --
if (source == yesBtn) {
// .. do code
} else if (source == noBtn) {
// .. do code
} else if (source == cancelBtn) {
// .. do code
} else {
assert false : "Invalid Source: " + source.toString();
}
}
}
/* ########## End of File ########## */
|