本文整理了Java中com.google.gwt.user.client.Window.setTitle()
方法的一些代码示例,展示了Window.setTitle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.setTitle()
方法的具体详情如下:
包路径:com.google.gwt.user.client.Window
类名称:Window
方法名:setTitle
[英]Sets the browser window's title.
[中]设置浏览器窗口的标题。
代码示例来源:origin: playn/playn
/**
* Sets the title of the browser's window or tab.
*
* @param title the window title
*/
public void setTitle (String title) {
Window.setTitle(title);
}
代码示例来源:origin: sriharshachilakapati/SilenceEngine
@Override
public void setTitle(String title)
{
this.title = title;
Window.setTitle(title);
}
代码示例来源:origin: de.esoco/gewt
/***************************************
* Sets the view title.
*
* @param sTitle The new title
*/
public void setTitle(String sTitle)
{
Window.setTitle(sTitle);
}
}
代码示例来源:origin: threerings/playn
/**
* Sets the title of the browser's window or tab.
*
* @param title the window title
*/
public void setTitle(String title) {
Window.setTitle(title);
}
代码示例来源:origin: io.playn/playn-html
/**
* Sets the title of the browser's window or tab.
*
* @param title the window title
*/
public void setTitle (String title) {
Window.setTitle(title);
}
代码示例来源:origin: org.kuali.student.core/ks-common-ui
/**
* Call this to change the subtitle
*/
public static void setSubtitle(String title){
subTitle = title;
Window.setTitle(generateWindowTitle());
}
代码示例来源:origin: org.kuali.student.core/ks-common-ui
public static void setApplicationTitle(String title){
appTitle = title;
contextTitle = "";
subTitle = "";
Window.setTitle(generateWindowTitle());
}
代码示例来源:origin: org.kuali.student.core/ks-common-ui
/**
* Call this when scope of the application changes to make this be the new
* preceding title for the window, followed by last breadcrumb name
*/
public static void setContextTitle(String title){
contextTitle = title;
subTitle = "";
Window.setTitle(generateWindowTitle());
}
代码示例来源:origin: bedatadriven/activityinfo
private void titleChanged(Observable<String> title) {
if(title.isLoading()) {
titleHtml.setText("ActivityInfo");
Window.setTitle("ActivityInfo");
} else {
titleHtml.setText(title.get());
Window.setTitle(title.get() + " - ActivityInfo");
}
}
代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt
private ApplicationState(final String bookmark) {
queryTokenObject = new QueryTokenObject( bookmark, true );
listeners = new ArrayList<ApplicationStateChangeListener>();
shallowUpdateListeners = new ArrayList<ApplicationStateChangeListener>();
History.addValueChangeHandler( this );
providerCache = new ResourceProviderCache();
Window.setTitle(getCurrentTitle());
}
代码示例来源:origin: org.eagle-i/eagle-i-search-gwt
private void updateState(final String historyToken) {
final String newPageParamString = parsePageParamString( historyToken );
setInternalRequestState( newPageParamString );
final PageMode newPageMode = parsePageMode( historyToken );
currentPageMode = newPageMode;
Window.setTitle(getCurrentTitle());
}
代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt
/**
* Deliberately does not update history
* @param resourceProvider
* @param type
*/
public void updateFromEIInstance(final EIEntity resourceProvider, final EIEntity type) {
queryTokenObject.setResourceProviderEntity( getCorrectEntity( resourceProvider ) );
queryTokenObject.setTypeEntity( getCorrectEntity(type) );
Window.setTitle(getCurrentTitle());
for (final ApplicationStateChangeListener listener : shallowUpdateListeners) {
listener.onApplicationStateChange();
}
}
代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt
@Override
public void onValueChange(final ValueChangeEvent<String> event) {
handlerManager.fireEvent( new BrowserBackOrForwardEvent( queryTokenObject ) );
log.debug( "history change event value '" + event.getValue() + "'" );
queryTokenObject.fromString( event.getValue(), true );
Window.setTitle(getCurrentTitle());
notifyListeners();
}
代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt
protected void update() {
History.newItem( queryTokenObject.toString(), false );
Window.setTitle(getCurrentTitle());
notifyListeners();
SweetAnalytics sweetAnalytics = new SweetAnalytics(queryTokenObject.getViewAnalytics(), queryTokenObject.getFilterAnalytics(),
queryTokenObject.getInstanceAnalytics());
recordAnalyticsHit(sweetAnalytics.toString());
}
// -- END update application methods
内容来源于网络,如有侵权,请联系作者删除!