|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.baka.ambient.activity.main.AbstractController
sk.baka.ambient.activity.main.AbstractListController
sk.baka.ambient.activity.main.cb.AbstractCollectionController
sk.baka.ambient.activity.main.MagnatuneController
public final class MagnatuneController
Controls the Magnatune view
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class sk.baka.ambient.activity.main.AbstractController |
|---|
AbstractController.Listener |
| Field Summary | |
|---|---|
static List<ActionsEnum> |
actions
The actions to display on the Task switcher. |
| Fields inherited from class sk.baka.ambient.activity.main.cb.AbstractCollectionController |
|---|
collection |
| Fields inherited from class sk.baka.ambient.activity.main.AbstractListController |
|---|
highlightColor, listView |
| Fields inherited from class sk.baka.ambient.activity.main.AbstractController |
|---|
app, cycle, listener, mainActivity, mainView |
| Constructor Summary | |
|---|---|
MagnatuneController(Activity mainActivity,
GesturesListView playlistView)
Creates new Magnatune controller. |
|
| Method Summary | |
|---|---|
protected void |
onAction(ActionsEnum action)
Called when an action button is pressed. |
protected void |
performZoom(boolean zoom)
Zooms, or un-zooms the controller. |
void |
playbackStateChanged(PlayerStateEnum state)
The playback state was changed. |
void |
playlistChanged(Interval target)
Fired when the playlist changes - by removing a track, reshuffling etc. |
void |
randomChanged(Random random)
The play mode was changed. |
void |
repeatChanged(Repeat repeat)
The play mode was changed. |
void |
trackChanged(PlaylistItem track,
boolean play,
int positionMillis)
A new track was selected in the playlist. |
void |
trackPositionChanged(int position,
boolean playing)
A position in the track was changed. |
void |
update(Interval select)
Overrides default functionality - the AbstractListController.recomputeListItems() is
invoked and the list view contents are updated. |
| Methods inherited from class sk.baka.ambient.activity.main.cb.AbstractCollectionController |
|---|
canComputeItems, canHighlight, computeTracks, coverLoaded, destroy, getHint, isComputeTracksLong, isComputeTracksOnlineOp, isReadOnly, itemActivated, libraryUpdate, lyricsLoaded, recomputeListItems, refetchData, removeItems, reset, update, updateData |
| Methods inherited from class sk.baka.ambient.activity.main.AbstractListController |
|---|
dropItems, getClipboard, highlightChanged, moveItems, moveItemsByOne, setClipboard |
| Methods inherited from class sk.baka.ambient.activity.main.AbstractController |
|---|
equals, flipVisibility, hashCode, hide, initButtonBar, initButtonBar, initButtonBar, isDestroyed, isVisible, isZoomed, setVisibility, show, visibilityChanged, zoom |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final List<ActionsEnum> actions
| Constructor Detail |
|---|
public MagnatuneController(Activity mainActivity,
GesturesListView playlistView)
mainActivity - playlistView - | Method Detail |
|---|
public void playbackStateChanged(PlayerStateEnum state)
IPlaylistPlayerListener
playbackStateChanged in interface IPlaylistPlayerListenerstate - new playback state.public void playlistChanged(Interval target)
IPlaylistPlayerListener
playlistChanged in interface IPlaylistPlayerListenertarget - the "target" (or the product) of the operation - for example
for copy/move operations this interval contains added items,
for delete operation the interval is empty. May be
null if the target is not known. Semantically,
the target should contain tracks that were 'produced' by the
operation and they should be the target of the next operation.
This implies that the playlist view should make these tracks
appear selected.public void randomChanged(Random random)
IPlaylistPlayerListener
randomChanged in interface IPlaylistPlayerListenerrandom - new random value, never null.public void repeatChanged(Repeat repeat)
IPlaylistPlayerListener
repeatChanged in interface IPlaylistPlayerListenerrepeat - new repeat value, never null.
public void trackChanged(PlaylistItem track,
boolean play,
int positionMillis)
IPlaylistPlayerListener
trackChanged in interface IPlaylistPlayerListenertrack - the new track, may be null - in this case the
playback is stopped.play - if true then the track is already being played
(or is about to be played).positionMillis - the starting playback position in milliseconds.
public void trackPositionChanged(int position,
boolean playing)
IPlaylistPlayerListener
A position in the track was changed. This is only due to
PlaylistPlayer.seek(int) - it is never invoked periodically as
the playback progresses. This event is not invoked when a playback is
started with non-zero start seek time.
Note that the playback may be paused.
trackPositionChanged in interface IPlaylistPlayerListenerposition - the new position in milliseconds.playing - if true then playback is activated, if
false then the playback is paused. This event is
not invoked when the playback is stopped.public void update(Interval select)
AbstractListControllerAbstractListController.recomputeListItems() is
invoked and the list view contents are updated.
update in class AbstractListControllerselect - reset selection to this interval.protected void onAction(ActionsEnum action)
AbstractController
onAction in class AbstractCollectionControlleraction - the action to takeprotected void performZoom(boolean zoom)
AbstractController
performZoom in class AbstractListControllerzoom - true zoom the controller in, false
zoom the controller out.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||