PHP Класс Prado\Web\UI\JuiControls\TJuiDroppable

TJuiDroppable is an extension to {@link TActivePanel} based on jQuery-UI's {@link http://jqueryui.com/droppable/ Droppable} interaction. When a {@link TJuiDraggable} is dropped over a TJuiDroppable panel, the {@link onDrop OnDrop} event will be triggered. The event hanler will receive a {@link TJuiEventParameter} object containing a reference to the dropped control in the DraggableControl property. drag me drop it over me public function drop1_ondrop($sender, $param) { $draggable=$param->DraggableControl; $offset=$param->getCallbackParameter()->offset; $target=$param->getCallbackParameter()->target->offset; $top=$offset->top - $target->top; $left=$offset->left - $target->left; $this->label1->Text="Dropped ".$draggable->ID." at:
Top=".$top." Left=".$left; }
С версии: 3.3
Наследование: extends Prado\Web\UI\ActiveControls\TActivePanel, implements Prado\Web\UI\JuiControls\IJuiOptions, implements Prado\Web\UI\ActiveControls\ICallbackEventHandler
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_options

Открытые методы

Метод Описание
OnOut ( object $params ) Raises the OnOut event
OnOver ( object $params ) Raises the OnOver event
__construct ( ) Creates a new callback control, sets the adapter to TActiveControlAdapter. If you override this class, be sure to set the adapter appropriately by, for example, by calling this constructor.
getOptions ( ) : TJuiControlOptions Object containing defined javascript options
getValidEvents ( ) : array() Array containing valid javascript events
getValidOptions ( ) : array() Array containing valid javascript options
getWidget ( ) : string
getWidgetID ( ) : string
onActivate ( object $params ) Raises the OnActivate event
onCallback ( $param ) This method is invoked when a callback is requested. The method raises 'OnCallback' event to fire up the event handlers. If you override this method, be sure to call the parent implementation so that the event handler can be invoked.
onCreate ( object $params ) Raises the OnCreate event
onDeactivate ( object $params ) Raises the OnDeactivate event
onDrop ( object $params ) Raises the OnDrop event
raiseCallbackEvent ( $param ) Raises callback event. This method is required by the {@link ICallbackEventHandler} interface.

Защищенные методы

Метод Описание
addAttributesToRender ( $writer ) Ensure that the ID attribute is rendered and registers the javascript code for initializing the active control.
getPostBackOptions ( ) : array

Описание методов

OnOut() публичный Метод

Raises the OnOut event
public OnOut ( object $params )
$params object event parameters

OnOver() публичный Метод

Raises the OnOver event
public OnOver ( object $params )
$params object event parameters

__construct() публичный Метод

Creates a new callback control, sets the adapter to TActiveControlAdapter. If you override this class, be sure to set the adapter appropriately by, for example, by calling this constructor.
public __construct ( )

addAttributesToRender() защищенный Метод

Ensure that the ID attribute is rendered and registers the javascript code for initializing the active control.
protected addAttributesToRender ( $writer )

getOptions() публичный Метод

Object containing defined javascript options
public getOptions ( ) : TJuiControlOptions
Результат TJuiControlOptions

getPostBackOptions() защищенный Метод

protected getPostBackOptions ( ) : array
Результат array list of callback options.

getValidEvents() публичный Метод

Array containing valid javascript events
public getValidEvents ( ) : array()
Результат array()

getValidOptions() публичный Метод

Array containing valid javascript options
public getValidOptions ( ) : array()
Результат array()

getWidget() публичный Метод

public getWidget ( ) : string
Результат string the name of the jQueryUI widget method

getWidgetID() публичный Метод

public getWidgetID ( ) : string
Результат string the clientid of the jQueryUI widget element

onActivate() публичный Метод

Raises the OnActivate event
public onActivate ( object $params )
$params object event parameters

onCallback() публичный Метод

This method is invoked when a callback is requested. The method raises 'OnCallback' event to fire up the event handlers. If you override this method, be sure to call the parent implementation so that the event handler can be invoked.
public onCallback ( $param )

onCreate() публичный Метод

Raises the OnCreate event
public onCreate ( object $params )
$params object event parameters

onDeactivate() публичный Метод

Raises the OnDeactivate event
public onDeactivate ( object $params )
$params object event parameters

onDrop() публичный Метод

Raises the OnDrop event
public onDrop ( object $params )
$params object event parameters

raiseCallbackEvent() публичный Метод

Raises callback event. This method is required by the {@link ICallbackEventHandler} interface.
public raiseCallbackEvent ( $param )

Описание свойств

$_options защищенное свойство

protected $_options