Class Index | File Index

Classes


Class BCL.ProgressBar


Extends BCL.WebControl.
进度条控件
Defined in: WebControls.Debug.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
BCL.ProgressBar(rawData)
Method Summary
Method Attributes Method Name and Description
<private>  
取消
<private>  
findElement(suffix)
查找元素
 
获取容器标识
 
获取当前操作元素
 
获取客户端进度条更新事件
 
获取主进度条百分比元素
 
获取主进度条元素
 
获取主进度条总和元素
 
获取主进度条值元素
 
获取副进度条百分比元素
 
获取副进度条元素
 
获取副进度条总和元素
 
获取副进度条值元素
 
获取速度元素
 
获取花费时间元素
 
获取剩余时间元素
 
hide()
隐藏
<private>  
init()
初始化
<private>  
初始化控件
<private>  
进度条更新通知
 
重置
 
show()
显示
<private>  
updateHorizontalProgressBar(element, percent)
更新横向进度条
 
updateLayout(progressData)
更新布局
<private>  
updateTextIndicator(element, text)
更新文本值
<private>  
updateVerticalProgressBar(element, percent)
更新纵向进度条
Methods borrowed from class BCL.WebControl:
get_clientID, get_element, get_events, get_form, get_rawData, get_stateElement, get_stateObject, get_stateValue, get_uniqueID, load, preInit, set_stateByObject, set_stateValue, trackClientState
Methods borrowed from class BCL.EventHandlerList:
add_handler, contains, get_handlerList, invoke, remove_handler, remove_handlerList
Event Summary
Event Attributes Event Name and Description
 
ProgressUpdating(sender, progressData)
进度条更新
Class Detail
BCL.ProgressBar(rawData)
Parameters:
{Object} rawData
状态
Method Detail
<private> cancel()
取消

<private> {Object} findElement(suffix)
查找元素
Parameters:
{String} suffix
标识后缀
Returns:
{Object}

{String} get_containerID()
获取容器标识
Returns:
{String}

{Object} get_currentOperationElement()
获取当前操作元素
Returns:
{Object}

{String} get_onClientProgressUpdating()
获取客户端进度条更新事件
Returns:
{String}

{Object} get_primaryPercentElement()
获取主进度条百分比元素
Returns:
{Object}

{Object} get_primaryProgressBarElement()
获取主进度条元素
Returns:
{Object}

{Object} get_primaryTotalElement()
获取主进度条总和元素
Returns:
{Object}

{Object} get_primaryValueElement()
获取主进度条值元素
Returns:
{Object}

{Object} get_secondaryPercentElement()
获取副进度条百分比元素
Returns:
{Object}

{Object} get_secondaryProgressBarElement()
获取副进度条元素
Returns:
{Object}

{Object} get_secondaryTotalElement()
获取副进度条总和元素
Returns:
{Object}

{Object} get_secondaryValueElement()
获取副进度条值元素
Returns:
{Object}

{Object} get_speedElement()
获取速度元素
Returns:
{Object}

{Object} get_timeElapsedElement()
获取花费时间元素
Returns:
{Object}

{Object} get_timeEstimatedElement()
获取剩余时间元素
Returns:
{Object}

hide()
隐藏

<private> init()
初始化

<private> initializeControls()
初始化控件

<private> raiseOnProgressUpdating(progressData)
进度条更新通知
Parameters:
{Object} progressData
进度数据

reset()
重置

show()
显示

<private> updateHorizontalProgressBar(element, percent)
更新横向进度条
Parameters:
{Object} element
元素
{Float} percent
百分比

updateLayout(progressData)
更新布局
var progressData = { 
PrimaryPercent: 10, SecondaryPercent: 5,
PrimaryTotal: 100, PrimaryValue: 1,
PrimaryPercent: 5, SecondaryTotal: 10,
SecondaryValue: 20, SecondaryPercent: 25,
SecondaryPercent: 15, CurrentOperationText: "Loading...",
TimeElapsed: 100, TimeEstimated: 100, 
Speed: 200
};
var pb = BCL.get_component("pb1");

pb.updateLayout(progressData2);
Parameters:
{Object} progressData
进度数据

<private> updateTextIndicator(element, text)
更新文本值
Parameters:
{Object} element
元素
{String} text
文本

<private> updateVerticalProgressBar(element, percent)
更新纵向进度条
Parameters:
{Object} element
元素
{Float} percent
百分比
Event Detail
ProgressUpdating(sender, progressData)
进度条更新
var pb = BCL.get_component("pb1");
    
pb.add_handler("ProgressUpdating", function(sender, progressData) { });
Parameters:
{BCL.ProgressBar} sender
发送方
{Object} progressData
进度数据

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Dec 12 2011 15:08:38 GMT+0800 (CST)