List of usage examples for com.google.gwt.user.client Window setTitle
public static void setTitle(String title)
From source file:asquare.gwt.tests.history.client.TabController.java
License:Apache License
public void selectTab(int tabIndex) { if (tabIndex != m_selectedTab) { m_selectedTab = tabIndex; // set first to prevent re-entry m_tabPanel.selectTab(tabIndex);/* w w w.ja v a 2 s. c o m*/ Window.setTitle(m_windowTitle + " > " + m_tabs.getDescription(tabIndex)); } }
From source file:asquare.gwt.tkdemo.client.TabHistoryCoordinator.java
License:Apache License
public void selectTab(int tabIndex) { if (tabIndex < 0) { tabIndex = 0;//w ww . j a va 2 s .com } if (tabIndex != m_selectedTab) { m_selectedTab = tabIndex; // set first to prevent re-entry m_tabPanel.selectTab(tabIndex); Window.setTitle(m_windowTitle + " > " + m_tabs.getDescription(tabIndex)); } }
From source file:cc.kune.chat.client.KuneHablarSignals.java
License:GNU Affero Public License
/** * Instantiates a new kune hablar signals. * * @param kuneEventBus//from w w w .j av a 2 s . c o m * the kune event bus * @param session * the session * @param hablar * the hablar * @param action * the action * @param privateStorageManager * the private storage manager * @param i18n * the i18n * @param downUtils * the down utils * @param chatIcon */ public KuneHablarSignals(final EventBus kuneEventBus, final XmppSession session, final Hablar hablar, final ChatClientAction action, final PrivateStorageManager privateStorageManager, final I18nTranslationService i18n, final ClientFileDownloadUtils downUtils, IsWidget chatIcon) { this.chatIcon = chatIcon; final HablarEventBus hablarEventBus = hablar.getEventBus(); final PrivateStorageManager storageManager = privateStorageManager; final HasText titleDisplay = new HasText() { @Override public String getText() { return Window.getTitle(); } @Override public void setText(final String text) { Window.setTitle(text); } }; final SignalPreferences preferences = new SignalPreferences(); final UnattendedPagesManager manager = new UnattendedPagesManager(hablarEventBus, BrowserFocusHandler.getInstance()); new KuneBrowserFocusManager(kuneEventBus, hablarEventBus, manager, BrowserFocusHandler.getInstance()); new UnattendedPresenter(hablarEventBus, preferences, manager, titleDisplay); new KuneUnattendedPresenter(kuneEventBus, hablarEventBus, preferences, manager, chatIcon); final NotificationManager notificationManager = new NotificationManager(hablarEventBus, preferences); // notificationManager.addNotifier((BrowserPopupHablarNotifier) // GWT.create(BrowserPopupHablarNotifier.class), // true); notificationManager.addNotifier(new KuneChatNotifier(i18n, downUtils, kuneEventBus), true); final SignalsPreferencesPresenter preferencesPage = new SignalsPreferencesPresenter(session, storageManager, hablarEventBus, preferences, new SignalsPreferencesWidget(), notificationManager); hablar.addPage(preferencesPage, UserContainer.ROL); }
From source file:cc.kune.core.client.sitebar.spaces.SpaceSelectorPanel.java
License:GNU Affero Public License
@Override public void setWindowTitle(final String title) { Window.setTitle(title); }
From source file:cc.kune.gspace.client.viewers.AbstractFolderViewerPanel.java
License:GNU Affero Public License
@Override public void setContainer(final StateContainerDTO state) { final String title = state.getContainer().isRoot() ? i18n.t(state.getTitle()) : state.getTitle(); contentTitle.setTitle(title, state.getTypeId(), state.getContainerRights().isEditable() && capabilitiesRegistry.isRenamable(state.getTypeId())); Window.setTitle(state.getGroup().getLongName() + ": " + state.getTitle()); fromInboxDropController.setTarget(state.getStateToken()); }
From source file:cc.kune.gspace.client.viewers.ContentViewerPanel.java
License:GNU Affero Public License
/** * Sets the title./*from w ww . j a va 2 s . c o m*/ * * @param state * the state * @param editable * the editable */ private void setTitle(final StateContentDTO state, final boolean editable) { contentTitle.setTitle(state.getTitle(), state.getTypeId(), state.getMimeType(), editable && capabilitiesRegistry.isRenamable(state.getTypeId())); Window.setTitle(state.getGroup().getLongName() + ": " + state.getTitle()); }
From source file:cc.kune.wave.client.CustomWindowTitleHandler.java
License:Apache License
@Override public void onClosed(final WaveContext wave) { if (TokenMatcher.isWaveToken(History.getToken())) { Window.setTitle(defaultTitle); }// ww w.ja v a 2s .c om }
From source file:cc.kune.wave.client.CustomWindowTitleHandler.java
License:Apache License
@Override public void onOpened(final WaveContext wave) { if (TokenMatcher.isWaveToken(History.getToken())) { final String waveTitle = TitleHelper.getTitle(wave); String windowTitle = formatTitle(waveTitle); if (waveTitle == null || waveTitle.isEmpty()) { windowTitle = defaultTitle;/*from ww w . ja va2s .c o m*/ } Window.setTitle(windowTitle); editableLabel.setText(waveTitle); } }
From source file:cl.uai.client.MarkingInterface.java
License:Open Source License
/** * Loads submission data using global submission id *//*from w w w.j av a 2 s .co m*/ public void loadSubmissionData() { // Checks that global submission id is valid if (MarkingInterface.draftId <= 0) return; addLoading(false); // Ajax requesto to submission data AjaxRequest.ajaxRequest("action=getsubmission", new AsyncCallback<AjaxData>() { @Override public void onFailure(Throwable caught) { logger.severe("Error getting submission from Moodle!"); logger.severe(caught.getMessage()); Window.alert(caught.getMessage()); finishLoading(); } @Override public void onSuccess(AjaxData result) { // Parse Json values Map<String, String> values = AjaxRequest.getValueFromResult(result); // Reset submission data submissionData = SubmissionGradeData.createFromConfiguration(values); if (submissionData != null) { EMarkingWeb.markingInterface.loadInterface(); } else { Window.alert(MarkingInterface.messages.InvalidSubmissionData()); } Window.setTitle( "Emarking " + submissionData.getCoursename() + " " + submissionData.getActivityname()); if (EMarkingConfiguration.isChatEnabled()) { activateChat(); } finishLoading(); Window.addResizeHandler(new ResizeHandler() { @Override public void onResize(ResizeEvent event) { resizeTime = new Date(); if (!resizeTimeout) { resizeTimeout = true; resizeTimer.schedule(200); } } }); } }); }
From source file:co.fxl.gui.gwt.GWTDisplay.java
License:Open Source License
@Override public IDisplay title(String title) { Window.setTitle(title); return this; }