Class TDraggable

Description

TDraggable is a control which can be dragged

This control will make "draggable" control.

  • version: $Id: TDraggable.php 2517 2008-10-13 13:40:34Z tof $
  • license: http://www.pradosoft.com/license
  • copyright: Copyright © 2008, PradoSoft
  • author: Christophe BOULAIN (Christophe.Boulain@gmail.com)

Located in /Web/UI/ActiveControls/TDraggable.php (line 21)

TComponent
   |
   --TApplicationComponent
      |
      --TControl
         |
         --TWebControl
            |
            --TPanel
               |
               --TDraggable
Method Summary
void addAttributesToRender (mixed $writer)
string getClientClassName ()
CDraggableConstraint getConstraint ()
boolean getGhosting ()
string getHandle ()
boolean getRevert ()
void setConstraint (CDraggableConstraint $value)
boolean setGhosting (mixed $value)
void setHandle (string $value)
void setRevert (boolean $value)
Methods
addAttributesToRender (line 106)

Ensure that the ID attribute is rendered and registers the javascript code for initializing the active control.

  • access: protected
void addAttributesToRender (mixed $writer)

Redefinition of:
TPanel::addAttributesToRender()
Adds attributes to renderer.
getClientClassName (line 123)

Gets the name of the javascript class responsible for performing postback for this control.

This method overrides the parent implementation.

  • return: the javascript class name
  • access: protected
string getClientClassName ()
getConstraint (line 87)

Determine if the element should be constrainted in one direction or not

  • access: public
CDraggableConstraint getConstraint ()
getGhosting (line 67)

Determine if the element should be cloned when dragged If true, Clones the element and drags the clone, leaving the original in place until the clone is dropped.

Defaults to false

  • return: true to clone the element
  • access: public
boolean getGhosting ()
getHandle (line 36)

Get the handle id or css class

  • access: public
string getHandle ()
getPostBackOptions (line 132)

Gets the post back options for this textbox.

  • access: protected
array getPostBackOptions ()
getRevert (line 46)

Determine if draggable element should revert to it orginal position upon release in an non-droppable container.

  • return: true to revert
  • access: public
boolean getRevert ()
setConstraint (line 96)

Set wether the element should be constrainted in one direction

  • access: public
void setConstraint (CDraggableConstraint $value)
  • CDraggableConstraint $value
setGhosting (line 78)

Sets wether the element should be cloned when dragged If true, Clones the element and drags the clone, leaving the original in place until the clone is dropped.

Defaults to false

  • return: true to clone the element
  • access: public
boolean setGhosting (mixed $value)
setHandle (line 27)

Set the handle id or css class

  • access: public
void setHandle (string $value)
  • string $value
setRevert (line 56)

Sets whether the draggable element should revert to it orginal position upon release in an non-droppable container.

  • access: public
void setRevert (boolean $value)
  • boolean $value: true to revert

Inherited Methods

Inherited From TPanel

TPanel::addAttributesToRender()
TPanel::createStyle()
TPanel::getBackImageUrl()
TPanel::getDefaultButton()
TPanel::getDirection()
TPanel::getGroupingText()
TPanel::getHorizontalAlign()
TPanel::getScrollBars()
TPanel::getTagName()
TPanel::getWrap()
TPanel::renderBeginTag()
TPanel::renderEndTag()
TPanel::setBackImageUrl()
TPanel::setDefaultButton()
TPanel::setDirection()
TPanel::setGroupingText()
TPanel::setHorizontalAlign()
TPanel::setScrollBars()
TPanel::setWrap()

Inherited From TWebControl

TWebControl::addAttributesToRender()
TWebControl::clearStyle()
TWebControl::copyBaseAttributes()
TWebControl::createStyle()
TWebControl::getAccessKey()
TWebControl::getBackColor()
TWebControl::getBorderColor()
TWebControl::getBorderStyle()
TWebControl::getBorderWidth()
TWebControl::getCssClass()
TWebControl::getDisplay()
TWebControl::getFont()
TWebControl::getForeColor()
TWebControl::getHasStyle()
TWebControl::getHeight()
TWebControl::getStyle()
TWebControl::getTabIndex()
TWebControl::getTagName()
TWebControl::getToolTip()
TWebControl::getWidth()
TWebControl::render()
TWebControl::renderBeginTag()
TWebControl::renderContents()
TWebControl::renderEndTag()
TWebControl::setAccessKey()
TWebControl::setBackColor()
TWebControl::setBorderColor()
TWebControl::setBorderStyle()
TWebControl::setBorderWidth()
TWebControl::setCssClass()
TWebControl::setDisplay()
TWebControl::setForeColor()
TWebControl::setHeight()
TWebControl::setStyle()
TWebControl::setTabIndex()
TWebControl::setToolTip()
TWebControl::setWidth()

