net.sf.tacos.ajax.components
Class DropTarget

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.BaseComponent
              extended by net.sf.tacos.ajax.components.DropTarget
All Implemented Interfaces:
Locatable, LocationHolder, org.apache.tapestry.IComponent, org.apache.tapestry.IRender, org.apache.tapestry.ITemplateComponent

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

Drag and drop component. Using the supplied list of draggable components/html elements creates a drop target area that dragged items can be added to.

Author:
jkuhnert

Constructor Summary
DropTarget()
           
 
Method Summary
abstract  Collection getAcceptsTagType()
          Type of tags target accepts
abstract  AjaxWebRequest getAjaxWebRequest()
          Injected ajax request
abstract  Object getDragSource()
          List item source parameter
abstract  String getDragSourceClass()
          Drag source class
abstract  String getDragSourceElement()
          Drag source element
abstract  AjaxDirectLink getDragSourceLink()
          Action to take when element dropped onto target
abstract  String getDragSourceTag()
          Drag source tag
abstract  String getOnDragOut()
          Drag out action
abstract  String getOnDragOver()
          Drag over action
abstract  String getOnDrop()
          Drop action
abstract  org.apache.tapestry.IScript getScript()
          Autocompleter script
abstract  boolean isInsertDragSource()
          Whether or not to allow insertion of source element
protected  void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
           
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, enterActiveState, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty
 
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

DropTarget

public DropTarget()
Method Detail

getAjaxWebRequest

public abstract AjaxWebRequest getAjaxWebRequest()
Injected ajax request


getScript

public abstract org.apache.tapestry.IScript getScript()
Autocompleter script


getAcceptsTagType

public abstract Collection getAcceptsTagType()
Type of tags target accepts


getDragSource

public abstract Object getDragSource()
List item source parameter


getDragSourceElement

public abstract String getDragSourceElement()
Drag source element


getDragSourceClass

public abstract String getDragSourceClass()
Drag source class


getDragSourceTag

public abstract String getDragSourceTag()
Drag source tag


getDragSourceLink

public abstract AjaxDirectLink getDragSourceLink()
Action to take when element dropped onto target


isInsertDragSource

public abstract boolean isInsertDragSource()
Whether or not to allow insertion of source element


getOnDragOver

public abstract String getOnDragOver()
Drag over action


getOnDragOut

public abstract String getOnDragOut()
Drag out action


getOnDrop

public abstract String getOnDrop()
Drop action


renderComponent

protected void renderComponent(org.apache.tapestry.IMarkupWriter writer,
                               org.apache.tapestry.IRequestCycle cycle)
Overrides:
renderComponent in class org.apache.tapestry.BaseComponent
See Also:
AbstractComponent.renderComponent(org.apache.tapestry.IMarkupWriter, org.apache.tapestry.IRequestCycle)