Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FlowPanel onLoad() event?

 
peter tong
Ranch Hand
Posts: 246
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 246
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Overrides:
onLoad in class Widget

See Also:
Widget.onLoad()

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic