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

Examples of lupos.gui.operatorgraph.visualeditor.visualrif.guielements.operatorPanel.RuleOperatorPanel


  private void serializeRules() {
    for (int i = 0; i < this.visualRifEditor.getRuleContainer().getRulePanelList().size(); i++) {

      final StringBuffer sb = this.visualRifEditor.getRuleContainer().getRulePanelList().get(i).getRulePanel().getRuleEditorPane().serializeRule();

      final RuleOperatorPanel rop = (RuleOperatorPanel)this.visualRifEditor.getRuleContainer().getRulePanelList().get(i).getComponent();

      rop.setSerializedOperator(sb);
    }
  }
View Full Code Here


    final int pos = this.getArrayPosition(ruleName);

    this.visualGraphs.get(0).remove(pos);

    final RuleOperatorPanel rop = (RuleOperatorPanel)c[pos];
    rop.delete();
  }
View Full Code Here

  public void updateRuleNameInVisualGraphsComponentArray(final String oldName, final String newName){
    final Component[] c = this.visualGraphs.get(0).getComponents();
    for(int i = 0 ; i < c.length ; i++){
      if(c[i] instanceof RuleOperatorPanel){
        final RuleOperatorPanel rop = (RuleOperatorPanel)c[i];
        if(rop.getRuleName().equals(oldName)){
          rop.setRuleName(newName);
          rop.setRuleLabelName(newName);
        }
      }
    }
  }
View Full Code Here

  private int getArrayPosition(final String name){
    final Component[] c = this.visualGraphs.get(0).getComponents();

    for(int i = 0 ; i < c.length ; i++){
      if(c[i] instanceof RuleOperatorPanel){
        final RuleOperatorPanel rop = (RuleOperatorPanel)c[i];
        if(rop.getRuleName().equals(name)){
          return i;
        }
      }
    }
    return 9999;
View Full Code Here

            && ( GroupEditorPane.this.rulesOnCanvasCnt-1 == GroupEditorPane.this.rulesCnt )
            ) {

          GroupEditorPane.this.rulesCnt++;

          final RuleOperatorPanel rop = (RuleOperatorPanel) GroupEditorPane.this.visualGraphs.get(0).getComponent(GroupEditorPane.this.componentCnt - 1);

          rop.setRuleName(GroupEditorPane.this.rulePanel.getRuleName());
        } // End Rules

        // Prefix
        if (GroupEditorPane.this.componentCnt > 0
            && ( GroupEditorPane.this.visualGraphs.get(0).getComponent(GroupEditorPane.this.componentCnt - 1).isVisible() )
View Full Code Here

  private void addRuleListenerToComponent(final int pos){
    this.getVisualGraphs().get(0).getComponent(pos).addMouseListener(new MouseAdapter(){
      @Override
      public void mouseClicked(final MouseEvent e){
        if (e.getClickCount() == 2){
          final RuleOperatorPanel rop = (RuleOperatorPanel) e.getComponent();
          final String ruleName = rop.getRuleName();
          GroupEditorPane.this.visualRifEditor.getTreePane().getTree_documents().setSelectionPath( GroupEditorPane.this.visualRifEditor.getRuleContainer().getRuleByName(ruleName).getRulePath());
          GroupEditorPane.this.visualRifEditor.getRuleContainer().showRule(ruleName);
        }
      }
    } );
View Full Code Here

  }

  private void serializeRules() {
    for (int i = 0; i < this.visualRifEditor.getRuleContainer().getRulePanelList().size(); i++) {
      final StringBuffer sb = this.visualRifEditor.getRuleContainer().getRulePanelList().get(i).getRulePanel().getRuleEditorPane().serializeRule();
      final RuleOperatorPanel rop = (RuleOperatorPanel)this.visualRifEditor.getRuleContainer().getRulePanelList().get(i).getComponent();
      rop.setSerializedOperator(sb);
    }
  }
View Full Code Here

  public void deleteRule(final String ruleName) {
    final Component[] c = this.visualGraphs.get(0).getComponents();
    final int pos = this.getArrayPosition(ruleName);
    this.visualGraphs.get(0).remove(pos);
    final RuleOperatorPanel rop = (RuleOperatorPanel)c[pos];
    rop.delete();
  }
View Full Code Here

  public void updateRuleNameInVisualGraphsComponentArray(final String oldName, final String newName){
    final Component[] c = this.visualGraphs.get(0).getComponents();
    for(int i = 0 ; i < c.length ; i++){
      if(c[i] instanceof RuleOperatorPanel){
        final RuleOperatorPanel rop = (RuleOperatorPanel)c[i];
        if(rop.getRuleName().equals(oldName)){
          rop.setRuleName(newName);
          rop.setRuleLabelName(newName);
        }
      }
    }
  }
View Full Code Here

  private int getArrayPosition(final String name){
    final Component[] c = this.visualGraphs.get(0).getComponents();
    for(int i = 0 ; i < c.length ; i++){
      if(c[i] instanceof RuleOperatorPanel){
        final RuleOperatorPanel rop = (RuleOperatorPanel)c[i];
        if(rop.getRuleName().equals(name)){
          return i;
        }
      }
    }
    return 9999;
View Full Code Here

TOP

Related Classes of lupos.gui.operatorgraph.visualeditor.visualrif.guielements.operatorPanel.RuleOperatorPanel

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.