|
||||||||||
| 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.PlaylistManagerController
public final class PlaylistManagerController
Controls the playlist manager.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class sk.baka.ambient.activity.main.AbstractController |
|---|
AbstractController.Listener |
| Field Summary |
|---|
| 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 | |
|---|---|
PlaylistManagerController(MainActivity mainActivity)
Creates new playlist manager controller instance. |
|
| Method Summary | |
|---|---|
boolean |
isReadOnly()
Checks if the list view is currently read-only. |
void |
itemActivated(int index,
Object model)
The item was activated, either by clicking on it or using a keyboard. |
void |
loadPlaylist(String name)
Loads playlist with given name. |
protected void |
onAction(ActionsEnum action)
Called when an action button is pressed. |
protected void |
performZoom(boolean zoom)
Zooms, or un-zooms the controller. |
protected void |
recomputeListItems()
Recomputes the model. |
void |
removeItems(Interval remove)
Remove these items from the list. |
void |
savePlaylistWizard(Context context)
Navigates user through a 'save playlist' wizard. |
void |
update(GesturesListView listView,
View itemView,
int index,
Object model)
An item view is being drawn (or re-drawn) on screen. |
| Methods inherited from class sk.baka.ambient.activity.main.AbstractListController |
|---|
canComputeItems, canHighlight, computeTracks, destroy, dropItems, getClipboard, getHint, highlightChanged, isComputeTracksLong, isComputeTracksOnlineOp, moveItems, moveItemsByOne, setClipboard, update |
| 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 |
| Constructor Detail |
|---|
public PlaylistManagerController(MainActivity mainActivity)
mainActivity - | Method Detail |
|---|
protected void onAction(ActionsEnum action)
AbstractController
onAction in class AbstractControlleraction - the action to takepublic void savePlaylistWizard(Context context)
context - the context.protected void recomputeListItems()
AbstractListControllermodel. You don't have
to call the ModelHolder.notifyModified() - it is called
automatically after the method finishes.
recomputeListItems in class AbstractListControllerpublic boolean isReadOnly()
IGestureListViewListener
isReadOnly in interface IGestureListViewListenerisReadOnly in class AbstractListControllertrue if the view cannot be modified,
false otherwise.
public void itemActivated(int index,
Object model)
IGestureListViewListener
index - the index of the item.model - the model for the item.public void loadPlaylist(String name)
name - the name of the playlist.public void removeItems(Interval remove)
IGestureListViewListenerRemove these items from the list. The list view sets the highlight automatically to zero interval.
This operation is invoked even when IGestureListViewListener.isReadOnly() returns
false as some use cases activates a "Go Back" activity
instead of deleting items.
removeItems in interface IGestureListViewListenerremoveItems in class AbstractListControllerremove - remove these items. The interval is not null
however it may be empty.
public void update(GesturesListView listView,
View itemView,
int index,
Object model)
IGestureListViewListenerGesturesListView.getModel() list.
The only exception is the EOP special item. For more information please
read here.
listView - the listview containing the viewitemView - the view representing a single itemindex - the index in the GesturesListView.getModel() list. May
point outside of the model list only when drawing an EOP item.model - The model object, taken from the
GesturesListView.getModel() list. This value may
optionally be the MutableListAdapter.EOP_MODEL_MARKER
object - in this case the special EndOfPlaylist item must be
drawn.protected 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 | |||||||||