def getComponentIndex(self, component):
        """Returns the index of the given component.

        @param component:
                   The component to look up.
        @return: The index of the component or -1 if the component
                is not a child.
        """
        try:
            return self.components.index(component)
        except __HOLE__:
            return -1
dataset/ETHPy150Open rwl/muntjac/muntjac/ui/abstract_ordered_layout.py/AbstractOrderedLayout.getComponentIndex