Package org.drools.guvnor.client.common

Examples of org.drools.guvnor.client.common.InfoPopup


        //only show the drop down if we are not using fixed position.
        if (position == null) {
            HorizontalPanel hp0 = new HorizontalPanel();
            hp0.add(new HTML(constants.PositionColon()));
            hp0.add(positionCbo);
            hp0.add(new InfoPopup(constants.PositionColon(), constants.ConditionPositionExplanation()));
            popup.addRow(hp0);
        }

        HorizontalPanel hp = new HorizontalPanel();
        hp.add(choices);
View Full Code Here


        //only show the drop down if we are not using fixed position.
        if (position == null) {
            HorizontalPanel hp0 = new HorizontalPanel();
            hp0.add(new HTML(constants.PositionColon()));
            hp0.add(positionCbo);
            hp0.add(new InfoPopup(constants.PositionColon(), constants.ActionPositionExplanation()));
            popup.addRow(hp0);
        }

        HorizontalPanel hp = new HorizontalPanel();
        final ClickListener cl = new ClickListener() {
View Full Code Here

    private Widget getEditorWidget(final RuleMetadata rm, final int idx) {
        Widget editor;

        if (rm.attributeName.equals(LOCK_LHS)
                || rm.attributeName.equals(LOCK_RHS)) {
            editor = new InfoPopup(constants.FrozenAreas(), constants.FrozenExplanation());
        } else {
            editor = textBoxEditor(rm);
        }

        DirtyableHorizontalPane horiz = new DirtyableHorizontalPane();
View Full Code Here

        } );

        form.addAttribute( constants.LiteralValue() + ":",
                           widgets( lit,
                                    new InfoPopup( constants.Literal(),
                                                   constants.LiteralValTip() ) ) );
        form.addRow( new HTML( "<hr/>" ) );
        form.addRow( new SmallLabel( constants.AdvancedSection() ) );
        /*
         * no formula possible for a function
View Full Code Here

            }
        });

        form.addAttribute(constants.LiteralValue() + ":",
                widgets(lit,
                new InfoPopup(constants.Literal(),
                constants.ALiteralValueMeansTheValueAsTypedInIeItsNotACalculation())));
       
        if(model.isTemplate()){
          Button templateButton = new Button(constants.TemplateKey(), new ClickListener() {
              public void onClick(Widget arg0) {
                  value.nature = ActionFieldValue.TYPE_TEMPLATE;
                  value.value = " ";
                  makeDirty();
                  refresh();
                  form.hide();
              }
          });
          form.addAttribute(constants.TemplateKey() + ":",
                  widgets(templateButton,
                  new InfoPopup(constants.Literal(),
                  constants.ALiteralValueMeansTheValueAsTypedInIeItsNotACalculation())));
        }
       
        form.addRow(new HTML("<hr/>"));
        form.addRow(new SmallLabel(constants.AdvancedSection()));

        Button formula = new Button(constants.Formula());
        formula.addClickListener(new ClickListener() {

            public void onClick(Widget w) {
                value.nature = ActionFieldValue.TYPE_FORMULA;
                value.value = "=";
                makeDirty();
                refresh();
                form.hide();
            }
        });

        /*
         * If there is a bound variable that is the same type of the current
         * variable type, then show abutton
         */
        List<String> vars = model.getModel().getBoundFacts();
        List<String> vars2 = model.getModel().getRhsBoundFacts();
        for (String i : vars2) {
            vars.add(i);
        }
        for (String v : vars) {
            boolean createButton = false;
            Button variable = new Button(constants.BoundVariable());
            if (vars2.contains(v) == false) {
                FactPattern factPattern = model.getModel().getBoundFact(v);
                if (factPattern.factType.equals(this.variableType)) {
                    createButton = true;
                }
            } else {
                ActionInsertFact factPattern = model.getModel().getRhsBoundFact(v);
                if (factPattern.factType.equals(this.variableType)) {
                    createButton = true;
                }
            }
            if (createButton == true) {
                form.addAttribute(constants.BoundVariable() + ":",
                        variable);
                variable.addClickListener(new ClickListener() {

                    public void onClick(Widget w) {
                        value.nature = ActionFieldValue.TYPE_VARIABLE;
                        value.value = "=";
                        makeDirty();
                        refresh();
                        form.hide();
                    }
                });
                break;
            }
        }

        form.addAttribute(constants.Formula() + ":",
                widgets(formula,
                new InfoPopup(constants.Formula(),
                constants.FormulaTip())));

        // if (model != null){
        // for (int i=0;i< model.lhs.length;i++){
        // IPattern p = model.lhs[i];
View Full Code Here

                modeller.refreshWidget();
                popup.hide();
            }
        });

        InfoPopup infoComp = new InfoPopup(constants.MultipleFieldConstraints(), constants.MultipleConstraintsTip());

        HorizontalPanel horiz = new HorizontalPanel();
        horiz.add(composites);
        horiz.add(infoComp);
        popup.addAttribute(constants.MultipleFieldConstraint(), horiz);
View Full Code Here

                modeller.refreshWidget();
                popup.hide();
            }
        });

        InfoPopup infoComp = new InfoPopup(constants.MultipleFieldConstraints(), constants.MultipleConstraintsTip1());

        HorizontalPanel horiz = new HorizontalPanel();

        horiz.add(composites);
        horiz.add(infoComp);
View Full Code Here

  }

  private Widget howToTurnOn() {
    HorizontalPanel hp = new HorizontalPanel();
    hp.add(new HTML("<small><i>" + constants.TipAuthEnable() + "</i></small>"));
    InfoPopup pop = new InfoPopup(constants.EnablingAuthorization(), constants.EnablingAuthPopupTip());
    hp.add(pop);
    return hp;
  }
View Full Code Here

        final ListBox permTypeBox = new ListBox();
        permTypeBox.addItem(constants.Loading());

                HorizontalPanel hp = new HorizontalPanel();
                hp.add(permTypeBox);
                hp.add(new InfoPopup(constants.PermissionDetails(), constants.PermissionDetailsTip()));
        pop.addAttribute(constants.PermissionType(), hp);

        RepositoryServiceFactory.getService().listAvailablePermissionTypes(new GenericCallback<String[]>() {
          public void onSuccess(String[] items) {
            permTypeBox.clear();
View Full Code Here

                editingCol.valueList = valueList.getText();
            }
        } );
        HorizontalPanel vl = new HorizontalPanel();
        vl.add( valueList );
        vl.add( new InfoPopup( constants.ValueList(),
                               constants.ValueListsExplanation() ) );
        addAttribute( constants.optionalValueList(),
                      vl );

        final TextBox header = new TextBox();
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.common.InfoPopup

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.