Class EmbedSpecialFieldsAction
- 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.EmbedSpecialFieldsAction
-
- All Implemented Interfaces:
ApplicationComponent<BeaTunes>
,ActionListener
,Serializable
,Cloneable
,EventListener
,Action
public class EmbedSpecialFieldsAction extends LibraryBatchAction
Embeds non-iTunes or other non-standard fields into the (supported) audio files. This may not be all kinds of files, but at least mp3 with id3v2 and AAC.- 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 EmbedSpecialFieldsAction(BeaTunes beaTunes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LibraryBatchAction.EachSongProcessor
createEachSongProcessor()
Creates theLibraryBatchAction.EachSongProcessor
to be used.ActionLocation[]
getActionLocations()
Specifies where in the UI this action should be installed.protected String
getConfirmationMessage()
The return value of this method will be displayed in the confirmation dialog.String
getId()
Returns a unique id for this action.void
init()
Initializes this action.protected void
loadResources()
Loads all resources that may change due to display resolution or theme change.static List<String>
toMoodKeywords(BeaTunes application, Mood mood)
Converts a mood value to a list of localized adjectives.-
Methods inherited from class com.tagtraum.beatunes.action.standard.LibraryBatchAction
actionPerformed, 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, 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
-
EmbedSpecialFieldsAction
public EmbedSpecialFieldsAction(BeaTunes beaTunes)
-
-
Method Detail
-
getActionLocations
public ActionLocation[] getActionLocations()
Description copied from class:ApplicationAction
Specifies where in the UI this action should be installed.- Overrides:
getActionLocations
in classLibraryBatchAction
- Returns:
- installation locations for this action - the default is an empty array
-
toMoodKeywords
public static List<String> toMoodKeywords(BeaTunes application, Mood mood)
Converts a mood value to a list of localized adjectives.- Parameters:
application
- applicationmood
- mood- Returns:
- list of localized adjectives
-
getId
public String getId()
Description copied from class:ApplicationAction
Returns a unique id for this action. Typically follows thex.y.z
notation from general to specific.- Specified by:
getId
in interfaceApplicationComponent<BeaTunes>
- Specified by:
getId
in classApplicationAction
- Returns:
- unique id for this action
-
loadResources
protected void loadResources()
Description copied from class:BaseAction
Loads all resources that may change due to display resolution or theme change. The default implementation is empty.- Overrides:
loadResources
in classBaseAction
-
init
public void init()
Description copied from class:BaseAction
Initializes this action. This method is called byActionManager.init()
, after all components are instantiated and set up. The default implementation is empty.- Specified by:
init
in interfaceApplicationComponent<BeaTunes>
- Overrides:
init
in classBaseAction
-
getConfirmationMessage
protected String getConfirmationMessage()
Description copied from class:LibraryBatchAction
The return value of this method will be displayed in the confirmation dialog.- Specified by:
getConfirmationMessage
in classLibraryBatchAction
- Returns:
- confirmation dialog text
-
createEachSongProcessor
protected LibraryBatchAction.EachSongProcessor createEachSongProcessor()
Description copied from class:LibraryBatchAction
Creates theLibraryBatchAction.EachSongProcessor
to be used. This method needs to be implemented in a sub-class.- Specified by:
createEachSongProcessor
in classLibraryBatchAction
- Returns:
- new
LibraryBatchAction.EachSongProcessor
-
-