|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.baka.ambient.activity.main.AbstractController sk.baka.ambient.activity.main.AbstractListController sk.baka.ambient.activity.main.cb.AbstractCollectionController sk.baka.ambient.activity.main.AmpacheController
public final class AmpacheController
Browses the Ampache server and optionally allows a synchronization of tracks.
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.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 | |
---|---|
AmpacheController(Activity mainActivity,
GesturesListView playlistView)
Creates new ampache controller. |
Method Summary | |
---|---|
(package private) void |
ampacheClientChanged()
Invoked when the Ampache client configuration changes. |
void |
clipboardChanged()
The clipboard has been changed. |
void |
configChanged(ConfigurationBean config)
The configuration was changed. |
void |
destroy()
The controller is about to be destroyed. |
void |
offline(boolean offline)
Informs that the application has entered an offline/online mode. |
protected void |
onAction(ActionsEnum action)
Called when an action button is pressed. |
protected void |
performZoom(boolean zoom)
Zooms, or un-zooms the controller. |
void |
stateChanged(AppState state)
The application state was changed. |
protected void |
visibilityChanged(boolean visible)
Invoked when the component visibility changes. |
Methods inherited from class sk.baka.ambient.activity.main.cb.AbstractCollectionController |
---|
canComputeItems, canHighlight, computeTracks, coverLoaded, 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, update |
Methods inherited from class sk.baka.ambient.activity.main.AbstractController |
---|
equals, flipVisibility, hashCode, hide, initButtonBar, initButtonBar, initButtonBar, isDestroyed, isVisible, isZoomed, setVisibility, show, zoom |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AmpacheController(Activity mainActivity, GesturesListView playlistView)
mainActivity
- the owning activity.playlistView
- the playlist view.Method Detail |
---|
protected void onAction(ActionsEnum action)
AbstractController
onAction
in class AbstractCollectionController
action
- the action to takevoid ampacheClientChanged()
public void destroy()
AbstractController
super()
if you override
this method!
destroy
in class AbstractCollectionController
public void clipboardChanged()
IApplicationListener
clipboardChanged
in interface IApplicationListener
public void configChanged(ConfigurationBean config)
IApplicationListener
configChanged
in interface IApplicationListener
config
- the configuration instance, must NOT be modified.public void offline(boolean offline)
IApplicationListener
offline
in interface IApplicationListener
offline
- if true
then we are currently offline. If
false
then we are online.public void stateChanged(AppState state)
IApplicationListener
stateChanged
in interface IApplicationListener
state
- the state instance, must NOT be modified.protected void visibilityChanged(boolean visible)
AbstractController
visibilityChanged
in class AbstractController
visible
- new visibility flag.protected void performZoom(boolean zoom)
AbstractController
performZoom
in class AbstractListController
zoom
- 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 |