@Override
  public void onOkPressed() {
    int port = 0;
    try {
      port = Integer.parseInt(ruleKeyComposite.getListenPort());
    } catch (NumberFormatException nfe) {
      openErrorDialog("Illeagal input! Please check listen port again");
      return;
    }

    ProxyRuleKey ruleKey = new ProxyRuleKey(port);
    doRuleUpdateRule(ruleKey);
  }
 @Override
 public void setInput(Rule rule) {
   super.setInput(rule);
   ruleKeyComposite.setInput(rule.getKey());
 }