public class SwingAction extends AbstractAction
Modifier and Type | Class and Description |
---|---|
static class |
SwingAction.ActionBuilder
A builder for actions.
|
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 |
---|
SwingAction(CallableWithArgs<?> callable)
Deprecated.
|
SwingAction(RunnableWithArgs runnable) |
Modifier and Type | Method and Description |
---|---|
static SwingAction.ActionBuilder |
action() |
static SwingAction.ActionBuilder |
action(Action action) |
static SwingAction.ActionBuilder |
action(String name) |
void |
actionPerformed(ActionEvent evt) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
@Deprecated public SwingAction(@Nonnull CallableWithArgs<?> callable)
public SwingAction(@Nonnull RunnableWithArgs runnable)
@Nonnull public static SwingAction.ActionBuilder action()
@Nonnull public static SwingAction.ActionBuilder action(@Nullable Action action)
@Nonnull public static SwingAction.ActionBuilder action(@Nullable String name)
public final void actionPerformed(ActionEvent evt)