|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.BaseComponent
org.apache.tapestry.AbstractPage
org.apache.tapestry.html.BasePage
org.musicontroller.gui.importer.MusicArchive
public abstract class MusicArchive
Screen for showing music archive contents, editing properties and keywords and importing the archive contents into the MusiController database.
The functions of this screen:
Page properties:
archive
property.
importer
property holds an object capable of importing music into the musicontroller.
This object implements the importer
interface.
feedback
property provides a mechanism for giving messages to the user.
The page attempts to find a suitable cover image:
MusicArchiveBean
Field Summary |
---|
Fields inherited from class org.apache.tapestry.AbstractComponent |
---|
_body, _bodyCount |
Constructor Summary | |
---|---|
MusicArchive()
|
Method Summary | |
---|---|
void |
activateExternalPage(java.lang.Object[] args,
org.apache.tapestry.IRequestCycle cycle)
Interpret parameters from other pages. |
void |
addToExistingPlaylistChangedListener(org.apache.tapestry.event.BrowserEvent event)
|
org.apache.tapestry.engine.ILink |
editCoverArt(org.apache.tapestry.IRequestCycle cycle)
Goto the EditCoverArt page. |
void |
fillBandName(org.apache.tapestry.IRequestCycle cycle,
MusicArchiveBean bean)
Fill the song entries with a band name with the name entered into the first row. |
void |
fillKeywords(org.apache.tapestry.IRequestCycle cycle,
MusicArchiveBean bean)
Fill the song entries with keywords the same as entered into the first row. |
void |
fillPlaylistName(org.apache.tapestry.IRequestCycle cycle,
MusicArchiveBean bean)
Fill the song entries without a playlist name with the name inserted into the first row. |
void |
fillSongIndex(org.apache.tapestry.IRequestCycle cycle,
MusicArchiveBean bean)
Fill the song entries without a song index with a reasonable song index value. |
abstract MusicArchiveBean |
getArchive()
This property holds the bean with information about the songs in the archive. |
abstract org.apache.tapestry.engine.IEngineService |
getExternalService()
|
abstract Importer |
getImporter()
The importer object knows how to import music into the database. |
abstract McService |
getMcService()
|
abstract org.apache.tapestry.engine.IEngineService |
getPageService()
|
abstract PlaylistImportProperties |
getPlaylistEntry()
Getter for the property that iterates over the playlist entries in the archive. |
abstract org.apache.tapestry.services.ServiceMap |
getServiceMap()
|
void |
importArchive(org.apache.tapestry.IRequestCycle cycle,
MusicArchiveBean bean)
Imports the MusicArchiveBean into the database. |
boolean |
isExistingPlaylist()
Returns true if a persistent playlist with the same name as playlistEntry exists or false otherwise. |
void |
pageBeginRender(org.apache.tapestry.event.PageEvent event)
Prepare rendering the page. |
void |
playlistNameChangedListener(org.apache.tapestry.event.BrowserEvent event)
|
abstract void |
setFeedback(java.lang.String message)
Sets a message for the user. |
Methods inherited from class org.apache.tapestry.html.BasePage |
---|
getResponseContentType |
Methods inherited from class org.apache.tapestry.AbstractPage |
---|
addPageAttachListener, addPageBeginRenderListener, addPageDetachListener, addPageEndRenderListener, addPageValidateListener, attach, beginPageRender, cleanupAfterRender, detach, endPageRender, firePageAttached, firePageBeginRender, firePageDetached, firePageEndRender, firePageValidate, getChangeObserver, getEngine, getExtendedId, getIdPath, getLocale, getNestedComponent, getOutputEncoding, getPageName, getRequestCycle, hasFormComponents, hasWidgets, removePageAttachListener, removePageBeginRenderListener, removePageDetachListener, removePageEndRenderListener, removePageValidateListener, renderPage, setChangeObserver, setHasFormComponents, setHasWidgets, setLocale, setPageName, validate |
Methods inherited from class org.apache.tapestry.BaseComponent |
---|
addOuter, finishLoad, getContainedRenderers, getInnerRenderers, renderComponent |
Methods inherited from class org.apache.tapestry.AbstractComponent |
---|
addAsset, addBody, addComponent, checkActiveLock, enterActiveState, equals, finishLoad, generateClientId, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getBoundId, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getId, getListeners, getMessages, getNamespace, getPage, getRenderWorker, getSpecification, getSpecifiedId, getTemplateTagName, hasEvents, hashCode, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, peekClientId, prepareForRender, render, renderBody, renderIdAttribute, renderInformalParameters, setBinding, setClientId, setContainedComponent, setContainer, setHasEvents, setId, setNamespace, setPage, setTemplateTagName, toString, triggerEvent |
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
---|
getLocation, setLocation |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.tapestry.IPage |
---|
addPageAttachListener, addPageBeginRenderListener, addPageDetachListener, addPageEndRenderListener, addPageValidateListener, attach, beginPageRender, detach, endPageRender, firePageAttached, getChangeObserver, getEngine, getLocale, getNestedComponent, getPageName, getPropertyChangeObserver, getRequestCycle, getResponseContentType, hasFormComponents, hasWidgets, removePageAttachListener, removePageBeginRenderListener, removePageDetachListener, removePageEndRenderListener, removePageValidateListener, renderPage, setChangeObserver, setHasFormComponents, setHasWidgets, setLocale, setPageName, validate |
Methods inherited from interface org.apache.tapestry.IComponent |
---|
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, peekClientId, renderBody, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName |
Methods inherited from interface org.apache.tapestry.IRender |
---|
render |
Methods inherited from interface org.apache.hivemind.LocationHolder |
---|
setLocation |
Methods inherited from interface org.apache.hivemind.Locatable |
---|
getLocation |
Constructor Detail |
---|
public MusicArchive()
Method Detail |
---|
@InjectObject(value="engine-service:page") public abstract org.apache.tapestry.engine.IEngineService getPageService()
@InjectObject(value="engine-service:external") public abstract org.apache.tapestry.engine.IEngineService getExternalService()
public abstract org.apache.tapestry.services.ServiceMap getServiceMap()
public abstract McService getMcService()
public abstract MusicArchiveBean getArchive()
public abstract void setFeedback(java.lang.String message)
message
- The message to show.public abstract Importer getImporter()
public abstract PlaylistImportProperties getPlaylistEntry()
public void activateExternalPage(java.lang.Object[] args, org.apache.tapestry.IRequestCycle cycle)
CoverArtEdit
page to select a cover
art image. That page returns the selected cover art by calling back to this page with three
parameters. The first is the playlist id (which is null in this case). The second is the
selected CoverArtSearchResult. The third is the playlist name that was passed to the CoverArtEdit
page.
Test if this second parameter is non-null, and set the selected cover art if it is.
activateExternalPage
in interface org.apache.tapestry.IExternalPage
public void pageBeginRender(org.apache.tapestry.event.PageEvent event)
pageBeginRender
in interface org.apache.tapestry.event.PageBeginRenderListener
public org.apache.tapestry.engine.ILink editCoverArt(org.apache.tapestry.IRequestCycle cycle)
public boolean isExistingPlaylist()
public void importArchive(org.apache.tapestry.IRequestCycle cycle, MusicArchiveBean bean)
cycle
- The Tapestry MVC cyclebean
- The MusicArchiveBean to import into the databasepublic void fillSongIndex(org.apache.tapestry.IRequestCycle cycle, MusicArchiveBean bean)
cycle
- The tapestry MVC cycle.bean
- The MusicArchive bean that holds the information
about the songs in the archive.public void fillPlaylistName(org.apache.tapestry.IRequestCycle cycle, MusicArchiveBean bean)
cycle
- The tapestry MVC cycle.bean
- The MusicArchive bean that holds the information
about the songs in the archive.public void fillBandName(org.apache.tapestry.IRequestCycle cycle, MusicArchiveBean bean)
cycle
- The tapestry MVC cycle.bean
- The MusicArchive bean that holds the information
about the songs in the archive.public void fillKeywords(org.apache.tapestry.IRequestCycle cycle, MusicArchiveBean bean)
cycle
- The tapestry MVC cycle.bean
- The MusicArchive bean that holds the information
about the songs in the archive.@EventListener(targets="playlistNameEditBox", events="onchange", autoSubmit=true) public void playlistNameChangedListener(org.apache.tapestry.event.BrowserEvent event)
@EventListener(targets="addToExistingPlaylist", events="onchange", autoSubmit=true) public void addToExistingPlaylistChangedListener(org.apache.tapestry.event.BrowserEvent event)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |