Package be.gaudry.swing.file.action
Class SynchroAction
java.lang.Object
javax.swing.AbstractAction
be.gaudry.swing.file.action.FileDesktopAction
be.gaudry.swing.file.action.SynchroAction
- All Implemented Interfaces:
ActionListener
,PropertyChangeListener
,Serializable
,Cloneable
,EventListener
,Action
Synchronization action to perform on a file.\n
Provided by the broldev.file.synchro.swing project.
- Since:
- 1.0 (Nov 29, 2011), broldev.file.synchro.swing 0.0.1-SNAPSHOT dependency
- Version:
- 1.0 (Nov 29, 2011)
- Author:
- Steph GAUDRY
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class be.gaudry.swing.file.action.FileDesktopAction
component, descriptionFormat, desktop, eAction, errorTitle, files, filesCountStr, invalidAction, name, noFileSelected, supported
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract boolean
_mayEnable(File file)
Forces to give an implementation formayEnable(File)
protected String
protected boolean
Override this method to allow to callFileDesktopAction.mayEnable(File)
method to perform a check on files to enable or disable this action.protected boolean
Methods inherited from class be.gaudry.swing.file.action.FileDesktopAction
actionPerformed, finalize, getComponent, getDescription, getFiles, processFile, propertyChange, setComponent, setEnabled, setFiles, setPopupDelay
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener
-
Constructor Details
-
SynchroAction
-
-
Method Details
-
getCustomName
- Overrides:
getCustomName
in classFileDesktopAction
-
isEnabledByFilesCheck
protected boolean isEnabledByFilesCheck()Description copied from class:FileDesktopAction
Override this method to allow to callFileDesktopAction.mayEnable(File)
method to perform a check on files to enable or disable this action.- Overrides:
isEnabledByFilesCheck
in classFileDesktopAction
- Returns:
- false by default
-
mayEnable
- Overrides:
mayEnable
in classFileDesktopAction
- Returns:
-
_mayEnable
Forces to give an implementation formayEnable(File)
- Parameters:
file
-- Returns:
-