Package org.drools.guvnor.client.common

Examples of org.drools.guvnor.client.common.FormStylePopup.addRow()


            public void onClick(final Widget sender) {
                cl.onChange(sender);
            }
        });
        popup.addRow(hp);

        popup.show();
        choices.setFocus(true);

        popup.setAfterShow(new Command() {
View Full Code Here


        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

        Button ok = new Button(constants.OK());
        ok.addClickListener(cl);
        hp.add(choices);
        hp.add(ok);
        popup.addRow(hp);

        popup.show();
        choices.setFocus(true);
    }
View Full Code Here

        }


        //popup.addRow( new HTML("<hr/>") );
        if (con == null) {
            popup.addRow(new SmallLabel("<i>" + constants.AdvancedOptionsColon() + "</i>")); //NON-NLS
            final Button predicate = new Button(constants.NewFormula());
            predicate.addClickListener(new ClickListener() {

                public void onClick(Widget w) {
                    SingleFieldConstraint con = new SingleFieldConstraint();
View Full Code Here

  private void showEditor(final String userName) {
    LoadingPopup.showMessage(constants.LoadingUsersPermissions());
    RepositoryServiceFactory.getService().retrieveUserPermissions(userName, new GenericCallback<Map<String, List<String>>>() {
      public void onSuccess(final Map<String, List<String>> perms) {
                FormStylePopup editor = new FormStylePopup("images/managment.gif", Format.format(constants.EditUser0(), userName)); //NON-NLS
        editor.addRow(new HTML("<i>" + constants.UserAuthenticationTip() + "</i>"));
        //now render the actual permissions...
        VerticalPanel vp = new VerticalPanel();
        editor.addAttribute("", doPermsPanel(perms, vp));
        com.google.gwt.user.client.ui.Button save = new com.google.gwt.user.client.ui.Button(constants.SaveChanges());
        editor.addAttribute("", save);
View Full Code Here

          pop.setTitle(constants.ValidationResultsDotDot());
          HorizontalPanel h = new HorizontalPanel();
          h.add(new SmallLabel("<img src='images/tick_green.gif'/><i>" + constants.ItemValidatedSuccessfully() + "</i>")); //NON-NLS


            pop.addRow( h );
            pop.show();
        } else {
          FormStylePopup pop = new FormStylePopup("images/package_builder.png", constants.ValidationResults()); //NON-NLS
            FlexTable errTable = new FlexTable();
            errTable.setStyleName( "build-Results" ); //NON-NLS
View Full Code Here

                }

            }
            ScrollPanel scroll = new ScrollPanel(errTable);
            scroll.setWidth( "100%" );
            pop.addRow( scroll );
            pop.show();
        }

        LoadingPopup.close();
    }
View Full Code Here

        final FormStylePopup pop = new FormStylePopup("images/rule_asset.gif", constants.ChooseAFieldToAdd()); //NON-NLS
        final ListBox b = new ListBox();
        for (int i = 0; i < fields.length; i++) {
          b.addItem(fields[i]);
        }
        pop.addRow(b);
        Button ok = new Button(constants.OK());
        ok.addClickListener(new ClickListener() {
                  public void onClick(Widget w) {
                    String f = b.getItemText(b.getSelectedIndex());
                    vf.fieldValues.add(new VerifyField(f, "", "=="));
View Full Code Here

                        FlexTable data = render(vf);
                        outer.setWidget(1, 0, data);
                        pop.hide();
                  }
                });
        pop.addRow(ok);
        pop.show();

      }
    });
View Full Code Here

                pop.hide();

      }
        });

        pop.addRow(ruleSelector);

        pop.show();

    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.