Java Code Examples for com.google.gwt.user.client.Window#setTitle()

The following examples show how to use com.google.gwt.user.client.Window#setTitle() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: swellrt   File: WindowTitleHandler.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void onOpened(WaveContext wave) {
  String waveTitle = TitleHelper.getTitle(wave);
  String windowTitle = formatTitle(waveTitle);
  if (waveTitle == null || waveTitle.isEmpty()) {
    windowTitle = DEFAULT_TITLE;
  }
  Window.setTitle(windowTitle);
  waveFrame.setTitleText(waveTitle);
}
 
Example 2
@Override
public void onOpened(WaveContext wave) {
  String waveTitle = TitleHelper.getTitle(wave);
  String windowTitle = formatTitle(waveTitle);
  if (waveTitle == null || waveTitle.isEmpty()) {
    windowTitle = DEFAULT_TITLE;
  }
  Window.setTitle(windowTitle);
  waveFrame.setTitleText(waveTitle);
}
 
Example 3
Source Project: nalu   File: NaluPluginGWT.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void updateTitle(String title) {
  Window.setTitle(title);
}
 
Example 4
Source Project: unitime   File: UniTimePageLabel.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void setValue(PageNameInterface value) {
	Window.setTitle("UniTime " + CONSTANTS.version() + "| " + value.getName());
	iLabel.setValue(value);
}
 
Example 5
Source Project: unitime   File: UniTimePageLabel.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void setValue(PageNameInterface value, boolean fireEvents) {
	Window.setTitle("UniTime " + CONSTANTS.version() + "| " + value.getName());
	iLabel.setValue(value, fireEvents);
}
 
Example 6
Source Project: swellrt   File: WindowTitleHandler.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void onClosed(WaveContext wave) {
  Window.setTitle(DEFAULT_TITLE);
}
 
Example 7
Source Project: gwt-traction   File: ViewportDemo.java    License: Apache License 2.0 4 votes vote down vote up
private void update() {
boolean hasFocus = Viewport.hasFocus();
String msg = (hasFocus ? "TRUE" : "FALSE") + " from Viewport.hasFocus()";
focusLabel.setText(msg);
Window.setTitle(msg);
   }
 
Example 8
@Override
public void onClosed(WaveContext wave) {
  Window.setTitle(DEFAULT_TITLE);
}