PHP Класс Prado\Web\UI\ActiveControls\TDropContainer

Warning: this class is deprecatd and will be removed in a future release. We suggest you to investigate using {@link TJuiDroppable} instead. When a TDraggable component is dropped into a TDropContainer, the {@link OnDrop OnDrop} event is raised. The {@link TDropContainerEventParameter} param will contain the dropped control. Properties : {@link setAcceptCssClass AcceptCssClass} : a coma delimited classname of elements that the drop container can accept. {@link setHoverCssClass HoverCssClass}: CSS classname of the container when a draggable element hovers over the container. Events: {@link OnDrop OnDrop} : raised when a TDraggable control is dropped. The dropped control id is encapsulated in the event parameter, as well as mouse coordinates and key modifiers status
Устаревший: Use TJuiDroppable instead
Автор: Christophe BOULAIN ([email protected])
Наследование: extends Prado\Web\UI\WebControls\TPanel, implements Prado\Web\UI\ActiveControls\IActiveControl, implements Prado\Web\UI\ActiveControls\ICallbackEventHandler
Показать файл Открыть проект

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

Метод Описание
__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.
createChildControls ( ) Creates child control Override parent implementation to create a container which will contain all child controls. This container will be a TActivePanel, in order to allow user to update its content on callback.
getAcceptCssClass ( ) : string Gets the Css class name that this container can accept.
getActiveControl ( ) : TBaseActiveControl
getClientSide ( ) : TCallbackClientSide
getControls ( ) : TControlCollection Override parent implementation to return the container control collection.
getHoverCssClass ( ) : string Gets the Css class name used when a draggble element is hovering over this container.
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.
onDrop ( $dropParams ) Raises the onDrop event.
onPreRender ( $param ) Registers clientscripts
raiseCallbackEvent ( $param ) Raises callback event. This method is required bu {@link ICallbackEventHandler} interface.
render ( $writer ) Renders and replaces the panel's content on the client-side.
setAcceptCssClass ( $value ) Sets the Css class name that this container can accept.
setHoverCssClass ( $value ) Sets the Css class name used when a draggble element is hovering over this container.

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

Метод Описание
addAttributesToRender ( $writer ) Ensure that the ID attribute is rendered and registers the javascript code for initializing the active control.
getClientClassName ( ) : string Gets the name of the javascript class responsible for performing postback for this control.
getPostBackOptions ( ) : array Gets the post back options for this textbox.

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

__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 )

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

Creates child control Override parent implementation to create a container which will contain all child controls. This container will be a TActivePanel, in order to allow user to update its content on callback.
public createChildControls ( )

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

Gets the Css class name that this container can accept.
public getAcceptCssClass ( ) : string
Результат string

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

public getActiveControl ( ) : TBaseActiveControl
Результат TBaseActiveControl standard active control options.

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

This method overrides the parent implementation.
protected getClientClassName ( ) : string
Результат string the javascript class name

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

public getClientSide ( ) : TCallbackClientSide
Результат TCallbackClientSide client side request options.

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

Override parent implementation to return the container control collection.
public getControls ( ) : TControlCollection
Результат TControlCollection

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

Gets the Css class name used when a draggble element is hovering over this container.
public getHoverCssClass ( ) : string
Результат string css class name during draggable hover.

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

Gets the post back options for this textbox.
protected getPostBackOptions ( ) : array
Результат array

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 )

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

The drop parameters are encapsulated into a {@link TDropContainerEventParameter}
public onDrop ( $dropParams )

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

This method overrides the parent implementation and is invoked before render.
public onPreRender ( $param )

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

It raises the {@link onDrop OnDrop} event, then, the {@link onCallback OnCallback} event This method is mainly used by framework and control developers.
public raiseCallbackEvent ( $param )

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

When render() is called before the OnPreRender event, such as when render() is called during a callback event handler, the rendering is defered until OnPreRender event is raised.
public render ( $writer )

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

Sets the Css class name that this container can accept.
public setAcceptCssClass ( $value )

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

Sets the Css class name used when a draggble element is hovering over this container.
public setHoverCssClass ( $value )