public function getChildren($class_name = null)
    {
        if ($class_name === null) {
            return $this->children;
        }

        $out = array();

        foreach ($this->children as $child_widget) {
            if ($child_widget instanceof $class_name) {
                $out[] = $child_widget;
            }
        }

        return $out;
    }