Saves the state for this item to the scaffold.

def save(self):
        """
        Saves the state for this item to the scaffold.
        """
        enabled = self.checkState(0) == QtCore.Qt.Checked
        self._element.set('name', nativestring(self.text(0)))
        self._element.set('enabled', nativestring(enabled))
        
        for child in self.children():
            child.save()