Package org.drools.guvnor.client.common

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


                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


                    editingCol.update = cb.isChecked();
                }
            }
        } );
        hp.add( cb );
        hp.add( new InfoPopup( constants.UpdateFact(),
                               constants.UpdateDescription() ) );
        return hp;
    }
View Full Code Here

    private SmallLabel                 operatorLabel               = new SmallLabel();
    private Constants                  constants                   = ((Constants) GWT.create( Constants.class ));
    private InfoPopup                  fieldLabelInterpolationInfo = getPredicateHint();

    private InfoPopup getPredicateHint() {
        return new InfoPopup( constants.Predicates(),
                              constants.PredicatesInfo() );
    }
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

            }

        });
        form.addAttribute(constants.LiteralValue() + ":",
                widgets(lit,
                        new InfoPopup(constants.LiteralValue(),
                                constants.LiteralValTip())));

        form.addRow(new HTML("<hr/>"));
        form.addRow(new SmallLabel(constants.AdvancedOptions()));

        // If we are here, then there must be a bound variable compatible with
        // me
        if (isThereABoundVariableToSet() == true) {
            Button variable = new Button(constants.BoundVariable());
            variable.addClickListener(new ClickListener() {
                public void onClick(Widget w) {
                    con.nature = FieldData.TYPE_VARIABLE;
                    doTypeChosen(form);
                }
            });
            form.addAttribute(constants.AVariable(),
                    widgets(variable,
                            new InfoPopup(constants.ABoundVariable(),
                                    constants.BoundVariableTip())));
        }
        if (isItAList() == true) {
            Button variable = new Button(constants.GuidedList());
            variable.addClickListener(new ClickListener() {
                public void onClick(Widget w) {
                    String factCollectionType = sce.getParametricFieldType(factType, field.name);
                    con.setNature(FieldData.TYPE_COLLECTION, factCollectionType);
                    doTypeChosen(form);
                }
            });
            form.addAttribute(constants.AVariable(),
                    widgets(variable,
                            new InfoPopup(constants.AGuidedList(),
                                    constants.AGuidedListTip())));
        }
        form.show();
    }
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 );
View Full Code Here

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

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

        HorizontalPanel horiz = new HorizontalPanel();

        horiz.add( composites );
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)) {
                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.addClickHandler(new ClickHandler() {
         
          public void onClick(ClickEvent event) {
                        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

    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

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.