public abstract class AbstractModelAction<M extends Model>
extends javax.swing.AbstractAction
model
is null
.
The action listens to model changes and and revalidates enabled state.Modifier | Constructor and Description |
---|---|
protected |
AbstractModelAction(java.lang.String name) |
protected |
AbstractModelAction(java.lang.String name,
M model) |
Modifier and Type | Method and Description |
---|---|
M |
getModel() |
boolean |
isEnabled() |
void |
setModel(M model) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
protected AbstractModelAction(java.lang.String name)
protected AbstractModelAction(java.lang.String name, M model)