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

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


      HorizontalPanel panel = new HorizontalPanel();
      panel.addStyleName(STYLES.actionWidget());
     
      Label label = new Label(action.getMessage());
      label.setWordWrap(false);
      label.addStyleName(STYLES.actionLabel());
      panel.add(label);
     
      ActionButton button = new ActionButton(action.getButtonText());
      button.addClickHandler(new ClickHandler() {
View Full Code Here


      NewProjectResources.Styles styles = NewProjectResources.INSTANCE.styles();  
     
      VerticalPanel urlPanel = new VerticalPanel();
      urlPanel.addStyleName(styles.wizardMainColumn());
      Label urlLabel = new Label("Repository URL:");
      urlLabel.addStyleName(styles.wizardTextEntryLabel());
      urlPanel.add(urlLabel);
      txtRepoUrl_ = new TextBox();
      txtRepoUrl_.addDomHandler(new KeyDownHandler() {
         public void onKeyDown(KeyDownEvent event)
         {
View Full Code Here

      if (includeCredentials())
      { 
         VerticalPanel usernamePanel = new VerticalPanel();
         usernamePanel.addStyleName(styles.wizardMainColumn());
         Label usernameLabel = new Label("Username (if required for this repository URL):");
         usernameLabel.addStyleName(styles.wizardTextEntryLabel());
         usernamePanel.add(usernameLabel);
         usernamePanel.add(txtUsername_);
         addWidget(usernamePanel);
        
         addSpacer();
View Full Code Here

        
         addSpacer();
      }
     
      Label dirNameLabel = new Label("Project directory name:");
      dirNameLabel.addStyleName(styles.wizardTextEntryLabel());
      addWidget(dirNameLabel);
      txtDirName_ = new TextBox();
      txtDirName_.addValueChangeHandler(new ValueChangeHandler<String>() {

         @Override
View Full Code Here

      Grid grid = new Grid(4, 2);
      grid.addStyleName(RESOURCES.styles().workspaceGrid());
      grid.setCellSpacing(8);
     
      Label infoLabel = new Label("Use (Default) to inherit the global default setting");
      infoLabel.addStyleName(PreferencesDialogBaseResources.INSTANCE.styles().infoLabel());
      grid.setWidget(0, 0, infoLabel);
     
      // restore workspace
      grid.setWidget(1, 0, new Label("Restore .RData into workspace at startup"));
      grid.setWidget(1, 1, restoreWorkspace_ = new YesNoAskDefault(false));
View Full Code Here

   }
  
   protected void addSpacer()
   {
      Label spacerLabel = new Label();
      spacerLabel.addStyleName(
                     NewProjectResources.INSTANCE.styles().wizardSpacer());
      flowPanel_.add(spacerLabel);
   }
  
   protected String projFileFromDir(String dir)
View Full Code Here

      VerticalPanel panel = new VerticalPanel();
      panel.addStyleName(RES.styles().wizardMainColumn());
     
      HorizontalPanel labelPanel = new HorizontalPanel();
      Label label = new Label("Create package based on source files:");
      label.addStyleName(RES.styles().wizardTextEntryLabel());
      labelPanel.add(label);
      panel.add(labelPanel);
     
      HorizontalPanel dictionariesPanel = new HorizontalPanel();
      listBox_ = new ListBox(false);
View Full Code Here

   private void addHeader(String caption)
   {
      PreferencesDialogBaseResources baseRes =
                              PreferencesDialogBaseResources.INSTANCE;
      Label pdfCompilationLabel = new Label(caption);
      pdfCompilationLabel.addStyleName(baseRes.styles().headerLabel());
      nudgeRight(pdfCompilationLabel);
      add(pdfCompilationLabel);
   }
  
   private class RootDocumentChooser extends TextBoxWithButton
View Full Code Here

    return titlePanel;
  }

  private Widget getCreateButton(final String module) {
    final Label createBtn = new Label("Create");
    createBtn.addStyleName("create_button");
    createBtn.setVisible(false);
    createBtn.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        if (null != presenter) {
View Full Code Here

  public Form(String title) {
    FlowPanel panel = new FlowPanel();

    if(title != null) {
      Label formTitle = new Label(title);
      formTitle.addStyleName("claymus-h2");
      panel.add(formTitle);
    }

    panel.add(this.fields);
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.