com.google.gwt.user.client.ui.Label.setTitle()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(190)

本文整理了Java中com.google.gwt.user.client.ui.Label.setTitle()方法的一些代码示例,展示了Label.setTitle()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setTitle()方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Label
类名称:Label
方法名:setTitle

Label.setTitle介绍

暂无

代码示例

代码示例来源:origin: kiegroup/appformer

@Override
public void setNodeFullName(String name) {
  nodeName.setTitle(name);
}

代码示例来源:origin: org.uberfire/uberfire-widgets-security-management

@Override
public void setNodeFullName(String name) {
  nodeName.setTitle(name);
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets

@Override
public ScreenErrorView showMessage(final String message) {
  this.message.setTitle(message);
  this.message.setText(message);
  return this;
}

代码示例来源:origin: org.uberfire/uberfire-widgets-security-management

@Override
public void setNodeFullName(String name) {
  nodeName.setTitle(name);
  nodeNameHelp.setTitle(name);
  nodeNameHelp.setClassName("acl-help-panel");
}

代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt

private Label getFormattedLabel(final String name, final String tooltip) {
    final Label label = new Label(name);
    label.setStyleName("formLabel");
    label.setTitle(tooltip);
    return label;
  }
}

代码示例来源:origin: kiegroup/appformer

@Override
public void setNodeFullName(String name) {
  nodeName.setTitle(name);
  nodeNameHelp.setTitle(name);
  nodeNameHelp.setClassName("acl-help-panel");
}

代码示例来源:origin: org.eagle-i/eagle-i-common-ui-gwt

public static Label createLabel(final String label, final String definition, final boolean isRequired) {
  Label propertyLabel;
  if (label == null || "".equals(label)) {
    propertyLabel = new Label(label);
  } else {
    propertyLabel = new Label(capitalizeFirst(label));
  }
  if (isRequired) {
    propertyLabel.setStyleName("formLabelRequired");
  } else {
    propertyLabel.setStyleName("formLabel");
  }
  if (definition != null && !"".equals(definition) && !"NO DEFINITION".equals(definition)) {
    propertyLabel.setTitle(definition);
  }
  return propertyLabel;
}

代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt

@Override
protected void decorateSection(String sectionTitle, FlowPanel sectionPanel, EIEntity instanceEntity) {
  FlowPanel titlePanel = new FlowPanel();
  Label title = new Label( );
  title.setStyleName( "contactSectionTitle" );
  titlePanel.add( title );
  titlePanel.addStyleName( "contactSectionHeader" );
  
  if ( sectionTitle.equals( PropertyOrderUtil.LOCAL_SECTION ))  {
    title.setText( LOCAL_ONTOLOGY_TITLE );
    title.setTitle( LOCAL_ONTOLOGY_TITLE_HELP );
    title.setStyleName("annotationTitle");
    sectionPanel.add( titlePanel );
  }
}

代码示例来源:origin: org.eagle-i/eagle-i-search-gwt

@Override
  protected void decorateSection(final String sectionTitle, final FlowPanel sectionPanel, final EIEntity instanceEntity) {
    FlowPanel titlePanel = new FlowPanel();
    Label title = new Label( );
    titlePanel.add( title );
    titlePanel.addStyleName( "contactSectionHeader" );
    
    //TODO remove if definitive (for now it doesn't make sense since we moved contact button out)
//        if ( sectionTitle.equalsIgnoreCase( PropertyOrderUtil.CONTACT_SECTION ) ) {
//            title.setStyleName( "contactSectionTitle" );
//            title.setText( sectionTitle );  
//        }
    
    if ( sectionTitle.equals( PropertyOrderUtil.LOCAL_SECTION ))  {
      title.setText( LOCAL_ONTOLOGY_TITLE );
      title.setTitle( LOCAL_ONTOLOGY_TITLE_HELP );
      title.setStyleName("annotationTitle");
    }
    
    sectionPanel.add( titlePanel );
  }

代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt

@Override
protected void decorateSection(String sectionTitle, FlowPanel sectionPanel, EIEntity instanceEntity) {
  FlowPanel titlePanel = new FlowPanel();
  Label title = new Label();
  title.setStyleName( "contactSectionTitle" );
  titlePanel.add( title );
  titlePanel.addStyleName( "contactSectionHeader" );
  if ( sectionTitle.equals( PropertyOrderUtil.LOCAL_SECTION ) ) {
    title.setText( LOCAL_ONTOLOGY_TITLE );
    title.setTitle( LOCAL_ONTOLOGY_TITLE_HELP );
    title.setStyleName( "annotationTitle" );
    sectionPanel.add( titlePanel );
  }
}

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-git-ext-git

@Override
 public void update(ActionEvent e) {
  panel.clear();

  Project project = appContext.getRootProject();
  if (project != null && project.getAttributes().containsKey(GIT_CURRENT_HEAD_NAME)) {
   Label projectNameLabel = new Label(project.getName());
   projectNameLabel.ensureDebugId("statusBarProjectBranchRepositoryName");
   projectNameLabel.getElement().getStyle().setMarginLeft(5., Unit.PX);
   panel.add(projectNameLabel);

   SVGImage branchIcon = new SVGImage(resources.checkoutReference());
   branchIcon.getSvgElement().getStyle().setMarginLeft(5., Unit.PX);
   panel.add(branchIcon);

   Label headLabel = new Label(project.getAttribute(GIT_CURRENT_HEAD_NAME));
   headLabel.ensureDebugId("statusBarProjectBranchName");
   headLabel.setTitle(constant.branchesControlTitle());
   Style headLabelStyle = headLabel.getElement().getStyle();
   headLabelStyle.setCursor(Cursor.POINTER);
   headLabelStyle.setMarginLeft(5., Unit.PX);
   headLabel.addClickHandler(event -> branchPresenter.showBranches(project));
   panel.add(headLabel);
  }
 }
}

代码示例来源:origin: org.eclipse.che.core/che-core-ide-app

if (selection == null || selection.isEmpty()) {
  pathLabel.setText("");
  pathLabel.setTitle("");
  return;
    getShortPath(((ResourceNode) head).getData().getLocation().toString());
  pathLabel.setText(path);
  pathLabel.setTitle(path);
  return;
 pathLabel.setTitle("");
});

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

territoryLabel.setTitle(MESSAGES.securityGroupDetailTerritoryHint());
territoryLabel.setWordWrap(false);

相关文章