public abstract class DialogAction extends SimpleAction
description, icon, namechangeSupport, enabledACCELERATOR_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 |
|---|
DialogAction(JComponent
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent
|
protected abstract JComponent |
createDialog()
This is the method an extending class has to implement to provide a Dialog to be displayed.
|
setIconFromResourcegetValue, setDescription, setIcon, setIcon, setNameaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic DialogAction(JComponentsource, String icon, String title, String description)
source - the component to use for determining the frame to use as a parent for the dialog to display
icon - the icon to use in menus etc.
title - the title of the action.
description - the description of the action.
public void actionPerformed(ActionEvente)
protected abstract JComponentcreateDialog()