Package org.drools.guvnor.client.common

Examples of org.drools.guvnor.client.common.ImageButton.addClickHandler()


            //horiz.setBorderWidth(2);

            Image remove = new ImageButton("images/delete_item_small.gif"); //NON-NLS
            remove.setTitle(constants.RemoveThisAction());
            final int idx = i;
            remove.addClickHandler(new ClickHandler() {
         
          public void onClick(ClickEvent event) {
                    if (Window.confirm(constants.RemoveThisItem())) {
                        model.removeRhsItem(idx);
                        refreshWidget();
View Full Code Here


        DirtyableHorizontalPane horiz = new DirtyableHorizontalPane();

        final Image remove = new ImageButton("images/delete_item_small.gif"); //NON-NLS
        remove.setTitle(constants.RemoveThisENTIREConditionAndAllTheFieldConstraintsThatBelongToIt());
        final int idx = i;
        remove.addClickHandler(new ClickHandler() {
     
      public void onClick(ClickEvent event) {
                if (Window.confirm(constants.RemoveThisEntireConditionQ())) {
                    if (model.removeLhsItem(idx)) {
                        refreshWidget();
View Full Code Here

                if ( Window.confirm( constants.ImportMergeWarning() ) ) {
                    uploadFormPanel.submit();
                }     
            }         
        };
        ok.addClickHandler(okClickHandler);      

        panel.add( ok );

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

        });

        Image addNewConstraint = new ImageButton("images/new_item.gif"); // NON-NLS
        addNewConstraint.setTitle(constants.AddNewConstraint());

        addNewConstraint.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                showNewConstrainPop();
            }
        });
View Full Code Here

            //now the clear icon
            final int currentRow = i;
            Image clear = new ImageButton("images/delete_item_small.gif");//NON-NLS
            clear.setTitle(constants.RemoveThisWholeRestriction());
            clear.addClickHandler(new ClickHandler() {
       
        public void onClick(ClickEvent event) {
          if (Window.confirm(constants.RemoveThisItem())) {
                        setModified(true);
                        pattern.removeConstraint(currentRow);
View Full Code Here

                this.renderFieldConstraint(inner, i, nested[i], false, 0);
                //add in remove icon here...
                final int currentRow = i;
                Image clear = new ImageButton("images/delete_item_small.gif"); //NON-NLS
                clear.setTitle(constants.RemoveThisNestedRestriction());
                clear.addClickHandler(new ClickHandler() {
         
          public void onClick(ClickEvent event) {
            if (Window.confirm(constants.RemoveThisItemFromNestedConstraint())) {
                            setModified(true);
                            constraint.removeConstraint(currentRow);
View Full Code Here

        }
            }
           
            Image addConnective = new ImageButton("images/add_connective.gif"); //NON-NLS
            addConnective.setTitle(constants.AddMoreOptionsToThisFieldsValues());
            addConnective.addClickHandler(new ClickHandler() {
       
        public void onClick(ClickEvent event) {
                    setModified(true);
                    constraint.addNewConnective();
                    modeller.refreshWidget();
View Full Code Here

                    }
                };

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

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

                                     ClickHandler listener) {
        DirtyableHorizontalPane horiz = new DirtyableHorizontalPane();

        final Image remove = new ImageButton( DroolsGuvnorImages.INSTANCE.deleteItemSmall() );
        remove.setTitle( Constants.INSTANCE.RemoveThisBlockOfData() );
        remove.addClickHandler( listener );

        horiz.setWidth( "100%" );
        w.setWidth( "100%" );

        horiz.add( w );
View Full Code Here

        HorizontalPanel horiz = new HorizontalPanel();

        if ( model.state == ActionCallMethod.TYPE_UNDEFINED ) {
            Image edit = new ImageButton( DroolsGuvnorImages.INSTANCE.addFieldToFact() );
            edit.setTitle( Constants.INSTANCE.AddAnotherFieldToThisSoYouCanSetItsValue() );
            edit.addClickHandler( new ClickHandler() {

                public void onClick(ClickEvent event) {
                    Widget w = (Widget) event.getSource();
                    showAddFieldPopup( w );
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.