Examples of ImageButton


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

                                       + permType
                                       + "] for:</b>" ) ); // NON-NLS

                for ( int i = 0; i < permList.size(); i++ ) {
                    final String p = permList.get( i );
                    ImageButton del = new ImageButton( images.deleteItemSmall(),
                                                       constants.RemovePermission(),
                                                       new ClickHandler() {
                                                           public void onClick(ClickEvent w) {
                                                               if ( Window.confirm( constants.AreYouSureYouWantToRemovePermission0( p ) ) ) {
                                                                   permList.remove( p );
                                                                   if ( permList.size() == 0 ) {
                                                                       perms.remove( permType );
                                                                   }
                                                                   doPermsPanel( perms,
                                                                                 vp );
                                                               }
                                                           }
                                                       } );

                    g.setWidget( i + 1,
                                 1,
                                 new SmallLabel( p ) );
                    g.setWidget( i + 1,
                                 2,
                                 del );
                }

                vp.add( g );
            }

        }

        // now to be able to add...
        ImageButton newPermission = new ImageButton( images.newItem(),
                                                     constants.AddANewPermission(),
                                                     createClickHandlerForNewPersmissionImageButton( perms,
                                                                                                     vp ) );
        vp.add( newPermission );
        return vp;
View Full Code Here

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

        initWidget( layout );
    }

    private void doActions() {
        VerticalPanel actions = new VerticalPanel();
        Image add = new ImageButton( images.newItem() );
        add.setTitle( constants.AddANewCategory() );

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

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

            list.setWidget( i,
                            0,
                            new SmallLabel( data.getCategories()[i] ) );
            if ( !readOnly ) {

                Image del = new ImageButton( images.trash() );
                del.setTitle( constants.RemoveThisCategory() );
                del.addClickHandler( new ClickHandler() {
                    public void onClick(ClickEvent event) {
                        removeCategory( idx );
                    }
                } );
                list.setWidget( i,
View Full Code Here

Examples of org.gwt.mosaic.ui.client.ImageButton

    widget.setVisible(true);
    Log.addLogger(logger);
   
    messagePanel.add(widget);

    final ImageButton collapseBtn = new ImageButton(Caption.IMAGES.toolCollapseDown());
    messagePanel.getHeader().add(collapseBtn, Caption.CaptionRegion.RIGHT);

    collapseBtn.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        parent.setCollapsed(messagePanel, true);
        parent.invalidate();
        parent.layout();
      }
View Full Code Here

Examples of org.gwtwidgets.client.ui.ImageButton

    date.setVisibleLength(10);
    textId = HTMLPanel.createUniqueId();
    DOM.setAttribute(date.getElement(), "id", textId);
    add(date);
   
    button = new ImageButton(imgLocation, 20, 14);
    button.setBackgroundOnColor(background);
    buttonId = HTMLPanel.createUniqueId();
    DOM.setAttribute(button.getElement(), "id", buttonId);
    add(button);
  }
View Full Code Here

Examples of org.infoglue.cms.applications.common.ImageButton

    return new ImageButton("ViewListContentVersion.action?contentId=" + this.contentId, getLocalizedString(getSession().getLocale(), "images.contenttool.buttons.publishContent"), "tool.contenttool.publishContent.header")
  }

  private ImageButton getExecuteTaskButton()
  {
    return new ImageButton(true, "javascript:openPopup('ViewExecuteTask.action?contentId=" + this.contentId + "', 'ExecuteTask', 'width=400,height=600,resizable=yes,scrollbars=yes');", getLocalizedString(getSession().getLocale(), "images.global.buttons.executeTask"), "tool.common.executeTask.header")
  }
View Full Code Here

