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

Examples of com.google.gwt.user.client.ui.Label.addStyleName()


    if ( isInTrash ) {
      setWidget( 11, 0, new Label( Messages.getString( "dateDeleted" ) + ":" ) ); //$NON-NLS-1$//$NON-NLS-2$
      setWidget( 11, 1, deletedDateLabel );

      Label lbl = new Label( Messages.getString( "originalLocation" ) + ":" ); //$NON-NLS-1$ //$NON-NLS-2$
      lbl.addStyleName( "nowrap" ); //$NON-NLS-1$    
      setWidget( 12, 0, lbl );
      setWidget( 12, 1, originalLocationLabel );

      Button restoreButton = new Button( "Restore" );
      restoreButton.setStylePrimaryName( "pentaho-button" );
View Full Code Here


    if (f != null) {
      f.setValue(convertedValue);
      return f;
    } else {
      Label l = new Label();
      l.addStyleName(rowEditor.getAppearance().labelClass());
      l.setText(convertedValue != null ? convertedValue.toString() : "");
      return l;
    }

  }
View Full Code Here

          if(project.isActive()) {
            applicationLabel.setStyleName(manager.appIconActive());
            appName.addStyleName(manager.text());
            httpLabel.addStyleName(manager.link());
            httpsLabel.addStyleName(manager.link());
            settingsLabel.addStyleName(manager.link());
          }
        }
      });
      applicationLabel.addMouseOutHandler(new MouseOutHandler() {
        public void onMouseOut(MouseOutEvent event){
View Full Code Here

 
  private void addProject(Project project){
    final String projectName = project.getName();
    final Label testLabel = new Label(project.getName());
    testLabel.setStyleName(style.popupLabel());
    testLabel.addStyleName(style.lastLabel())
    testLabel.addMouseOverHandler(new MouseOverHandler(){
      public void onMouseOver(MouseOverEvent event){
        testLabel.setStyleName(style.popupLabelActive());
      }
    });
View Full Code Here

    }

    // TODO refactor: extract
    private void initBranding() {
        Label appTitleLabel = new Label(branding.getApplicationTitle());
        appTitleLabel.addStyleName("branding-app-title");
        add(appTitleLabel);

        Label minorTitleLabel = new Label(branding.getMinorApplicationTitle());
        minorTitleLabel.addStyleName("branding-minor-app-title");
        add(minorTitleLabel);
View Full Code Here

        Label appTitleLabel = new Label(branding.getApplicationTitle());
        appTitleLabel.addStyleName("branding-app-title");
        add(appTitleLabel);

        Label minorTitleLabel = new Label(branding.getMinorApplicationTitle());
        minorTitleLabel.addStyleName("branding-minor-app-title");
        add(minorTitleLabel);

        Label copyRightLabel = new Label(branding.getCopyright());
        copyRightLabel.addStyleName("branding-copy-right");
        add(copyRightLabel);
View Full Code Here

        Label minorTitleLabel = new Label(branding.getMinorApplicationTitle());
        minorTitleLabel.addStyleName("branding-minor-app-title");
        add(minorTitleLabel);

        Label copyRightLabel = new Label(branding.getCopyright());
        copyRightLabel.addStyleName("branding-copy-right");
        add(copyRightLabel);
    }

    /**
     * Prevents the browsers context menu from appearing on the desktop.
View Full Code Here

        FlexTable actionBarPanel = new FlexTable();
        actionBarPanel.addStyleName(CSS_ACTIONBAR_PANEL);

        Label header = new Label(panel.getTitle());
        header.addStyleName(CSS_ACTIONBAR_PANEL_HEADER);
        actionBarPanel.setWidget(0, 0, header);
        actionBarPanel.getFlexCellFormatter().setColSpan(0, 0, 2);

        SimplePanel contentPanel = new SimplePanel();
        contentPanel.add(panel.getContentWidget());
View Full Code Here

    }

    private void addHeader(VerticalPanel panel) {
        if (headerUpdatedHandler == null) {
            Label header = new Label(headerText);
            header.addStyleName(CSS_POPUP_CONTENT_HEADER);
            panel.add(header);
        } else {
            final TextBox header = new TextBox();
            header.setText(headerText);
            header.setMaxLength(20); // TODO change to resizable text box
View Full Code Here

            panel.add(header);
        } else {
            final TextBox header = new TextBox();
            header.setText(headerText);
            header.setMaxLength(20); // TODO change to resizable text box
            header.addStyleName(CSS_POPUP_CONTENT_HEADER);
            header.addKeyUpHandler(new KeyUpHandler() {
                @Override
                public void onKeyUp(KeyUpEvent event) {
                    headerUpdatedHandler.headerLabelChanged(header.getText());
                }
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.