Package org.drools.guvnor.client.modeldriven.dt

Examples of org.drools.guvnor.client.modeldriven.dt.ActionInsertFactCol


  public void testRoundTrip() {

    GuidedDecisionTable dt = new GuidedDecisionTable();

    dt.actionCols.add(new ActionInsertFactCol());
    ActionSetFieldCol set = new ActionSetFieldCol();
    set.factField = "foo";
    dt.actionCols.add(set);

    dt.getMetadataCols().add(new MetadataCol());
View Full Code Here


    public ActionInsertColumn(SuggestionCompletionEngine sce, final GuidedDecisionTable dt, final Command refreshGrid, final ActionInsertFactCol col, final boolean isNew) {
    this.setModal(false);
    this.dt = dt;
    this.sce = sce;
    this.editingCol = new ActionInsertFactCol();
    editingCol.boundName = col.boundName;
    editingCol.type = col.type;
    editingCol.factField = col.factField;
    editingCol.factType = col.factType;
    editingCol.header = col.header;
View Full Code Here

    ListBox patterns = new ListBox();

    for (Object o : dt.actionCols) {
      ActionCol col = (ActionCol) o;
      if (col instanceof ActionInsertFactCol) {
        ActionInsertFactCol c = (ActionInsertFactCol) col;
        if (!vars.contains(c.boundName)) {
          patterns.addItem(c.factType + " [" + c.boundName + "]", c.factType + " " + c.boundName);
          vars.add(c.boundName);
        }
      }
View Full Code Here

              }
            }
          , asf, false);
          ed.show();
        } else if (c instanceof ActionInsertFactCol) {
          ActionInsertFactCol asf = (ActionInsertFactCol) c;
          ActionInsertColumn ed = new ActionInsertColumn(getSCE(), dt, new Command() {
              public void execute() {
                scrapeData(-1);
                refreshGrid();
                refreshActionsWidget();
View Full Code Here

          }

          private void showInsert() {
            ActionInsertColumn ins = new ActionInsertColumn(getSCE(), dt, new Command() {
              public void execute() { newActionAdded(); }
              }, new ActionInsertFactCol(), true);
            ins.show();
          }

          private void showSet() {
            ActionSetColumn set = new ActionSetColumn(getSCE(), dt, new Command() {
View Full Code Here

    for (int i = 0; i < actionCols.size(); i++) {
      ActionCol c = actionCols.get(i);
      String cell = row[condAndAttrs + i + GuidedDecisionTable.INTERNAL_ELEMENTS];
      if (validCell(cell)) {
        if (c instanceof ActionInsertFactCol) {
          ActionInsertFactCol ac = (ActionInsertFactCol)c;
          LabelledAction a = find(actions, ac.boundName);
          if (a == null) {
            a = new LabelledAction();
            a.boundName  = ac.boundName;
            ActionInsertFact ins = new ActionInsertFact(ac.factType);
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.modeldriven.dt.ActionInsertFactCol

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.