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

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


            if (i % 2 == 0) {
                hP.addStyleName("TC-DecisionRanked-Even");
            }

            Label rankL = new Label(i + "");
            rankL.addStyleName("TC-DecisionRanked-Rank");
            pctL.addStyleName("TC-DecisionRanked-Pct");

            hP.add(rankL);
            hP.add(link);
            hP.add(pctL);
View Full Code Here


    debugTable.addStyleName(STYLE_LOG_PANEL);
    logTextArea.addStyleName(STYLE_LOG_TEXT_AREA);
    scrollPanel.addStyleName(STYLE_LOG_SCROLL_PANEL);

    final Label header = new Label("LOG PANEL");
    header.addStyleName(STYLE_LOG_HEADER);
    debugTable.setWidget(0, 0, header);
    debugTable.setWidget(1, 0, scrollPanel);
    debugTable.getCellFormatter().setHorizontalAlignment(0, 0,
        HasHorizontalAlignment.ALIGN_CENTER);
View Full Code Here

      String tag = trafficCountRecord.getTag();
     
      // create labels for each attribute we show in the table
      Label dateLabel = new Label(date);
      dateLabel.setStyleName(style.record());
      dateLabel.addStyleName(style.clickable());
      dateLabel.addClickHandler(new ClickHandler() {
       
        @Override
        public void onClick(ClickEvent event) {
          eventBus.fireEvent(new EditTrafficCountRecordEvent(trafficCountRecord));
View Full Code Here

       
    for (int i = 0; i < tags.size(); i++) {
      final TagDetails tagDetails = tags.get(i);
     
      Label name = new Label(tagDetails.getName());
      name.addStyleName(style.clickable());
      name.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
          resetRightPane();
          currentTagDetails = tagDetails;
View Full Code Here

          uncheckMasterCheckBox();
        }
      });
      Label name = new Label(roadDetails.getName());
      name.setStyleName(style.roadList());
      name.addStyleName(style.clickable());
      name.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
          /*
           * There is no guarantee that the current polyline
View Full Code Here

       
    for (int i = 0; i < tags.size(); i++) {
      final TagDetails tagDetails = tags.get(i);
     
      Label name = new Label(tagDetails.getName());
      name.addStyleName(style.clickable());
      name.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
          resetRightPane();
          currentTagDetails = tagDetails;
View Full Code Here

              }
            });
           
            Label name = new Label(studyRegion.getName());
            name.setStyleName(style.zoneList());
            name.addStyleName(style.clickable());
            name.addClickHandler(new ClickHandler() {
              @Override
              public void onClick(ClickEvent event) {
                loadRegionDetails(studyRegion);
              }
View Full Code Here

    VerticalPanel gamePanel = new VerticalPanel();
    gamePanel.addStyleName("widePanel");

    Label title = new Label("Welcome to... Higher or Lower!");
    title.addStyleName("title");
    gamePanel.add(title);

    gamePanel.add(button);
    gamePanel.add(cardGrid);
    gamePanel.add(scoreBoard);
View Full Code Here

      });
     
      initWidget(GWT.<Binder>create(Binder.class).createAndBindUi(this));

      Label tracebackTitle = new Label("Traceback");
      tracebackTitle.addStyleName(style.tracebackHeader());
     
      callFramePanelHeader.addStyleName(globalStyles.windowframe());
      callFramePanelHeader.add(tracebackTitle);
      CheckBox showInternals = new CheckBox("Show internals");
      showInternals.setValue(panelHost_.getShowInternalFunctions());
View Full Code Here

   {
      // create the titlebar (no title for now)
      HorizontalPanel titlePanel = new HorizontalPanel();
      ThemeStyles styles = ThemeResources.INSTANCE.themeStyles();
      Label titleLabel = new Label(title);
      titleLabel.addStyleName(styles.fullscreenCaptionLabel());
      titlePanel.add(titleLabel);
     
      // create the frame
      AnchorableFrame frame = new PresentationFrame(true);
      frame.setSize("100%", "100%");
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.