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

Examples of com.google.gwt.user.client.ui.Label


        for (int i = 0; i < itens.size(); i++) {

            final AuctionItem item = (AuctionItem) itens.get(i);

            final int itemId = item.getId();
            final Label labelNumberOfBids = new Label(String.valueOf(item.getNumberOfBids()));
            final Label labelPrice = new Label("$ " + String.valueOf(item.getPrice()));
            final TextBox txtBoxMyBid = new TextBox();
            final Button bidButton = new Button("Bid!");
            final Label labelMessage = new Label("");

            bidButton.setStylePrimaryName("principal");

            //Save itemPrice Label to be used when new bids are processed.
            mapOfItemPrices.put(new Integer(itemId), labelPrice);
View Full Code Here


   */
  public TabItemWidget(final TabBar tabBar, String text, boolean asHTML){
      if (asHTML) {
        item = new HTML(text);
      } else {
        item = new Label(text);
      }
      item.setWordWrap(false);
      item.setStyleName("pf-TabCaption");
      item.addClickListener(this);
     
View Full Code Here

    public void setPath( final Path path ) {
        //Upload widgets
        final Well uploadWell = new Well();
        final HorizontalPanel uploadContainer = new HorizontalPanel();
        uploadContainer.add( new Label( ScoreCardXLSEditorConstants.INSTANCE.UploadNewVersion() + ":" ) );
        uploadContainer.add( uploadWidget );
        uploadContainer.add( uploadButton );
        uploadWell.add( uploadContainer );

        ts.addRow( uploadWell );
        uploadButton.addClickHandler( new ClickHandler() {
            @Override
            public void onClick( final ClickEvent event ) {
                BusyPopup.showMessage( ScoreCardXLSEditorConstants.INSTANCE.Uploading() );

                if ( concurrentUpdateSessionInfo != null ) {
                    newConcurrentUpdate( concurrentUpdateSessionInfo.getPath(),
                            concurrentUpdateSessionInfo.getIdentity(),
                            new org.uberfire.mvp.Command() {
                                @Override
                                public void execute() {
                                    submit(path);
                                }
                            },
                            new org.uberfire.mvp.Command() {
                                @Override
                                public void execute() {
                                    //cancel?
                                }
                            },
                            new org.uberfire.mvp.Command() {
                                @Override
                                public void execute() {
                                    presenter.reload();
                                }
                            }
                    ).show();
                } else {
                    submit(path);
                }
            }
        } );

        //Download widgets
        final Well downloadWell = new Well();
        final HorizontalPanel downloadContainer = new HorizontalPanel();
        downloadContainer.add( new Label( ScoreCardXLSEditorConstants.INSTANCE.DownloadCurrentVersion() + ":" ) );
        downloadContainer.add( downloadButton );
        downloadWell.add( downloadContainer );
        ts.addRow( downloadWell );

        downloadButton.addClickHandler( new ClickHandler() {
View Full Code Here

        initWidget( panel );

    }

    private Label getTextLabel(boolean enabled) {
        Label label = new Label();
        label.setStyleName( "form-field" );
        if ( enabled ) {
            label.addClickHandler( new ClickHandler() {

                public void onClick(ClickEvent event) {
                    showPopup();

                }
            } );
        }

        if ( label.getText() == null && "".equals( label.getText() ) ) {
            label.setText( constants.Value() );
        }

        return label;
    }
View Full Code Here

                                                         + ":</b>&nbsp;" ) );

        for ( final String ruleAssetGuid : line.impactedRules.keySet() ) {
            HorizontalPanel rule = new HorizontalPanel();
            rule.add(new Image(images.ruleAsset()));
            rule.add(new Label(line.impactedRules.get( ruleAssetGuid )));
           
            // TODO ruleAssetGuid is not a Asset UUID, but a delimited\tokenised
            // String returned from the drools-verifier framework. This String
            // is Guvnor-agnostic and needs to be transformed
            //
View Full Code Here

    //Widget for CEP 'windows'
    private Widget createCEPWindowWidget(final RuleModeller modeller,
                                         final HasCEPWindow c) {
        if ( modeller.getSuggestionCompletions().isFactTypeAnEvent( pattern.getFactType() ) ) {
            HorizontalPanel hp = new HorizontalPanel();
            Label lbl = new Label( constants.OverCEPWindow() );
            lbl.setStyleName( "paddedLabel" );
            hp.add( lbl );
            List<String> operators = SuggestionCompletionEngine.getCEPWindowOperators();
            CEPWindowOperatorsDropdown cwo = new CEPWindowOperatorsDropdown( operators,
                                                                             c );
View Full Code Here

            showList.addClickHandler( new ClickHandler() {

                public void onClick(ClickEvent event) {
                    horizontalPanel.remove( showList );
                    final Image busy = new Image( images.searching() );
                    final Label loading = new SmallLabel( constants.loadingList1() );
                    horizontalPanel.add( busy );
                    horizontalPanel.add( loading );

                    Scheduler scheduler = Scheduler.get();
                    scheduler.scheduleDeferred( new Command() {
View Full Code Here

    Widget widget = null;

    if (cellObject instanceof Widget)
      widget = (Widget) cellObject;
    else
      widget = new Label(cellObject.toString());

    return widget;
  }
View Full Code Here

    public ProConDispPanel(String string, List<String> list,
            CollegeEntry collegeEntry) {
        this.collegeEntry = collegeEntry;
        mainPanel = new VerticalPanel();
        mainPanel.add(new Label(string));
        for (String str : list) {
            addRow(str);
        }

        mainPanel.setStylePrimaryName("ProConPanel");
View Full Code Here

        Grid ratingGrid = new Grid(thisUser.getRatingTypes().size(), 2);

        int row = 0;
        for (RatingType ratingType : thisUser.getRatingTypes()) {

            ratingGrid.setWidget(row, 0, new Label(ratingType.getName()));

            int rating = application.getRating(ratingType);

            RatingChooser chooser = new RatingChooser(ratingType, rating);
            chooser.addChangeListener(this);
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.Label

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.