Inherited From TControl

TControl::__construct()
TControl::addedControl()
TControl::addParsedObject()
TControl::addToPostDataLoader()
TControl::applyStyleSheetSkin()
TControl::autoBindProperty()
TControl::autoDataBindProperties()
TControl::bindProperty()
TControl::broadcastEvent()
TControl::bubbleEvent()
TControl::clearChildState()
TControl::clearControlState()
TControl::clearNamingContainer()
TControl::clearViewState()
TControl::convertUniqueIdToClientId()
TControl::createChildControls()
TControl::createControlCollection()
TControl::dataBind()
TControl::dataBindChildren()
TControl::dataBindProperties()
TControl::ensureChildControls()
TControl::findControl()
TControl::findControlsByID()
TControl::findControlsByType()
TControl::focus()
TControl::getAdapter()
TControl::getAllowChildControls()
TControl::getAttribute()
TControl::getAttributes()
TControl::getChildControlsCreated()
TControl::getClientID()
TControl::getControls()
TControl::getControlStage()
TControl::getControlState()
TControl::getCustomData()
TControl::getEnabled()
TControl::getEnableTheming()
TControl::getEnableViewState()
TControl::getHasAdapter()
TControl::getHasAttributes()
TControl::getHasChildInitialized()
TControl::getHasControls()
TControl::getHasInitialized()
TControl::getHasLoaded()
TControl::getHasLoadedPostData()
TControl::getHasPreRendered()
TControl::getID()
TControl::getNamingContainer()
TControl::getPage()
TControl::getParent()
TControl::getRegisteredObject()
TControl::getSkinID()
TControl::getSourceTemplateControl()
TControl::getTemplateControl()
TControl::getUniqueID()
TControl::getViewState()
TControl::getVisible()
TControl::hasAttribute()
TControl::initRecursive()
TControl::isDescendentOf()
TControl::isObjectRegistered()
TControl::loadRecursive()
TControl::loadState()
TControl::loadStateRecursive()
TControl::onDataBinding()
TControl::onInit()
TControl::onLoad()
TControl::onPreRender()
TControl::onUnload()
TControl::preRenderRecursive()
TControl::raiseBubbleEvent()
TControl::registerObject()
TControl::removeAttribute()
TControl::removedControl()
TControl::render()
TControl::renderChildren()
TControl::renderControl()
TControl::saveState()
TControl::saveStateRecursive()
TControl::setAdapter()
TControl::setAttribute()
TControl::setChildControlsCreated()
TControl::setControlStage()
TControl::setControlState()
TControl::setCustomData()
TControl::setEnabled()
TControl::setEnableTheming()
TControl::setEnableViewState()
TControl::setID()
TControl::setPage()
TControl::setSkinID()
TControl::setTemplateControl()
TControl::setViewState()
TControl::setVisible()
TControl::trackViewState()
TControl::traverseChildControls()
TControl::unbindProperty()
TControl::unloadRecursive()
TControl::unregisterObject()
TControl::__get()

Inherited From TApplicationComponent

TApplicationComponent::getApplication()
TApplicationComponent::getRequest()
TApplicationComponent::getResponse()
TApplicationComponent::getService()
TApplicationComponent::getSession()
TApplicationComponent::getUser()
TApplicationComponent::publishAsset()
TApplicationComponent::publishFilePath()

Inherited From TComponent

TComponent::addParsedObject()
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::createdOnTemplate()
TComponent::detachEventHandler()
TComponent::evaluateExpression()
TComponent::evaluateStatements()
TComponent::getEventHandlers()
TComponent::getSubProperty()
TComponent::hasEvent()
TComponent::hasEventHandler()
TComponent::hasProperty()
TComponent::raiseEvent()
TComponent::setSubProperty()
TComponent::__get()
TComponent::__set()
Class Constants

Documentation generated on Sun, 24 May 2009 16:47:27 -0400 by phpDocumentor 1.3.0RC4