net.sf.tacos.components.scriptaculous
Class Draggable

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by net.sf.tacos.components.scriptaculous.Draggable
All Implemented Interfaces:
Locatable, LocationHolder, org.apache.tapestry.IComponent, org.apache.tapestry.IDirectEvent, org.apache.tapestry.internal.Component, org.apache.tapestry.IRender

public abstract class Draggable
extends org.apache.tapestry.AbstractComponent

Implementation of the Draggables.

This component makes html elements draggable. Draggables can be dragged and dropped into Droppables.

Example:

<div jwcid="@tacos:Draggable" draggables="ognl:{'id1', 'id2', 'id3'}" />

Since:
4.1
Author:
Igor Drobiazko
See Also:
Droppable

Field Summary
 
Fields inherited from class org.apache.tapestry.AbstractComponent
_body, _bodyCount
 
Constructor Summary
Draggable()
           
 
Method Summary
abstract  List getDraggables()
          Returns String[] or Collection of element ids to make draggable.
abstract  org.apache.tapestry.IScript getScript()
          Injected IScript.
abstract  boolean isGhosting()
          If set to true, clones the element and drags the clone, leaving the original in place until the clone is dropped.
abstract  boolean isRevert()
          If set to true, the element returns to its original position when the drags ends.
protected  void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
          
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, equals, finishLoad, finishLoad, generateClientId, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getBoundId, getClientId, getComponent, getComponents, getContainedComponent, getContainedRenderers, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getInnerRenderers, 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.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

Draggable

public Draggable()
Method Detail

renderComponent

protected void renderComponent(org.apache.tapestry.IMarkupWriter writer,
                               org.apache.tapestry.IRequestCycle cycle)

Specified by:
renderComponent in class org.apache.tapestry.AbstractComponent

getDraggables

public abstract List getDraggables()
Returns String[] or Collection of element ids to make draggable.


isGhosting

public abstract boolean isGhosting()
If set to true, clones the element and drags the clone, leaving the original in place until the clone is dropped.


isRevert

public abstract boolean isRevert()
If set to true, the element returns to its original position when the drags ends.


getScript

public abstract org.apache.tapestry.IScript getScript()
Injected IScript.



Copyright © 2005-2008 SourceForge.net. All Rights Reserved.