ExtJS笔记--Ext.form.FormPanel(三)

1、afterlayout( Ext.Container this, ContainerLayout layout ) 

由关联的布局管理器(layout manager)分配好容器上的组件后触发

侦听器会传入以下的参数:

this : Ext.Container 

layout : ContainerLayout 此容器的ContainerLayout实现。

 

2、beforeadd( Ext.Container this, Ext.Component component, Number index ) 

Ext.Component要加入或要插入到容器之前触发的事件 

侦听器会传入以下的参数:

this : Ext.Container 

component : Ext.Component 要添加的组件

index : Number 组件将会加入到容器items集合中的那个索引。

 

3、beforeremove( Ext.Container this, Ext.Component component ) 

任何从该容器身上移除Ext.Component之前触发的事件。若句柄返回false则取消移除。

侦听器会传入以下的参数:

this : Ext.Container 

component : Ext.Component 要被移除的组件 

 

4、add( Ext.Container this, Ext.Component component, Number index ) 

@bubbles Ext.Component加入或插入到容器成功后触发的事件 

侦听器会传入以下的参数:

this : Ext.Container 

component : Ext.Component 已添加的组件 

index : Number 组件加入到容器items集合中的索引。 

 

5、remove( Ext.Container this, Ext.Component component ) 

@bubbles 任何从该容器身上移除Ext.Component成功后触发的事件。 

侦听器会传入以下的参数:

this : Ext.Container 

component : Ext.Component 被移除的组件对象 

 

6、resize( Ext.Component this, Number adjWidth, Number adjHeight, Number rawWidth, Number rawHeight ) 

当组件调节过大小后触发。

侦听器会传入以下的参数:

this : Ext.Component 

adjWidth : Number 矩形调整过后的宽度。

adjHeight : Number 矩形调整过后的高度。

rawWidth : Number 原来设定的宽度。

rawHeight : Number 原来设定的高度。

 

7、move( Ext.Component this, Number x, Number y ) 

当组件被移动过之后触发。

侦听器会传入以下的参数:

this : Ext.Component 

x : Number 新x位置。

y : Number 新y位置。

 

8、disable( Ext.Component this ) 

当组件禁用后触发。

this : Ext.Component   

 

9、enable( Ext.Component this ) 

当组件被启用后触发。 

侦听器会传入以下的参数:

this : Ext.Component   

 

10、beforeshow( Ext.Component this ) 

当组件显示出来之前触发。如返回false则阻止显示。 

侦听器会传入以下的参数:

this : Ext.Component   

 

11、show( Ext.Component this ) 

当组件显示后触发。

侦听器会传入以下的参数:

this : Ext.Component   

 

12、beforehide( Ext.Component this ) 

当组件将要隐藏的时候触发。如返回false则阻止隐藏。

侦听器会传入以下的参数:

this : Ext.Component   

 

13、hide( Ext.Component this ) 

当组件隐藏后触发。

侦听器会传入以下的参数:

this : Ext.Component   

 

14、beforerender( Ext.Component this ) 

当组件渲染之前触发。如返回false则阻止渲染。

侦听器会传入以下的参数:

this : Ext.Component   

 

15、render( Ext.Component this ) 

组件渲染之后触发。

侦听器会传入以下的参数:

this : Ext.Component   

 

16、afterrender( Ext.Component this ) 

组件销毁之前触发。如返回false则停止销毁。 

侦听器会传入以下的参数:

this : Ext.Component   

 

17、beforedestroy( Ext.Component this ) 

组件销毁之前触发。如返回false则停止销毁。 

侦听器会传入以下的参数:

this : Ext.Component   

 

18、destroy( Ext.Component this ) 

组件销毁之后触发

侦听器会传入以下的参数:

this : Ext.Component   

 

19、beforestaterestore( Ext.Component this, Object state ) 

当组件的状态复原之前触发。如返回false则停止复原状态。

侦听器会传入以下的参数:

this : Ext.Component 

state : Object StateProvider返回状态的哈希表。如果事件被撤销,那么applyState会送入一个状态对象(state object)。 默认下状态对象的属性会复制到此组件身上。可以提供自定义的状态复原方法,重写便可。

 

20、staterestore( Ext.Component this, Object state ) 

当组件的状态复原后触发。

侦听器会传入以下的参数:

this : Ext.Component 

state : Object StateProvider返回状态的哈希表。如果事件被撤销,那么applyState会送入一个状态对象(state object)。 默认下状态对象的属性会复制到此组件身上。可以提供自定义的状态复原方法,重写便可。 

 

21、beforestatesave( Ext.Component this, Object state ) 

当组件的状态被保存到state provider之前触发。如返回false则停止保存。 

侦听器会传入以下的参数:

this : Ext.Component 

state : Object 保存状态的哈希表。该项的值由Component的getState()方法执行后返回。 由于该方法是一个虚拟的方法,因此需由程序员所指定实作的方法,以便能够指定状态是怎么表征的。缺省下Ext.Component提供一个null的实现(空的实现)。

 

22、statesave( Ext.Component this, Object state ) 

当组件的状态被保存到state provider后触发。

侦听器会传入以下的参数:

this : Ext.Component 

state : Object 保存状态的哈希表。该项的值由Component的getState()方法执行后返回。 由于该方法是一个虚拟的方法,因此需由程序员所指定,拿便是要指定状态是怎么表征的。缺省下Ext.Component提供一个null的实现(空的实现)。 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值