Class UpdatableSongSessionOnePlay
java.lang.Object
org.jjazz.musiccontrol.api.playbacksession.UpdatableSongSession
org.jjazz.musiccontrol.api.playbacksession.UpdatableSongSessionOnePlay
- All Implemented Interfaces:
PropertyChangeListener,EventListener,ControlTrackProvider,EndOfPlaybackActionProvider,PlaybackSession,SongContextProvider
A special UpdatableSongSession, which accepts an UpdateProvider as base session, and which closes itself after being played.
This prevents the session to be automatically updated after session is played.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jjazz.musiccontrol.api.playbacksession.UpdatableSongSession
UpdatableSongSession.Update, UpdatableSongSession.UpdateProviderNested classes/interfaces inherited from interface org.jjazz.musiccontrol.api.playbacksession.PlaybackSession
PlaybackSession.State -
Field Summary
Fields inherited from class org.jjazz.musiccontrol.api.playbacksession.UpdatableSongSession
PROP_ENABLED, PROP_UPDATE_RECEIVEDFields inherited from interface org.jjazz.musiccontrol.api.playbacksession.ControlTrackProvider
ENABLED_STATEFields inherited from interface org.jjazz.musiccontrol.api.playbacksession.PlaybackSession
PROP_DIRTY, PROP_LOOP_COUNT, PROP_MUTED_TRACKS, PROP_STATE, PROP_TEMPO -
Constructor Summary
ConstructorsConstructorDescriptionCreate an UpdatableSongSession to enable updates of the specified BaseSongSession. -
Method Summary
Methods inherited from class org.jjazz.musiccontrol.api.playbacksession.UpdatableSongSession
addPropertyChangeListener, equals, generate, getBarRange, getBaseSession, getControlTrack, getCurrentRvPhraseMap, getEndOfPlaybackAction, getFreshCopy, getLoopCount, getLoopEndTick, getLoopStartTick, getNbPlayingTracks, getOriginalRvPhraseMap, getOriginalRvTrackIdMap, getOriginalSequenceSize, getSequence, getSession, getSongContext, getState, getTempo, getTick, getTracksMuteStatus, hashCode, isDirty, isEnabled, removePropertyChangeListener, setEnabled, updateSequence
-
Constructor Details
-
UpdatableSongSessionOnePlay
Create an UpdatableSongSession to enable updates of the specified BaseSongSession.- Parameters:
session- Must be an UpdateProvider instance
-
-
Method Details
-
close
public void close()Description copied from interface:PlaybackSessionPut session in the CLOSED state and release used resources, so that session can be disposed.- Specified by:
closein interfacePlaybackSession- Overrides:
closein classUpdatableSongSession- See Also:
-
toString
- Overrides:
toStringin classUpdatableSongSession
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener- Overrides:
propertyChangein classUpdatableSongSession
-