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

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


  }

  void doActions(int condAndAttrs, List<ActionCol> actionCols, String[] row, RuleModel rm) {
    List<LabelledAction> actions = new ArrayList<LabelledAction>();
    for (int i = 0; i < actionCols.size(); i++) {
      ActionCol c = actionCols.get(i);
      String cell = row[condAndAttrs + i + 2];
      if (validCell(cell)) {
        if (c instanceof ActionInsertFactCol) {
          ActionInsertFactCol ac = (ActionInsertFactCol)c;
          LabelledAction a = find(actions, ac.boundName);
View Full Code Here


  }

  void doActions(int condAndAttrs, List<ActionCol> actionCols, String[] row, RuleModel rm) {
    List<LabelledAction> actions = new ArrayList<LabelledAction>();
    for (int i = 0; i < actionCols.size(); i++) {
      ActionCol c = actionCols.get(i);
      String cell = row[condAndAttrs + i + GuidedDecisionTable.INTERNAL_ELEMENTS];
            if (!validCell(cell)) {
                cell = c.defaultValue;
            }
      if (validCell(cell)) {
View Full Code Here

  }

  void doActions(int condAndAttrs, List<ActionCol> actionCols, String[] row, RuleModel rm) {
    List<LabelledAction> actions = new ArrayList<LabelledAction>();
    for (int i = 0; i < actionCols.size(); i++) {
      ActionCol c = actionCols.get(i);
      String cell = row[condAndAttrs + i + GuidedDecisionTable.INTERNAL_ELEMENTS];
            if (!validCell(cell)) {
                cell = c.defaultValue;
            }
      if (validCell(cell)) {
View Full Code Here

  }

  void doActions(int condAndAttrs, List<ActionCol> actionCols, String[] row, RuleModel rm) {
    List<LabelledAction> actions = new ArrayList<LabelledAction>();
    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);
View Full Code Here

  private ListBox loadPatterns() {
    Set vars = new HashSet();
    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

      if (c.header.equals(dt.groupField)) {
        list.setSelectedIndex(list.getItemCount() - 1);
      }
    }
    for (Iterator iterator = dt.actionCols.iterator(); iterator.hasNext();) {
      ActionCol c = (ActionCol) iterator.next();
      list.addItem(c.header, c.header);
      if (c.header.equals(dt.groupField)) {
        list.setSelectedIndex(list.getItemCount() - 1);
      }
    }
View Full Code Here

  }

  private void refreshActionsWidget() {
    this.actionsConfigWidget.clear();
    for (int i = 0; i < dt.actionCols.size(); i++) {
      ActionCol c = (ActionCol) dt.actionCols.get(i);
      HorizontalPanel hp = new HorizontalPanel();
      hp.add(removeAction(c));
      hp.add(editAction(c));
      hp.add(new SmallLabel(c.header));
      actionsConfigWidget.add(hp);
View Full Code Here

    };
    colCount++;

    for (int i = 0; i < dt.actionCols.size(); i++) {
      //here we could also deal with numeric type?
      final ActionCol c = dt.actionCols.get(i);
      fds[colCount-1] = new StringFieldDef(c.header);

      cols[colCount= new ColumnConfig() {
        {
          setHeader(c.header);
View Full Code Here

  }

  void doActions(int condAndAttrs, List<ActionCol> actionCols, String[] row, RuleModel rm) {
    List<LabelledAction> actions = new ArrayList<LabelledAction>();
    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);
View Full Code Here

TOP

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

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.