public abstract class AbstractSwingAction<T> extends AbstractAction
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
AbstractSwingAction(String name,
String description) |
AbstractSwingAction(String name,
String description,
String iconUrl) |
AbstractSwingAction(String name,
String description,
String iconUrl,
T modelItem) |
AbstractSwingAction(String name,
String description,
T modelItem) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent arg0) |
abstract void |
actionPerformed(ActionEvent arg0,
T modelItem2) |
T |
getModelItem() |
String |
getName() |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public void actionPerformed(ActionEvent arg0)
public String getName()
public abstract void actionPerformed(ActionEvent arg0, T modelItem2)
public T getModelItem()
Copyright © 2019. All Rights Reserved.