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
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
__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 )