my FlowPanel (CellListTest) has an onLoad method, and when I attach the FlowPanel in the right hand side of HorizontalSplitPanel (horizontalSplitPanel) as follow:
Out of my expectation, the onLoad() method of CellListTest will run without explicitly calling it, why will this happen?
I see the API
FlowPanel and FlowPanel has no default onLoad() method or onLoad event, so why will it run automatically when I run
?
peter tong
Ranch Hand
Joined: Mar 15, 2008
Posts: 219
posted
0
Oh, sorry, I found the API about onLoad()
onLoad
protected void onLoad()
A Panel's onLoad method will be called after all of its children are attached.