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.UpdateProvider
Nested 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_RECEIVED
Fields inherited from interface org.jjazz.musiccontrol.api.playbacksession.ControlTrackProvider
ENABLED_STATE
Fields inherited from interface org.jjazz.musiccontrol.api.playbacksession.PlaybackSession
PROP_DIRTY, PROP_LOOP_COUNT, PROP_MUTED_TRACKS, PROP_STATE, PROP_TEMPO
-
Constructor Summary
ConstructorDescriptionCreate 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:PlaybackSession
Put session in the CLOSED state and release used resources, so that session can be disposed.- Specified by:
close
in interfacePlaybackSession
- Overrides:
close
in classUpdatableSongSession
- See Also:
-
toString
- Overrides:
toString
in classUpdatableSongSession
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
- Overrides:
propertyChange
in classUpdatableSongSession
-