Package lupos.gui.operatorgraph.visualeditor.visualrif.guielements

Examples of lupos.gui.operatorgraph.visualeditor.visualrif.guielements.RulePanel


  public void initRule() {
    if (this.getDocumentName() == null) {
      this.setDocumentName(this.visualRifEditor.getDocumentContainer().getNameOfActiveElement());
    }
    final RuleContainer ruleContainer = this.visualRifEditor.getRuleContainer();
    final RulePanel rp = ruleContainer.createNewRule(this.getDocumentName(),this.getRuleName());
    this.setRulePanel(rp);
    this.setRuleName(rp.getRuleName());
    this.setInitRule(true);
  }
View Full Code Here


    return this.rules.get(ruleName);
  }

  public RulePanel createNewRule(final String documentName){
    final String name = this.checkName("Rule", "Rule", 0);
    this.activeRule = new RulePanel(this.visualRifEditor, name);
    this.rules.put(name, this.activeRule);
    this.visualRifEditor.getTreePane().addNewRule(this.activeRule,documentName);
    this.printRules();
    final TreePath path = this.activeRule.getRulePath();
    this.visualRifEditor.getDocumentContainer().getActiveDocument().getListOfRules().add(name);
View Full Code Here

    return this.activeRule;
  }

  public RulePanel createNewRule(final String documentName, final String ruleName){
    final String name = this.checkName(ruleName, ruleName, 0);
    this.activeRule = new RulePanel(this.visualRifEditor, name);
    this.rules.put(name, this.activeRule);
    this.visualRifEditor.getTreePane().addNewRule(this.activeRule,documentName);
    this.printRules();
    final TreePath path = this.activeRule.getRulePath();
    this.visualRifEditor.getDocumentContainer().getActiveDocument().getListOfRules().add(name);
View Full Code Here

  }

  @Override
  @SuppressWarnings("unchecked")
  public void removeElement(final String elem, final TreeNode parentNode) {
    final RulePanel ret = this.rules.remove(elem);
    this.activeRule = null;
    this.visualRifEditor.setRightComponent(new JPanel());
  }
View Full Code Here

TOP

Related Classes of lupos.gui.operatorgraph.visualeditor.visualrif.guielements.RulePanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.