org.musicontroller.gui.components
Class EditLink

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.EditLink
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 EditLink
extends org.apache.tapestry.BaseComponent

This component is a clickable link to an edit screen for a MusiController object. The object to edit is passed in the mandatory "object" property of the component. The object class is passed in the required "objectClass" property. The EditLink component inspects the object class and chooses a page to edit the object with. The EditLink then writes the object to the chosen pages and renders it. The "returnPage" parameter selects the page to render after editing the object has completed. This property defaults to the page the EditLink component is bound to.

Version:
$Id: EditLink.java,v 1.1 2010/03/16 18:55:42 varienaja Exp $
Author:
deksels

Field Summary
 
Fields inherited from class org.apache.tapestry.AbstractComponent
_body, _bodyCount
 
Constructor Summary
EditLink()
           
 
Method Summary
 void editObject(org.apache.tapestry.IRequestCycle cycle)
           
abstract  java.lang.Class getEditClass()
           
abstract  java.lang.Object getEditObject()
          Getter for the object to edit.
abstract  java.lang.String getReturnPage()
          Getter for the name of the page to render on completion of the edit.
 
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

EditLink

public EditLink()
Method Detail

getEditObject

public abstract java.lang.Object getEditObject()
Getter for the object to edit. This property is a required parameter of the EditLink component.

Returns:
The object the EditLink must send to the page the EditLink refers to.

getEditClass

public abstract java.lang.Class getEditClass()

getReturnPage

public abstract java.lang.String getReturnPage()
Getter for the name of the page to render on completion of the edit. Default value is the page where the EditLink component is bound to. The returnPage must be a valid name of a Tapestry page in the application.

Returns:
Page name of the screen to render after the edit completes.

editObject

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


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