Package de.alpharogroup.swing.actions
Class OpenFileAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- de.alpharogroup.swing.actions.OpenFileAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public abstract class OpenFileAction extends javax.swing.AbstractActionThe classOpenFileAction.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpenFileAction(java.lang.String name, java.awt.Component parent)Instantiates a newOpenFileActionobject.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent actionEvent)protected abstract voidonApproveOption(java.io.File file, java.awt.event.ActionEvent actionEvent)Abstract callback method to interact on file choose approve option.protected abstract voidonCancel(java.awt.event.ActionEvent actionEvent)Abstract callback method to interact on cancel from file choose.protected voidonFileChoose(javax.swing.JFileChooser fileChooser, java.awt.event.ActionEvent actionEvent)Callback method to interact on file choose.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
OpenFileAction
public OpenFileAction(java.lang.String name, java.awt.Component parent)Instantiates a newOpenFileActionobject.- Parameters:
name- the nameparent- the parent
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent actionEvent)
-
onApproveOption
protected abstract void onApproveOption(java.io.File file, java.awt.event.ActionEvent actionEvent)Abstract callback method to interact on file choose approve option.- Parameters:
file- the fileactionEvent- the action event
-
onCancel
protected abstract void onCancel(java.awt.event.ActionEvent actionEvent)
Abstract callback method to interact on cancel from file choose.- Parameters:
actionEvent- the action event
-
onFileChoose
protected void onFileChoose(javax.swing.JFileChooser fileChooser, java.awt.event.ActionEvent actionEvent)Callback method to interact on file choose.- Parameters:
fileChooser- the file chooseractionEvent- the action event
-
-