org.fopps.ui.actions
Class SelectDirectoryAction
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--org.fopps.ui.actions.BaseAction
|
+--org.fopps.ui.actions.FileAction
|
+--org.fopps.ui.actions.SelectDirectoryAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, ApplicationListener, java.lang.Cloneable, java.lang.Comparable, java.util.EventListener, java.awt.event.ItemListener, java.io.Serializable
- public class SelectDirectoryAction
- extends FileAction
Action to select a directory
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Methods inherited from class org.fopps.ui.actions.BaseAction |
addToMenu, addToToolBar, clearSelection, compareTo, getAccelerator, getActionHandler, getApplication, getContainer, getGroup, getIcon, getLocaleName, getLongDescription, getMnemonic, getName, getSelectedItems, getSelectionSize, getShortDescription, isStringPropertySet, isTogglable, itemInSelection, itemStateChanged, setAccelerator, setAccelerator, setAcceleratorWithAlt, setAcceleratorWithCtrl, setAcceleratorWithShift, setGroup, setLocaleName, setLongDescription, setMnemonic, setMnemonic, setShortDescription, toString, updateState |
| Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SelectDirectoryAction
public SelectDirectoryAction(ActionHandler pListener)
- Constructor for SelectDirectoryAction.
- Parameters:
pListener -
SelectDirectoryAction
public SelectDirectoryAction(java.lang.String name,
ActionHandler pListener)
- Constructor for SelectDirectoryAction.
- Parameters:
name - pListener -
SelectDirectoryAction
public SelectDirectoryAction(java.lang.String name,
javax.swing.filechooser.FileFilter pFilter,
ActionHandler pListener)
- Constructor for SelectDirectoryAction.
- Parameters:
name - pFilter - pListener -
SelectDirectoryAction
public SelectDirectoryAction(java.lang.String name,
javax.swing.Icon icon,
javax.swing.filechooser.FileFilter pFilter,
ActionHandler pListener)
- Constructor for SelectDirectoryAction.
- Parameters:
name - icon - pFilter - pListener -
acceptSelection
public boolean acceptSelection()
- Indicates, if an action is able to work with the selected items. If acceptSelection returns false,
the action will be disabled. This method is called after every selection change
- Overrides:
acceptSelection in class BaseAction
- Returns:
- true, if selected items are instances of Product
getFilename
public java.lang.String getFilename()
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed in interface java.awt.event.ActionListener- Specified by:
actionPerformed in class BaseAction
- See Also:
ActionListener.actionPerformed(ActionEvent)
Fopps 0.19 - Copyright © 2002 Oliver Wieland. All Rights Reserved.