|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolution.player.ui.artwork.SongContextView
public abstract class SongContextView
An song context view can show any content inside a given composite. It is
expected, that the context view shows context information about the current
song, i.e. the corresponding album cover, band information, lyrics, concert
information... See AlbumCoverView
if you want to show the album cover
for the current song.
A song context view can be contributed through the
com.evolution.player.ui.artworkCoverView
extension point defined
in the com.evolution.player.ui project.
The following protocol is guaranteed to hold First call is
initialize(IInitializationData)
followed by a call to
createContent(Composite)
. Both methods are only called once only
called once.
Anytime activate()
is called followed by any number of calls to
setCurrentSong(MediaInfo)
followed by a call to
deactivate()
AlbumCoverView
Nested Class Summary | |
---|---|
static interface |
SongContextView.IInitializationData
A set of data which can be used to initialize this object. |
Constructor Summary | |
---|---|
SongContextView()
|
Method Summary | |
---|---|
abstract void |
activate()
Activate that view. |
abstract Control |
createContent(Composite parent)
Create the content of this view. |
abstract void |
deactivate()
Deactivate this view. |
abstract Action[] |
getToolBarActions()
All actions to show in the views tool bar. |
abstract void |
initialize(SongContextView.IInitializationData data)
Initialize this view with the given data. |
abstract void |
setCurrentSong(MediaInfo info)
Set the current song info. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SongContextView()
Method Detail |
---|
public abstract void initialize(SongContextView.IInitializationData data)
data
- the data to use to initialize this objectpublic abstract Control createContent(Composite parent)
parent
- the parent of the view
public abstract void activate()
setCurrentSong(MediaInfo)
and deactivate()
public abstract void setCurrentSong(MediaInfo info)
info
- the info about the current songpublic abstract void deactivate()
public abstract Action[] getToolBarActions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |