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

x33g5p2x  于2022-02-02 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(128)

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

Widget.setTitle介绍

暂无

代码示例

代码示例来源:origin: com.extjs/gxt

@Override
public void setTitle(String title) {
 this.title = title;
 if (rendered) {
  super.setTitle(title);
 }
}

代码示例来源:origin: de.esoco/gewt

/***************************************
 * Sets the text of the component's tool tip.
 *
 * @param sText The new tool tip text (NULL for no tool tip)
 */
public void setToolTip(String sText)
{
  getWidget().setTitle(getContext().expandResource(sText));
}

代码示例来源:origin: org.geomajas/geomajas-client-gwt2-example-base

public static Widget getLayout() {
  Widget layout;
  Map<String, List<String>> queryStringMap = Window.Location.getParameterMap();
  if (null != queryStringMap && queryStringMap.containsKey("sample")) {
    String exampleName = queryStringMap.get("sample").get(0);
    ShowcaseSampleDefinition foundFactory = findSampleDefinition(exampleName);
    if (null == foundFactory) {
      return new ShowcaseLayout();
    }
    layout = new SamplePage();
    layout.setTitle(foundFactory.getTitle());
    ((SamplePage) layout).setSamplePanelFactory(foundFactory);
  } else {
     layout = new ShowcaseLayout();
  }
  return layout;
}

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

if (titleWidget != null && titleWidget instanceof Label) {
 ((Label) titleWidget).setText(notification.getTitle());
 titleWidget.setTitle(notification.getTitle());

相关文章