Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.Image.addClickHandler()


        final DirtyableHorizontalPane hp = new DirtyableHorizontalPane();

        Image addPattern = CommonAltedImages.INSTANCE.NewItemBelow();
        addPattern.setTitle( title );
        addPattern.addClickHandler( addBelowListener );

        Image moveDown = CommonAltedImages.INSTANCE.MoveDown();
        moveDown.setTitle( Constants.INSTANCE.MoveDown() );
        moveDown.addClickHandler( moveDownListener );
View Full Code Here


        addPattern.setTitle( title );
        addPattern.addClickHandler( addBelowListener );

        Image moveDown = CommonAltedImages.INSTANCE.MoveDown();
        moveDown.setTitle( Constants.INSTANCE.MoveDown() );
        moveDown.addClickHandler( moveDownListener );

        Image moveUp = CommonAltedImages.INSTANCE.MoveUp();
        moveUp.setTitle( Constants.INSTANCE.MoveUp() );
        moveUp.addClickHandler( moveUpListener );
View Full Code Here

        moveDown.setTitle( Constants.INSTANCE.MoveDown() );
        moveDown.addClickHandler( moveDownListener );

        Image moveUp = CommonAltedImages.INSTANCE.MoveUp();
        moveUp.setTitle( Constants.INSTANCE.MoveUp() );
        moveUp.addClickHandler( moveUpListener );

        hp.add( addPattern );
        hp.add( moveDown );
        hp.add( moveUp );
View Full Code Here

    private Widget createEditIcon() {

        Image btn;
        if ( !this.readOnly ) {
            btn = GuidedRuleEditorImages508.INSTANCE.Edit();
            btn.addClickHandler( new ClickHandler() {

                public void onClick( ClickEvent event ) {
                    final FreeFormLinePopup popup = new FreeFormLinePopup( Constants.INSTANCE.FreeFormDrl(),
                                                                           action.getText() );
                    popup.addOKClickHandler( new ClickHandler() {
View Full Code Here

        if ( model.getState() == ActionCallMethod.TYPE_UNDEFINED ) {
            Image edit = GuidedRuleEditorImages508.INSTANCE.AddFieldToFact();
            edit.setAltText( Constants.INSTANCE.AddAnotherFieldToThisSoYouCanSetItsValue() );
            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

                                final TextBox box ) {
        final Image addbutton = GuidedRuleEditorImages508.INSTANCE.NewItem();
        addbutton.setAltText( Constants.INSTANCE.AddMetadataToTheRule() );
        addbutton.setTitle( Constants.INSTANCE.AddMetadataToTheRule() );

        addbutton.addClickHandler( new ClickHandler() {

            public void onClick( ClickEvent event ) {

                model.addMetadata( new RuleMetadata( box.getText(),
                                                     "" ) );
View Full Code Here

                if ( !isReadOnly ) {
                    Image clear = GuidedRuleEditorImages508.INSTANCE.DeleteItemSmall();
                    clear.setAltText( Constants.INSTANCE.RemoveThisRestriction() );
                    clear.setTitle( Constants.INSTANCE.RemoveThisRestriction() );
                    clear.addClickHandler( createClickHandlerForClearImageButton( c,
                                                                                  i ) );
                    hp.add( clear );
                }

            }
View Full Code Here

        HorizontalPanel filter = new HorizontalPanel();

        final Image add = ItemAltedImages.INSTANCE.NewItem();
        add.setAltText( TestScenarioConstants.INSTANCE.AddANewRule());
        add.setTitle(TestScenarioConstants.INSTANCE.AddANewRule());
        add.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                showRulePopup(
                        box,
                        sc.getRules());
            }
View Full Code Here

        });

        final Image remove = Images.INSTANCE.Trash();
        remove.setAltText(TestScenarioConstants.INSTANCE.RemoveSelectedRule());
        remove.setTitle(TestScenarioConstants.INSTANCE.RemoveSelectedRule());
        remove.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                if (box.getSelectedIndex() == -1) {
                    Window.alert(TestScenarioConstants.INSTANCE.PleaseChooseARuleToRemove());
                } else {
                    String r = box.getItemText(box.getSelectedIndex());
View Full Code Here

                    h );

            Image del = CommonAltedImages.INSTANCE.DeleteItemSmall();
            del.setAltText(TestScenarioConstants.INSTANCE.RemoveThisRuleExpectation());
            del.setTitle(TestScenarioConstants.INSTANCE.RemoveThisRuleExpectation());
            del.addClickHandler(new ClickHandler() {
                public void onClick(ClickEvent w) {
                    if ( Window.confirm( TestScenarioConstants.INSTANCE.AreYouSureYouWantToRemoveThisRuleExpectation() ) ) {
                        rfl.remove( v );
                        sc.removeFixture( v );
                        outer.setWidget( 1,
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.