Class PeekSelectedAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- com.tagtraum.core.app.ApplicationAction
-
- com.tagtraum.beatunes.action.BaseAction
-
- com.tagtraum.beatunes.action.player.PlaySelectedAction
-
- com.tagtraum.beatunes.action.player.PeekSelectedAction
-
- All Implemented Interfaces:
ApplicationComponent<BeaTunes>
,ActionListener
,Serializable
,Cloneable
,EventListener
,Action
public class PeekSelectedAction extends PlaySelectedAction
PeekSelectedAction.- Author:
- Hendrik Schreiber
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
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.player.PlaySelectedAction
playPauseOverlay
-
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 PeekSelectedAction(BeaTunes beaTunes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.protected void
preOpen(PlayListPlayer player)
Is called beforePlayListPlayer.open(com.tagtraum.audiokern.PlayListIterator)
.
Default impl.protected void
preProcess(AudioSong song)
Is called before the song is opened by the player.
Default impl.protected void
setStartTime(PlayListPlayer player)
Is called beforeAudioPlayer.play()
.
Default impl.-
Methods inherited from class com.tagtraum.beatunes.action.player.PlaySelectedAction
actionPerformed, play, showOpenSongErrorMessage, showOpenSongErrorMessage, showOpenSongErrorMessage
-
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
getActionLocations, 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
-
PeekSelectedAction
public PeekSelectedAction(BeaTunes beaTunes)
-
-
Method Detail
-
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>
- Overrides:
getId
in classPlaySelectedAction
- Returns:
- unique id for this action
-
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 classPlaySelectedAction
-
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 classPlaySelectedAction
-
preOpen
protected void preOpen(PlayListPlayer player)
Description copied from class:PlaySelectedAction
Is called beforePlayListPlayer.open(com.tagtraum.audiokern.PlayListIterator)
.
Default impl. does nothing.- Overrides:
preOpen
in classPlaySelectedAction
- Parameters:
player
- player
-
setStartTime
protected void setStartTime(PlayListPlayer player)
Description copied from class:PlaySelectedAction
Is called beforeAudioPlayer.play()
.
Default impl. does nothing.- Overrides:
setStartTime
in classPlaySelectedAction
- Parameters:
player
- player
-
preProcess
protected void preProcess(AudioSong song)
Description copied from class:PlaySelectedAction
Is called before the song is opened by the player.
Default impl. increases metric counter.- Overrides:
preProcess
in classPlaySelectedAction
- Parameters:
song
- first song to be played
-
-