public class FormatAction extends FocusOwnerAction implements SelectionListener
focusOwner
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 |
---|
FormatAction(UIController uiController)
Creates a new format action.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent event)
Lets the user select a format from a chooser.
|
protected void |
defineProperties()
Defines the action's properties.
|
protected String |
getName()
Returns the action's name.
|
void |
selectionChanged(SelectionEvent event)
Updates the state of the action when a new cell is selected.
|
propertyChange
requiresFile, requiresModification, showErrorDialog
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public FormatAction(UIController uiController)
uiController
- the user interface controllerprotected String getName()
BaseAction
getName
in class BaseAction
protected void defineProperties()
BaseAction
defineProperties
in class BaseAction
public void selectionChanged(SelectionEvent event)
selectionChanged
in interface SelectionListener
event
- the selection event that was firedpublic void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
event
- the event that was fired