打印版式

Class Ext.dd.StatusProxy

Package:Ext.dd
Class:StatusProxy
Extends:Object
Defined In:StatusProxy.js
A specialized drag proxy that supports a drop status icon, Ext.Layer styles and auto-repair. This is the default drag proxy used by all Ext.dd components.

属性   -  方法   -  事件   -  设置选项

公共属性

此类没有公共属性。

公共方法

方法 定义对象
  StatusProxy(Object config) StatusProxy
  getEl() : Ext.Layer StatusProxy
Returns the underlying proxy Ext.Layer
  getGhost() : Ext.Element StatusProxy
Returns the ghost element
  hide(Boolean clear) : void StatusProxy
Hides the proxy
  repair(Array xy, Function callback, Object scope) : void StatusProxy
Causes the proxy to return to its position of origin via an animation. Should be called after an invalid drop operat...
  reset(Boolean clearGhost) : void StatusProxy
Resets the status indicator to the default dropNotAllowed value
  setStatus(String cssClass) : void StatusProxy
Updates the proxy's visual element to indicate the status of whether or not drop is allowed over the current target e...
  show() : void StatusProxy
Displays this proxy
  stop() : void StatusProxy
Stops the repair animation if it's currently running
  sync() : void StatusProxy
Force the Layer to sync its shadow and shim positions to the element
  update(String html) : void StatusProxy
Updates the contents of the ghost element

公共事件

此类没有公共事件。

设置选项

设置选项 定义对象
  dropAllowed : String StatusProxy
The CSS class to apply to the status element when drop is allowed (defaults to "x-dd-drop-ok").
  dropNotAllowed : String StatusProxy
The CSS class to apply to the status element when drop is not allowed (defaults to "x-dd-drop-nodrop").

构造函数

StatusProxy

public function StatusProxy(Object config)
参数:
  • config : Object

方法详情

getEl

public function getEl()
Returns the underlying proxy Ext.Layer
参数:
  • 无。
返回:
  • Ext.Layer
    el
This method is defined by StatusProxy.

getGhost

public function getGhost()
Returns the ghost element
参数:
  • 无。
返回:
  • Ext.Element
    el
This method is defined by StatusProxy.

hide

public function hide(Boolean clear)
Hides the proxy
参数:
  • clear : Boolean
    True to reset the status and clear the ghost contents, false to preserve them
返回:
  • void
This method is defined by StatusProxy.

repair

public function repair(Array xy, Function callback, Object scope)
Causes the proxy to return to its position of origin via an animation. Should be called after an invalid drop operation by the item being dragged.
参数:
  • xy : Array
    元素的XY位置 ([x, y])
  • callback : Function
    The function to call after the repair is complete
  • scope : Object
    The scope in which to execute the callback
返回:
  • void
This method is defined by StatusProxy.

reset

public function reset(Boolean clearGhost)
Resets the status indicator to the default dropNotAllowed value
参数:
  • clearGhost : Boolean
    True to also remove all content from the ghost, false to preserve it
返回:
  • void
This method is defined by StatusProxy.

setStatus

public function setStatus(String cssClass)
Updates the proxy's visual element to indicate the status of whether or not drop is allowed over the current target element.
参数:
  • cssClass : String
    The css class for the new drop status indicator image
返回:
  • void
This method is defined by StatusProxy.

show

public function show()
Displays this proxy
参数:
  • 无。
返回:
  • void
This method is defined by StatusProxy.

stop

public function stop()
Stops the repair animation if it's currently running
参数:
  • 无。
返回:
  • void
This method is defined by StatusProxy.

sync

public function sync()
Force the Layer to sync its shadow and shim positions to the element
参数:
  • 无。
返回:
  • void
This method is defined by StatusProxy.

update

public function update(String html)
Updates the contents of the ghost element
参数:
  • html : String
    The html that will replace the current innerHTML of the ghost element
返回:
  • void
This method is defined by StatusProxy.

设置详情

dropAllowed

dropAllowed : String
The CSS class to apply to the status element when drop is allowed (defaults to "x-dd-drop-ok").
This config option is defined by StatusProxy.

dropNotAllowed

dropNotAllowed : String
The CSS class to apply to the status element when drop is not allowed (defaults to "x-dd-drop-nodrop").
This config option is defined by StatusProxy.

Ext - Copyright © 2006-2007 Ext JS, LLC
All rights reserved.