本文整理了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
暂无
代码示例来源: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());
内容来源于网络,如有侵权,请联系作者删除!