def METHOD_NAME(
    self, mapper: QtWidgets.QDataWidgetMapper, viewing_rule_type: ViewingRuleType
) -> None:
    """
    Map and show the interface needed to edit this rule's type.
    """
    if viewing_rule_type == ViewingRuleType.RULE_COLOR_SPACE:
        mapper.addMapping(self.name_edit_a, self.model.NAME.column)
        mapper.addMapping(self.custom_keys_table_a, self.model.CUSTOM_KEYS.column)
        self._param_stack.setCurrentIndex(1)
    else:  # ViewingRuleType.RULE_ENCODING
        mapper.addMapping(self.name_edit_b, self.model.NAME.column)
        mapper.addMapping(self.custom_keys_table_b, self.model.CUSTOM_KEYS.column)
        self._param_stack.setCurrentIndex(2)