public Sheet getSheet ( ) { if ( sheet != null ) { return sheet ; } UIComponent parent = getParent ( ) ; while ( parent != null && ! ( parent instanceof Sheet ) ) { parent = parent . getParent ( ) ; } return ( Sheet ) parent ; }
Get the parent sheet