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

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


                listener.showDiffLegend(true);
            }
        });

        FlowPanel sourceHeader = new FlowPanel();
        sourceHeader.add(new InlineLabel(messages.sourceLabel()));
        sourceHeader.add(diffLegendInfo);

        resultTable.setWidget(0, SOURCE_COL, sourceHeader);
        resultTable.setWidget(0, TARGET_COL, new Label(messages.targetLabel()));
View Full Code Here


            listener.sortList(header, asc);
        }
    }

    private void buildHeader() {
        InlineLabel pathHeader = new InlineLabel(messages.columnHeaderPath());
        pathHeader.addClickHandler(new HeaderClickHandler(
                DocumentListDisplay.PATH_HEADER));

        InlineLabel docHeader =
                new InlineLabel(messages.columnHeaderDocument());
        docHeader.addClickHandler(new HeaderClickHandler(
                DocumentListDisplay.DOC_HEADER));

        InlineLabel statsHeader =
                new InlineLabel(messages.columnHeaderStatistic());
        statsHeader.addClickHandler(new HeaderClickHandler(
                DocumentListDisplay.STATS_HEADER));

        InlineLabel completeHeader =
                new InlineLabel(messages.columnHeaderComplete());
        completeHeader.addClickHandler(new HeaderClickHandler(
                DocumentListDisplay.COMPLETE_HEADER));

        InlineLabel incompletedHeader =
                new InlineLabel(messages.columnHeaderIncomplete());
        incompletedHeader.addClickHandler(new HeaderClickHandler(
                DocumentListDisplay.INCOMPLETE_HEADER));

        InlineLabel remainingHeader =
                new InlineLabel(messages.columnHeaderRemaining());
        remainingHeader.addClickHandler(new HeaderClickHandler(
                DocumentListDisplay.REMAINING_HEADER));

        InlineLabel lastUploadHeader =
                new InlineLabel(messages.columnHeaderLastUpload());
        lastUploadHeader.addClickHandler(new HeaderClickHandler(
                DocumentListDisplay.LAST_UPLOAD_HEADER));

        InlineLabel lastTranslatedHeader =
                new InlineLabel(messages.columnHeaderLastTranslated());
        lastTranslatedHeader.addClickHandler(new HeaderClickHandler(
                DocumentListDisplay.LAST_TRANSLATED_HEADER));

        InlineLabel actionHeader =
                new InlineLabel(messages.columnHeaderAction());

        this.setWidget(0, PATH_COLUMN, pathHeader);
        this.setWidget(0, DOC_COLUMN, docHeader);
        this.setWidget(0, STATS_COLUMN, statsHeader);
        this.setWidget(0, COMPLETE_COLUMN, completeHeader);
View Full Code Here

            this.setWidget(i + 1, INCOMPLETE_COLUMN,
                    getIncompleteWidget(node.getDocInfo(), statsByWords));
            this.setWidget(i + 1, REMAINING_COLUMN,
                    getRemainingWidget(node.getDocInfo()));

            this.setWidget(i + 1, LAST_UPLOAD_COLUMN, new InlineLabel(
                    getAuditInfo(node.getDocInfo().getLastModified())));
            this.setWidget(i + 1, LAST_TRANSLATED_COLUMN, new InlineLabel(
                    getAuditInfo(node.getDocInfo().getLastTranslated())));

            this.setWidget(i + 1, ACTION_COLUMN,
                    getActionWidget(node.getDocInfo()));
View Full Code Here

        return pageRows;
    }

    private Widget getPathWidget(final DocumentInfo docInfo) {
        InlineLabel pathLabel = new InlineLabel(docInfo.getPath());
        pathLabel.setTitle(docInfo.getPath());

        return pathLabel;
    }
View Full Code Here

            } else {
                stats = docInfo.getStats().getStats(locale, StatUnit.MESSAGE);
            }
            text = String.valueOf(stats.getTranslatedAndApproved());
        }
        return new InlineLabel(text);
    }
View Full Code Here

            } else {
                stats = docInfo.getStats().getStats(locale, StatUnit.MESSAGE);
            }
            text = String.valueOf(stats.getIncomplete());
        }
        return new InlineLabel(text);
    }
View Full Code Here

                            .formatHours(docInfo.getStats()
                                .getStats(locale, StatUnit.WORD)
                                .getRemainingHours()));
        }

        return new InlineLabel(text);
    }
View Full Code Here

            super();
            loading = new Image(resources.spinner());
            loading.setVisible(false);
            this.add(loading);

            noError = new InlineLabel();
            noError.setStyleName("i--checkmark i");
            noError.setVisible(false);
            this.add(noError);

            hasError = new InlineLabel();
            hasError.setStyleName("i i--cancel txt--danger");
            hasError.setVisible(false);
            this.add(hasError);

            docLabel = new InlineLabel(docInfo.getName());
            docLabel.ensureDebugId("docLabel-" + docInfo.getId().getDocId());
            docLabel.setTitle(docInfo.getName());
            docLabel.addClickHandler(new ClickHandler() {
                @Override
                public void onClick(ClickEvent event) {
View Full Code Here

    }

    @Override
    public void onSelectionChange(String groupName, MergeRule option) {
        OptionType optionType = OptionType.valueOf(groupName);
        InlineLabel statusLabel = getStatusLabelFor(optionType);
        statusLabel.setText(mergeStatusRenderer.render(option));
        statusLabel.setStyleName(resolveStyle(option) + " l--pad-all-quarter");
    }
View Full Code Here

    }

    public void addTranslator(String name, String color) {
        HTMLPanel liElement = new HTMLPanel("li", "");

        InlineLabel nameLabel = new InlineLabel(name);
        nameLabel.setTitle(name);
        nameLabel.setStyleName(style.userLabel() + " badge");
        nameLabel.getElement().getStyle().setProperty("backgroundColor", color);

        liElement.add(nameLabel);
        container.add(liElement);
        isEmpty = false;
    }
View Full Code Here

TOP

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

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.