int getIndexOfChild ( final WComponent childComponent ) { ComponentModel model = getComponentModel ( ) ; List < WComponent > children = model . getChildren ( ) ; return children == null ? - 1 : children . indexOf ( childComponent ) ; }
Retrieves the index of the given child .