Package org.drools.guvnor.client.common

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


        if (nested != null) {
            for (int i = 0; i < nested.length; i++) {
                this.renderFieldConstraint(inner, i, nested[i], false, 0);
                //add in remove icon here...
                final int currentRow = i;
                Image clear = new ImageButton("images/delete_faded.gif"); //NON-NLS
                clear.setTitle(constants.RemoveThisNestedRestriction());

                clear.addClickListener(new ClickListener() {

                    public void onClick(Widget w) {
                        if (Window.confirm(constants.RemoveThisItemFromNestedConstraint())) {
                            setModified(true);
                            constraint.removeConstraint(currentRow);
View Full Code Here


            inner.setWidget(row, 0 + col, fieldLabel(constraint, showBinding, tabs * 20));
            inner.setWidget(row, 1 + col, operatorDropDown(constraint));
            inner.setWidget(row, 2 + col, valueEditor(constraint, constraint.fieldType));
            inner.setWidget(row, 3 + col, connectives.connectives(constraint, constraint.fieldType));
            Image addConnective = new ImageButton("images/add_connective.gif"); //NON-NLS
            addConnective.setTitle(constants.AddMoreOptionsToThisFieldsValues());
            addConnective.addClickListener(new ClickListener() {

                public void onClick(Widget w) {
                    setModified(true);
                    constraint.addNewConnective();
                    modeller.refreshWidget();
View Full Code Here

                        String[] fields = completions.getFieldCompletions(con.fieldType);
                        popupCreator.showBindFieldPopup(w, con, fields, popupCreator);
                    }
                };

                Image bind = new ImageButton("images/edit_tiny.gif", constants.GiveFieldVarName()); //NON-NLS

                bind.addClickListener(click);
                ClickableLabel cl = new ClickableLabel(con.fieldName, click, !this.readOnly);
                DOM.setStyleAttribute(cl.getElement(), "marginLeft", "" + padding + "pt"); //NON-NLS
                ab.add(cl);
                //ab.add( bind );
            } else {
View Full Code Here

                      h( html4,
                         constants.URLToChangeSetForDeploymentAgents() ) );

        status = new HTML();
        HorizontalPanel statusBar = new HorizontalPanel();
        Image editState = new ImageButton( "images/edit.gif" ); //NON-NLS
        editState.setTitle( constants.ChangeStatusDot() );
        editState.addClickListener( new ClickListener() {
            public void onClick(Widget w) {
                showStatusChanger( w );
            }

        } );
View Full Code Here

        } );
        return remove;
    }

    private Widget getAddCatRules() {
        Image add = new ImageButton( "images/new_item.gif" );
        add.setTitle( constants.AddCatRuleToThePackage() );

        add.addClickListener( new ClickListener() {
            public void onClick(Widget w) {
                showCatRuleSelector( w );
            }
        } );
View Full Code Here

        final FileUpload upload = new FileUpload();
        upload.setName( HTMLFileManagerFields.CLASSIC_DRL_IMPORT );
        panel.add( upload );

        panel.add( new Label( constants.upload() ) );
        ImageButton ok = new ImageButton( "images/upload.gif",
                                          constants.Import() ); //NON-NLS
        ClickListener okClickListener = new ClickListener() {
            public void onClick(Widget sender) {
                if ( Window.confirm( constants.ImportMergeWarning() ) ) {
                    LoadingPopup.showMessage( constants.ImportingDRLPleaseWait() );
                    uploadFormPanel.submit();
                }
            }

        };
        ok.addClickListener( okClickListener );

        panel.add( ok );

        final FormStylePopup packageNamePopup = new FormStylePopup( "images/package_large.png",
                                                                    constants.PackageName() );
View Full Code Here

        final FileUpload upload = new FileUpload();
        upload.setName( HTMLFileManagerFields.CLASSIC_DRL_IMPORT );
        panel.add( upload );

        panel.add( new Label( constants.upload() ) );
        ImageButton ok = new ImageButton( "images/upload.gif",
                                          constants.Import() ); //NON-NLS
        ClickListener okClickListener = new ClickListener() {
            public void onClick(Widget sender) {
                if ( Window.confirm( constants.ImportMergeWarning() ) ) {
                    LoadingPopup.showMessage( constants.ImportingDRLPleaseWait() );
                    uploadFormPanel.submit();
                }
            }

        };
        ok.addClickListener( okClickListener );

        panel.add( ok );

        final FormStylePopup packageNamePopup = new FormStylePopup( "images/package_large.png",
                                                                    constants.PackageName() );
View Full Code Here

      doImports(t);
      HorizontalPanel importCols = new HorizontalPanel();
      importCols.add(importList);
      VerticalPanel importActions = new VerticalPanel();
      importActions.add(new ImageButton("images/new_item.gif") { //NON-NLS
        {
          addClickListener(new ClickListener() {
            public void onClick(Widget w) {
              showTypeQuestion(w, t, false, constants.FactTypesJarTip());
            }
          });
        }
      });
      importActions.add(new ImageButton("images/trash.gif") {             //NON-NLS
        {
          addClickListener(new ClickListener() {
            public void onClick(Widget w) {
              if (Window.confirm(constants.AreYouSureYouWantToRemoveThisFactType())) {
                int i = importList.getSelectedIndex();
                importList.removeItem(i);
                t.imports.remove(i);
                updateHeader(t);
              }
            }
          });
        }
      });

      importCols.add(importActions);
      imports.add(importCols);


      VerticalPanel globals = new VerticalPanel();
      globals.add(new Label(constants.Globals()));
      globalList = new ListBox(true);
      doGlobals(t);
      HorizontalPanel globalCols = new HorizontalPanel();
      globalCols.add(globalList);
      VerticalPanel globalActions = new VerticalPanel();
      globalActions.add(new ImageButton("images/new_item.gif") { //NON-NLS
        {
          addClickListener(new ClickListener() {
            public void onClick(Widget w) {
              showTypeQuestion(w, t, true, constants.GlobalTypesAreClassesFromJarFilesThatHaveBeenUploadedToTheCurrentPackage());
            }
          });
        }
      });
      globalActions.add(new ImageButton("images/trash.gif") {             //NON-NLS
        {
          addClickListener(new ClickListener() {
            public void onClick(Widget w) {
              if (Window.confirm(constants.AreYouSureYouWantToRemoveThisGlobal())) {
                int i = globalList.getSelectedIndex();
View Full Code Here

        }
        actionsConfigWidget.add( newAction() );
    }

    private Widget editAction(final ActionCol c) {
        return new ImageButton( "images/edit.gif",
                                constants.EditThisActionColumnConfiguration(),
                                new ClickListener() { //NON-NLS
                                    public void onClick(Widget w) {
                                        if ( c instanceof ActionSetFieldCol ) {
                                            ActionSetFieldCol asf = (ActionSetFieldCol) c;
View Full Code Here

                                } );

    }

    private Widget newAction() {
        return new ImageButton( "images/new_item.gif",
                                constants.CreateANewActionColumn(),
                                new ClickListener() { //NON-NLS
                                    public void onClick(Widget w) {
                                        final FormStylePopup pop = new FormStylePopup();
                                        pop.setModal( false );
View Full Code Here

TOP

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

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.