Class SubmitFingerprintsAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- com.tagtraum.core.app.ApplicationAction
-
- com.tagtraum.beatunes.action.BaseAction
-
- com.tagtraum.beatunes.action.standard.LibraryBatchAction
-
- com.tagtraum.beatunes.action.standard.SubmitFingerprintsAction
-
- All Implemented Interfaces:
ApplicationComponent<BeaTunes>,ActionListener,Serializable,Cloneable,EventListener,Action
public class SubmitFingerprintsAction extends LibraryBatchAction
Calculates and submits fingerprints for suitable songs to OnlineDB.- Author:
- Hendrik Schreiber
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tagtraum.beatunes.action.standard.LibraryBatchAction
LibraryBatchAction.EachSongProcessor
-
Nested classes/interfaces inherited from class com.tagtraum.beatunes.action.BaseAction
BaseAction.EnabledView, BaseAction.Location, BaseAction.SelectionCount
-
Nested classes/interfaces inherited from class com.tagtraum.core.app.ApplicationAction
ApplicationAction.ApplicationActionFacade
-
-
Field Summary
-
Fields inherited from class com.tagtraum.beatunes.action.BaseAction
ITEMS_EDITABLE
-
Fields inherited from class com.tagtraum.core.app.ApplicationAction
BUTTON_MODEL, DISABLED_ICON, DISABLED_SELECTED_ICON, PRESSED_ICON, ROLLOVER_ICON, SELECTED_ICON, SHORT_NAME
-
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
Constructors Constructor Description SubmitFingerprintsAction(BeaTunes beaTunes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LibraryBatchAction.EachSongProcessorcreateEachSongProcessor()Creates theLibraryBatchAction.EachSongProcessorto be used.protected StringgetConfirmationMessage()The return value of this method will be displayed in the confirmation dialog.StringgetId()Returns a unique id for this action.protected voidloadResources()Loads all resources that may change due to display resolution or theme change.-
Methods inherited from class com.tagtraum.beatunes.action.standard.LibraryBatchAction
actionPerformed, getActionLocations, getPreferences, getPreferencesConfirmationKey
-
Methods inherited from class com.tagtraum.beatunes.action.BaseAction
bindListeners, bindListeners, getApplication, getFocusedPlayList, getFocusOwner, getMostRecentlyFocused, getPlayListTreeNode, getSelectedPlayList, getSelectedPlayListTreeNode, getSelectedSong, getSelectedSongCount, getSelectedSongIds, getSelectedSongs, getSelectedSongs, init, isAnalysisQueueFocused, isMatchTableFocused, isPlayListTreeFocused, isSimpleSongTableFocused, isSongTableFocused, numberOfSelectedSongs, numberOfSelectedSongs, setApplication, shutdown
-
Methods inherited from class com.tagtraum.core.app.ApplicationAction
getButtonModel, getIconButtonFacade, getMenuFacade, getToolbarButtonFacade, isVisible, register, setButtonModel, setVisible
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
SubmitFingerprintsAction
public SubmitFingerprintsAction(BeaTunes beaTunes)
-
-
Method Detail
-
getId
public String getId()
Description copied from class:ApplicationActionReturns a unique id for this action. Typically follows thex.y.znotation from general to specific.- Specified by:
getIdin interfaceApplicationComponent<BeaTunes>- Specified by:
getIdin classApplicationAction- Returns:
- unique id for this action
-
loadResources
protected void loadResources()
Description copied from class:BaseActionLoads all resources that may change due to display resolution or theme change. The default implementation is empty.- Overrides:
loadResourcesin classBaseAction
-
getConfirmationMessage
protected String getConfirmationMessage()
Description copied from class:LibraryBatchActionThe return value of this method will be displayed in the confirmation dialog.- Specified by:
getConfirmationMessagein classLibraryBatchAction- Returns:
- confirmation dialog text
-
createEachSongProcessor
protected LibraryBatchAction.EachSongProcessor createEachSongProcessor()
Description copied from class:LibraryBatchActionCreates theLibraryBatchAction.EachSongProcessorto be used. This method needs to be implemented in a sub-class.- Specified by:
createEachSongProcessorin classLibraryBatchAction- Returns:
- new
LibraryBatchAction.EachSongProcessor
-
-