invalidateDisplayList

当多次改变控件的某些属性(如 高,宽,数据)后,调用该方法以便一次性的刷新相关属性和布局等。较之于一次一次的自动刷新,更有效率。

 

invalidateDisplayList():void--Calling this method results in a call to the component's validateDisplayList() method before the display list is rendered.

invalidateProperties():void--Calling this method results in a call to the component's validateProperties() method before the display list is rendered.

invalidateSize():void--Calling this method results in a call to the component's validateSize() method before the display list is rendered.

validateNow():void--Validates and updates the properties and layout of this object by immediately calling validateProperties(), validateSize(), and validateDisplayList(), if necessary.   

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章