Class SongContextComponentShowHideAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- com.tagtraum.core.app.ApplicationAction
-
- com.tagtraum.beatunes.action.BaseAction
-
- com.tagtraum.beatunes.action.standard.SongContextComponentShowHideAction
-
- All Implemented Interfaces:
ApplicationComponent<BeaTunes>
,ActionListener
,Serializable
,Cloneable
,EventListener
,Action
- Direct Known Subclasses:
ShowHideContextShop
,ShowHideMatchTable
,ShowHideWikiInfo
public abstract class SongContextComponentShowHideAction extends BaseAction
Action that shows or hides aSongContextComponent
orSongContextView
.- 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.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 Modifier Constructor Description protected
SongContextComponentShowHideAction()
protected
SongContextComponentShowHideAction(BeaTunes beaTunes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent ae)
ActionLocation[]
getActionLocations()
Specifies where in the UI this action should be installed.protected String
getName()
void
init()
Initializes this action.void
register(AbstractButton button)
Registers this action with a button in order to set the correct icons and model.-
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, loadResources, numberOfSelectedSongs, numberOfSelectedSongs, setApplication, shutdown
-
Methods inherited from class com.tagtraum.core.app.ApplicationAction
getButtonModel, getIconButtonFacade, getId, getMenuFacade, getToolbarButtonFacade, isVisible, setButtonModel, setVisible
-
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, toString, wait, wait, wait
-
Methods inherited from interface com.tagtraum.core.app.ApplicationComponent
getId
-
-
-
-
Constructor Detail
-
SongContextComponentShowHideAction
protected SongContextComponentShowHideAction(BeaTunes beaTunes)
-
SongContextComponentShowHideAction
protected SongContextComponentShowHideAction()
-
-
Method Detail
-
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
-
getActionLocations
public ActionLocation[] getActionLocations()
Description copied from class:ApplicationAction
Specifies where in the UI this action should be installed.- Overrides:
getActionLocations
in classApplicationAction
- Returns:
- installation locations for this action - the default is an empty array
-
getName
protected String getName()
- Returns:
- the name to be used in the button (not the menu)
-
register
public void register(AbstractButton button)
Description copied from class:ApplicationAction
Registers this action with a button in order to set the correct icons and model.- Overrides:
register
in classApplicationAction
- Parameters:
button
- button- See Also:
ApplicationAction.ROLLOVER_ICON
,ApplicationAction.PRESSED_ICON
,ApplicationAction.SELECTED_ICON
,ApplicationAction.DISABLED_ICON
,ApplicationAction.DISABLED_SELECTED_ICON
-
actionPerformed
public void actionPerformed(ActionEvent ae)
-
-