public class JButtonListener
extends java.lang.Object
implements java.beans.PropertyChangeListener
A simple listener whose only job is to update a JButton's Enabled property from a PropertyChangeEvent of the "enabled" property.
Extended to have the received all PropertyChangeEvents change the corresponding property on the button. This uses JavaBeans Introspection, but could have just as easily used "ordinary" reflection...
Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
button |
private java.util.Map<java.lang.String,java.lang.reflect.Method> |
setters |
Constructor and Description |
---|
JButtonListener(java.lang.Object b) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getObject() |
void |
propertyChange(java.beans.PropertyChangeEvent e) |