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() . 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 File: WindowTitleHandler.java    From swellrt with 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
Source File: WindowTitleHandler.java    From incubator-retired-wave with 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 3
Source File: NaluPluginGWT.java    From nalu with Apache License 2.0 4 votes vote down vote up
@Override
public void updateTitle(String title) {
  Window.setTitle(title);
}
 
Example 4
Source File: UniTimePageLabel.java    From unitime with 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 File: UniTimePageLabel.java    From unitime with 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 File: WindowTitleHandler.java    From swellrt with Apache License 2.0 4 votes vote down vote up
@Override
public void onClosed(WaveContext wave) {
  Window.setTitle(DEFAULT_TITLE);
}
 
Example 7
Source File: ViewportDemo.java    From gwt-traction with 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
Source File: WindowTitleHandler.java    From incubator-retired-wave with Apache License 2.0 4 votes vote down vote up
@Override
public void onClosed(WaveContext wave) {
  Window.setTitle(DEFAULT_TITLE);
}