Examples of org.kie.uberfire.client.common.ImageButton

        Image edit = GuidedDecisionTableImageResources508.INSTANCE.Edit();
        edit.setAltText( GuidedDecisionTableConstants.INSTANCE.ChooseABoundFactThatThisColumnPertainsTo() );
        Image editDisabled = GuidedDecisionTableImageResources508.INSTANCE.EditDisabled();
        editDisabled.setAltText( GuidedDecisionTableConstants.INSTANCE.ChooseABoundFactThatThisColumnPertainsTo() );
        ImageButton changePattern = new ImageButton( edit,
                                                     editDisabled,
                                                     GuidedDecisionTableConstants.INSTANCE.ChooseABoundFactThatThisColumnPertainsTo(),
                                                     new ClickHandler() {
                                                         public void onClick( ClickEvent w ) {
                                                             showChangeFact( w );
                                                         }
                                                     } );
        changePattern.setEnabled( !isReadOnly );
        pattern.add( changePattern );
        addAttribute( new StringBuilder(GuidedDecisionTableConstants.INSTANCE.Fact()).append(GuidedDecisionTableConstants.COLON).toString(),
                      pattern );

        //Fact Field being set
        HorizontalPanel field = new HorizontalPanel();
        fieldLabel.setEnabled( !isReadOnly );
        field.add( fieldLabel );
        ImageButton editField = createEditField();
        editField.setEnabled( !isReadOnly );
        field.add( editField );
        addAttribute( new StringBuilder(GuidedDecisionTableConstants.INSTANCE.Field()).append(GuidedDecisionTableConstants.COLON).toString(),
                      field );
        doFieldLabel();
View Full Code Here

Examples of org.pokenet.client.ui.base.ImageButton

      for (int i = 0; i < m_categoryButtons.length; i++) {
        final int j = i;

        switch (i) {
        case 0:
          m_categoryButtons[i] = new ImageButton(bagcat[0],
              bagcat[1], bagcat[2]);
          m_categoryButtons[i].setToolTipText("Bag");
          break;
        case 1:
          m_categoryButtons[i] = new ImageButton(potioncat[0],
              potioncat[1], potioncat[2]);
          m_categoryButtons[i].setToolTipText("Potions");
          break;
        case 2:
          m_categoryButtons[i] = new ImageButton(berriescat[0],
              berriescat[1], berriescat[2]);
          m_categoryButtons[i].setToolTipText("Food");
          break;
        case 3:
          m_categoryButtons[i] = new ImageButton(pokecat[0],
              pokecat[1], pokecat[2]);
          m_categoryButtons[i].setToolTipText("Pokeballs");
          break;
        case 4:
          m_categoryButtons[i] = new ImageButton(tmscat[0],
              tmscat[1], tmscat[2]);
          m_categoryButtons[i].setToolTipText("TMs");
          break;
        }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.ui.ImageButton

                    sidePanelSection.getSectionTitle());
        }
    }

    private void initSideBarExpander() {
        ImageButton expander = ImageButton.createExpanderButton();

        expander.setStyleName(CSS_EXPANDER);

        expander.addClickHandler(new ClickHandler() {

            @Override
            public void onClick(ClickEvent event) {
                sideBar.setVisible(!sideBar.isVisible());
                updateContentDisplaySize();
View Full Code Here

Examples of org.uberfire.client.common.ImageButton

        //Initialise drop-down data
        getDropDownData();

        //Show an editor for the constraint value type
        if ( constraint.getConstraintValueType() == SingleFieldConstraint.TYPE_UNDEFINED ) {
            ImageButton clickme = new ImageButton( GuidedRuleEditorImages508.INSTANCE.Edit(),
                                                   GuidedRuleEditorImages508.INSTANCE.EditDisabled(),
                                                   Constants.INSTANCE.Edit(),
                                                   new ClickHandler() {
                                                       public void onClick( ClickEvent event ) {
                                                           showTypeChoice( (Widget) event.getSource(),
                                                                           constraint );
                                                       }
                                                   } );
            clickme.setEnabled( !this.readOnly );
            constraintWidget = clickme;

        } else {
            switch ( constraint.getConstraintValueType() ) {
                case SingleFieldConstraint.TYPE_LITERAL:
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.