org.musicontroller.gui.components
Class Border

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.BaseComponent
              extended by org.musicontroller.gui.components.Border
All Implemented Interfaces:
org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, org.apache.tapestry.IComponent, org.apache.tapestry.IDirectEvent, org.apache.tapestry.internal.Component, org.apache.tapestry.IRender, org.apache.tapestry.ITemplateComponent

public abstract class Border
extends org.apache.tapestry.BaseComponent

Version:
$Id: Border.java,v 1.1 2010/03/16 18:55:42 varienaja Exp $
Author:
Arjan Verstoep

Field Summary
 
Fields inherited from class org.apache.tapestry.AbstractComponent
_body, _bodyCount
 
Constructor Summary
Border()
           
 
Method Summary
 void doRequest(org.apache.tapestry.IRequestCycle cycle, long songid)
           
 void doRequestPlaylist(org.apache.tapestry.IRequestCycle cycle, long playlistid)
          Request a playlist.
 void doSearch(org.apache.tapestry.IRequestCycle cycle)
           
abstract  Dao getDao()
           
 long getInsertedId()
          Returns the playlistId for all inserted songs of this month.
abstract  java.lang.String getSearchString()
           
abstract  java.lang.String getSongName()
           
 java.lang.String getTitle()
           
 long getTop25Id()
          Returns the playlistId for a top25 of this month
abstract  User getUser()
           
 boolean isAdmin()
           
 boolean isLoggedon()
           
 void logoff(org.apache.tapestry.IRequestCycle cycle)
           
abstract  void setSearchString(java.lang.String searchstring)
           
abstract  void setSongName(java.lang.String name)
           
 void showSuggestions(org.apache.tapestry.IRequestCycle cycle, java.lang.String query)
           
 
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, cleanupAfterRender, enterActiveState, equals, finishLoad, generateClientId, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getBoundId, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, 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.IComponent
addAsset, addBody, addComponent, enterActiveState, 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

Border

public Border()
Method Detail

getSongName

public abstract java.lang.String getSongName()

setSongName

public abstract void setSongName(java.lang.String name)

getSearchString

public abstract java.lang.String getSearchString()

setSearchString

public abstract void setSearchString(java.lang.String searchstring)

getDao

public abstract Dao getDao()

getUser

public abstract User getUser()

showSuggestions

public void showSuggestions(org.apache.tapestry.IRequestCycle cycle,
                            java.lang.String query)

doRequest

public void doRequest(org.apache.tapestry.IRequestCycle cycle,
                      long songid)

doRequestPlaylist

public void doRequestPlaylist(org.apache.tapestry.IRequestCycle cycle,
                              long playlistid)
Request a playlist. Adds all songs in the playlist to the request list of the DJ of this user.

Parameters:
cycle - The Tapestry MVC cycle.
playlistid - The id of the requested playlist TODO: The DJ object should have a real requestPlaylist() method. This is not possible at the moment because the DJ does not have DAO access.

isLoggedon

public boolean isLoggedon()

isAdmin

public boolean isAdmin()

logoff

public void logoff(org.apache.tapestry.IRequestCycle cycle)

doSearch

public void doSearch(org.apache.tapestry.IRequestCycle cycle)

getTitle

public java.lang.String getTitle()
Returns:
The title to use in the generated html.

getTop25Id

public long getTop25Id()
Returns the playlistId for a top25 of this month

Returns:

getInsertedId

public long getInsertedId()
Returns the playlistId for all inserted songs of this month.

Returns:


Copyright © 2010 A.J.V.. All Rights Reserved.