public abstract class OpenFileAction extends AbstractAction
OpenFileAction.changeSupport, 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 |
|---|
OpenFileAction(String name,
Component parent)
Instantiates a new
OpenFileAction object. |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent actionEvent) |
protected abstract void |
onApproveOption(File file,
ActionEvent actionEvent)
Abstract callback method to interact on file choose approve option.
|
protected abstract void |
onCancel(ActionEvent actionEvent)
Abstract callback method to interact on cancel from file choose.
|
protected void |
onFileChoose(JFileChooser fileChooser,
ActionEvent actionEvent)
Callback method to interact on file choose.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic OpenFileAction(String name, Component parent)
OpenFileAction object.name - the nameparent - the parentpublic void actionPerformed(ActionEvent actionEvent)
protected abstract void onApproveOption(File file, ActionEvent actionEvent)
file - the fileactionEvent - the action eventprotected abstract void onCancel(ActionEvent actionEvent)
actionEvent - the action eventprotected void onFileChoose(JFileChooser fileChooser, ActionEvent actionEvent)
fileChooser - the file chooseractionEvent - the action eventCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.