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

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


    public void removeTranslator(String name, String color) {

        for (int i = 0; i < container.getWidgetCount(); i++) {
            HTMLPanel liElement = (HTMLPanel) container.getWidget(i);
            InlineLabel translatorLabel = (InlineLabel) liElement.getWidget(0);

            if (translatorLabel.getText().equals(name)
                    && removeFormat(
                            translatorLabel.getElement().getStyle()
                                    .getProperty("backgroundColor")).equals(
                            removeFormat(color))) {
                container.remove(i);
            }
        }
View Full Code Here


            ClickHandler viewDocClickHandler,
            ClickHandler searchDocClickHandler, ClickHandler infoClickHandler) {
        FlowPanel docHeading = new FlowPanel();
        docHeading.addStyleName("projectWideSearchResultsDocumentHeader");

        InlineLabel docLabel = new InlineLabel(docName);
        docLabel.addStyleName("projectWideSearchResultsDocumentTitle");
        docHeading.add(docLabel);

        InlineLabel searchDocLabel =
                new InlineLabel(messages.searchDocInEditor());
        searchDocLabel.setTitle(messages.searchDocInEditorDetailed());
        searchDocLabel.addClickHandler(searchDocClickHandler);
        searchDocLabel.addStyleName("linkLabel");
        searchDocLabel.addStyleName("linkLabelNormalColor");
        searchDocLabel.addStyleName("projectWideSearchResultsDocumentLink");
        docHeading.add(searchDocLabel);

        InlineLabel showDocLabel = new InlineLabel(messages.viewDocInEditor());
        showDocLabel.setTitle(messages.viewDocInEditorDetailed());
        showDocLabel.addStyleName("linkLabel");
        showDocLabel.addStyleName("linkLabelNormalColor");
        showDocLabel.addStyleName("projectWideSearchResultsDocumentLink");
        showDocLabel.addClickHandler(viewDocClickHandler);
        docHeading.add(showDocLabel);

        InlineLabel infoLabel = new InlineLabel();
        infoLabel.setStyleName("icon-info-circle-2");
        infoLabel.setTitle(messages.colorLegend());
        infoLabel.addClickHandler(infoClickHandler);
        infoLabel.addStyleName("projectWideSearchResultsInfo");
        infoLabel.addStyleName("linkLabelNormalColor");
        infoLabel.addStyleName("projectWideSearchResultsDocumentLink");
        docHeading.add(infoLabel);

        searchResultsPanel.add(docHeading);
    }
View Full Code Here

  /**
   * Constructor
   */
  public DkInlineLabel()
  {
    inlineLabel = new InlineLabel();
    add(inlineLabel);
  }
View Full Code Here

  /**
   * Constructor
   */
  public DkLabel()
  {
    label = new InlineLabel();
    add(label);
  }
View Full Code Here

                }} );
            }
        }

        if ( file != null && !file.equals( root ) ) {
            breadcrumbs.add( new ListItem( new InlineLabel( file.getFileName() ) ) {{
                setStyleName( NavigatorResources.INSTANCE.css().directory() );
            }} );
        }
    }
View Full Code Here

                       final Path file ) {
        breadcrumbs.clear();

        if ( repoName != null ) {
            if ( onPathClick == null ) {
                breadcrumbs.add( new ListItem( new InlineLabel( repoName ) ) {{
                    setStyleName( NavigatorResources.INSTANCE.css().repoName() );
                }} );
            } else {
                breadcrumbs.add( new NavLink( repoName ) {{
                    setStyleName( NavigatorResources.INSTANCE.css().repoName() );
                    addClickHandler( new ClickHandler() {
                        @Override
                        public void onClick( ClickEvent event ) {
                            onPathClick.execute( root );
                        }
                    } );
                }} );
            }
        } else if ( root != null ) {
            if ( onPathClick == null ) {
                breadcrumbs.add( new ListItem( new InlineLabel( file.getFileName() ) ) {{
                    setStyleName( NavigatorResources.INSTANCE.css().repoName() );
                }} );
            } else {
                breadcrumbs.add( new NavLink( root.getFileName() ) {{
                    setStyleName( NavigatorResources.INSTANCE.css().repoName() );
                    addClickHandler( new ClickHandler() {
                        @Override
                        public void onClick( ClickEvent event ) {
                            onPathClick.execute( root );
                        }
                    } );
                }} );
            }
        }

        if ( path != null && !path.isEmpty() ) {
            if ( onPathClick == null ) {
                for ( final Path activePath : path ) {
                    breadcrumbs.add( new ListItem( new InlineLabel( activePath.getFileName() ) {{
                        setStyleName( NavigatorResources.INSTANCE.css().directory() );
                    }} ) );
                }
            } else {
                for ( final Path activePath : path ) {
                    breadcrumbs.add( new NavLink( activePath.getFileName() ) {{
                        setStyleName( NavigatorResources.INSTANCE.css().directory() );
                        addClickHandler( new ClickHandler() {
                            @Override
                            public void onClick( ClickEvent event ) {
                                onPathClick.execute( activePath );
                            }
                        } );
                    }} );
                }
            }
        }

        if ( file != null && !file.equals( root ) ) {
            breadcrumbs.add( new ListItem( new InlineLabel( file.getFileName() ) ) {{
                setStyleName( NavigatorResources.INSTANCE.css().directory() );
            }} );
        }

        if ( onAddClick != null ) {
View Full Code Here

    private int acked;
    private int nacked;
    private boolean locked;

    public DiagnosticsView() {
        this.info = new InlineLabel();
    }
View Full Code Here

      widgetRow = new FlowPanel();

      widgetRow.add(clearEditorsButton);
      widgetRow.add(setContentButton);

      widgetRow.add(new InlineLabel("<body><line/>"));
      widgetRow.add(contentBox != null ? contentBox : contentSuggestBox);
      widgetRow.add(new InlineLabel("</body>"));

      Button clearContentBoxButton = new Button("Clear text", new ClickHandler() {
        public void onClick(ClickEvent e) {
          if (contentBox != null) {
            contentBox.setValue("");
View Full Code Here

    private int acked;
    private int nacked;
    private boolean locked;

    public DiagnosticsView() {
        this.info = new InlineLabel();
    }
View Full Code Here

    verticalLayoutContainer.getElement().getStyle().setPaddingTop(3, Unit.PX);

    final String connectionMessage = DkMain.controller().getConnectionPopupMessage();
    if (connectionMessage != null)
    {
      final InlineLabel text = new InlineLabel(connectionMessage);
      // ("font-weight", "bold");
      final VerticalLayoutData varticalLayoutData = new VerticalLayoutData(1, -1);
      varticalLayoutData.setMargins(new Margins(5, 0, 10, 0));
      verticalLayoutContainer.add(text, varticalLayoutData);
    }
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.