public int getChildCount ( ) { if ( ! m_bHasLoaded ) { NodeData data = ( NodeData ) this . getUserObject ( ) ; if ( ( data == null ) || ( ! data . isLeaf ( ) ) ) this . loadChildren ( ) ; } return super . getChildCount ( ) ; }
If hasLoaded is false meaning the children have not yet been loaded loadChildren is messaged and super is messaged for the return value .