com.frinika.sequencer.gui.menu
Class RepeatAction
java.lang.Object
javax.swing.AbstractAction
com.frinika.gui.AbstractDialogAction
com.frinika.sequencer.gui.menu.RepeatAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class RepeatAction
- extends AbstractDialogAction
Menu-action for repeating the currently selected Part(s) or/and MIDI event(s).
As a special feature, repetitions of MidiParts can be created as "Ghosts",
which means that they appear as Parts in the Tracker-view, but do not contain
their own events. Instead, Ghosts are internally linked to the origial Part from
which they have been created. They represent the original Part transparently, but
are not editable themselves. All changed applied to the original Part will
immediately take effect on Ghosts also.
(Although this is implemented as an extension of AbstractMidiAction, it is not
actually a Midi-event related action only. But this is used for easier gui-dialog
invocation.)
- Author:
- Jens Gulden
- See Also:
Ghost
,
MidiPartGhost
,
Serialized Form
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 |
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 |
list
protected java.util.Collection<Selectable> list
RepeatAction
public RepeatAction(ProjectFrame frame)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Overrides:
actionPerformed
in class AbstractDialogAction
createGUI
protected javax.swing.JComponent createGUI()
- Description copied from class:
AbstractDialogAction
- Creates inner gui-editor of a dialog to show to the user.
The implementation may just return null, which makes
the class effectually behave as an AbstractAction without user-interaction.
- Specified by:
createGUI
in class AbstractDialogAction
- Returns:
performPrepare
protected void performPrepare()
- Overrides:
performPrepare
in class AbstractDialogAction
performAction
protected void performAction()
- Specified by:
performAction
in class AbstractDialogAction