public Component getNewRuleComponent(Rule rule)
  {
    if(rule instanceof PrioritizedConditionalRule)
      return new PrioritizedConditionalRulePanel((PrioritizedConditionalRule) rule, this);
    else if(rule instanceof ConditionalRule)
      return new ConditionalRulePanel((ConditionalRule) rule, this);
    else if(rule != null)
      return new RulePanel(rule);
    return null;
  }