public void freeAllSFields ( boolean bIncludeToolScreens ) { int iToolScreens = 0 ; while ( this . getSFieldCount ( ) > iToolScreens ) { // First, get rid of all child screens. ScreenField sField = this . getSField ( iToolScreens ) ; if ( ( ! bIncludeToolScreens ) && ( sField instanceof ToolScreen ) ) iToolScreens ++ ; else sField . free ( ) ; } }
Free all the child sFields .