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

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


        text.setHeight("20em");
        midPanel.add(chatList);
        midPanel.add(text);

        final Label label = new Label("Enter Message:");
        label.addStyleName("bold");
        final TextBox messageBox = new TextBox(); // (8)
        messageBox.setWidth("60em");
        final Button sendButton = new Button("send");
        bottomPanel.add(label);
        bottomPanel.add(messageBox);
View Full Code Here


        topPanel.add(subtitle);

        final VerticalPanel chatList = new VerticalPanel(); // (7)
        chatList.setBorderWidth(2);
        final Label chatLabel = new Label("Chats");
        chatLabel.addStyleName("emphasized");//(8)
        chatList.add(chatLabel);
        chatList.setWidth("10em");//(9)
        populateChats(chatList); //(10)
        // "TextArea text" is defined as a field of the class, so that
        // the textarea can be referenced by handler methods.
View Full Code Here

        text.setHeight("20em");
        midPanel.add(chatList);
        midPanel.add(text);

        final Label label = new Label("Enter Message:");
        label.addStyleName("bold");
        final TextBox messageBox = new TextBox();
        messageBox.setWidth("60em");
        final Button sendButton = new Button("send");
        bottomPanel.add(label);
        bottomPanel.add(messageBox);
View Full Code Here

      res_ = res;
      globalDisplay_ = globalDisplay;
      PreferencesDialogBaseResources baseRes = PreferencesDialogBaseResources.INSTANCE;

      Label installationLabel = new Label("Package management");
      installationLabel.addStyleName(baseRes.styles().headerLabel());
      nudgeRight(installationLabel);
      add(installationLabel);
     
      cranMirrorTextBox_ = new TextBoxWithButton(
            "CRAN mirror:",
View Full Code Here

         spaced(chkEnablePackages);
         chkEnablePackages.getElement().getStyle().setMarginBottom(12, Unit.PX);
      }
     
      Label developmentLabel = new Label("Package development");
      developmentLabel.addStyleName(baseRes.styles().headerLabel());
      nudgeRight(developmentLabel);
      add(developmentLabel);
     
      useDevtools_ = new CheckBox("Use devtools package functions if available");
      lessSpaced(useDevtools_);
View Full Code Here

                                        image.getHeight(), Unit.PX);
        
       
         FlowPanel captionPanel = new FlowPanel();
         Label titleLabel = new Label(pageInfo.getTitle());
         titleLabel.addStyleName(styles.headerLabel());
         captionPanel.add(titleLabel);
         Label subTitleLabel = new Label(pageInfo.getSubTitle());
         subTitleLabel.addStyleName(styles.subcaptionLabel());
         captionPanel.add(subTitleLabel);
         layoutPanel.add(captionPanel);
View Full Code Here

         FlowPanel captionPanel = new FlowPanel();
         Label titleLabel = new Label(pageInfo.getTitle());
         titleLabel.addStyleName(styles.headerLabel());
         captionPanel.add(titleLabel);
         Label subTitleLabel = new Label(pageInfo.getSubTitle());
         subTitleLabel.addStyleName(styles.subcaptionLabel());
         captionPanel.add(subTitleLabel);
         layoutPanel.add(captionPanel);
         layoutPanel.setWidgetLeftWidth(captionPanel,
                                        10 + image.getWidth() + 12, Unit.PX,
                                        450, Unit.PX);
View Full Code Here

      HorizontalPanel headerPanel = new HorizontalPanel();
      headerPanel.addStyleName(styles.headerPanel());
      headerPanel.add(new Image(RESOURCES.publishLarge()));
     
      Label headerLabel = new Label("Publish to RPubs");
      headerLabel.addStyleName(styles.headerLabel());
      headerPanel.add(headerLabel);
      headerPanel.setCellVerticalAlignment(headerLabel,
                                           HasVerticalAlignment.ALIGN_MIDDLE);
     
      verticalPanel.add(headerPanel);
View Full Code Here

         msg = "This document has already been published on RPubs. You can " +
               "choose to either update the existing RPubs document, or " +
               "create a new one.";
      }
      Label descLabel = new Label(msg);
      descLabel.addStyleName(styles.descLabel());
      verticalPanel.add(descLabel);

      // if we have a generator then show title and comment UI
      if (htmlGenerator_ != null)
      {
View Full Code Here

      // if we have a generator then show title and comment UI
      if (htmlGenerator_ != null)
      {
         Label titleLabel = new Label("Title (optional):");
         titleLabel.addStyleName(styles.fieldLabel());
         verticalPanel.add(titleLabel);
         titleTextBox_ = new TextBox();
         titleTextBox_.addStyleName(styles.titleTextBox());
         titleTextBox_.getElement().setAttribute("spellcheck", "false");
         verticalPanel.add(titleTextBox_);
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.