List of usage examples for com.google.gwt.user.client Window setTitle
public static void setTitle(String title)
From source file:org.codesearch.searcher.client.ui.fileview.FileViewImpl.java
License:Open Source License
/** * {@inheritDoc}/* ww w . j a va 2 s. c om*/ */ @Override public void setFilePath(String filePath) { if (filePath != null) { String fileName = filePath; if (fileName.contains("/")) { fileName = fileName.substring(filePath.lastIndexOf('/') + 1); } filenameLabel.setText(fileName); filenameLabel.setTitle(filePath); Window.setTitle(filePath); } }
From source file:org.cruxframework.crux.core.client.screen.RootViewContainer.java
License:Apache License
@Override protected void handleViewTitle(String title, Panel containerPanel, String viewId) { Window.setTitle(title); }
From source file:org.ducktools.tutorial.gwt.architecture.photoalbum.ui.application.impl.ApplicationDisplayImpl.java
License:Open Source License
/** * @see ApplicationDisplay#setTitle(String) */ @Override public void setTitle(String title) { Window.setTitle(title); }
From source file:org.ebayopensource.turmeric.monitoring.client.Console.java
License:Open Source License
/** * This is the entry point method./*from ww w. ja v a 2 s. c o m*/ */ public void onModuleLoad() { Window.setTitle(ConsoleUtil.constants.title()); final HandlerManager eventBus = new HandlerManager(null); Map<SupportedService, ConsoleService> serviceMap = createServiceMap(); AppController pageController = new AppController(eventBus, RootLayoutPanel.get(), serviceMap); pageController.start(); }
From source file:org.ebayopensource.turmeric.policy.adminui.client.PolicyAdminUI.java
License:Open Source License
/** * This is the entry point method.// ww w .ja v a 2 s . c o m */ public void onModuleLoad() { Window.setTitle(PolicyAdminUIUtil.constants.title()); Window.addCloseHandler(new CloseHandler<Window>() { public void onClose(CloseEvent<Window> event) { //briefly save the login/password combo //NOTE when using gwt hosted mode, which is sloooow, the //cookie will already have expired before the reload is //completed, so don't expect this to work in hosted mode Date expiry = new Date(System.currentTimeMillis() + 1000); //TODO change to using secure cookies only! String cookie = AppUser.toCookie(); if (cookie != null) { Cookies.setCookie(AppKeyUtil.COOKIE_SESSID_KEY, cookie, expiry); //expiry, null, null, false); } } }); final HandlerManager eventBus = new HandlerManager(null); Map<SupportedService, PolicyAdminUIService> serviceMap = createServiceMap(); AppController pageController = new AppController(eventBus, RootLayoutPanel.get(), serviceMap); pageController.start(); }
From source file:org.ednovo.gooru.application.client.gin.BasePopupViewWithHandlers.java
License:Open Source License
private void setSeoToken() { String seoToken = AppClientFactory.getPlaceManager().getBeforePlayerOpenSeoToken(); if (seoToken != null && !seoToken.equals("")) { Window.setTitle(seoToken); } else if (AppClientFactory.isAnonymous()) { Window.setTitle(SeoTokens.HOME_TITLE_ANONYMOUS); } else {//from w w w.j ava 2 s.com Window.setTitle(SeoTokens.HOME_TITLE_LOGGEDIN); } }
From source file:org.ednovo.gooru.client.mvp.library.district.lifeboard.LifeboardLibraryPresenter.java
License:Open Source License
/** * Class constructor// w ww .ja va 2s . c om * @param userRegistrationPresenter instance of {@link UserRegistrationPresenter} * @param view {@link View} * @param proxy {@link Proxy} */ @Inject public LifeboardLibraryPresenter(IsLifeboardLibraryView view, IsLifeboardLibraryProxy proxy, DistrictPresenter districtPresenter, SignUpPresenter signUpViewPresenter) { super(view, proxy); getView().setUiHandlers(this); this.districtPresenter = districtPresenter; this.signUpViewPresenter = signUpViewPresenter; Window.setTitle(i18n.GL2170()); AppClientFactory.setMetaDataDescription(i18n.GL2171()); }
From source file:org.eurekastreams.web.client.ui.pages.master.ConnectPageFactory.java
License:Apache License
/** * Creates a widget and sets the history to match it. * * @param widgetName/*from ww w. j a va2 s .c o m*/ * Name of widget desired. * @param util * For getting URL parameters. * @return The widget (or null). */ public Widget createPageWithHistory(final String widgetName, final WidgetJSNIFacadeImpl util) { if ("comment".equals(widgetName)) { String resourceUrl = util.getParameter("resourceurl"); String resourceTitle = util.getParameter("resourcetitle"); String siteUrl = util.getParameter("siteurl"); String siteTitle = util.getParameter("sitetitle"); setHistory(new CreateUrlRequest(Page.WIDGET_COMMENT, "resource")); return new CommentWidget(resourceUrl, resourceUrl, resourceTitle, siteUrl, siteTitle); } else if ("readstream".equals(widgetName)) { String request = util.getParameter("request"); setHistory(new CreateUrlRequest(Page.WIDGET_READ_STREAM, "request")); return new ReadStreamWidget(request); } else if ("fullstream".equals(widgetName)) { String request = util.getParameter("request"); setHistory(new CreateUrlRequest(Page.WIDGET_FULL_STREAM, "request")); return new FullStreamWidget(request); } else if ("badge".equals(widgetName)) { String accountId = util.getParameter("accountid"); return new UserProfileBadgeWidget(accountId); } else if ("likeshare".equals(widgetName)) { String resourceId = util.getParameter("resourceurl"); String title = util.getParameter("title"); String desc = util.getParameter("desc"); String[] thumbs = util.getParameter("thumbs").split(","); return new LikeShareWidget(resourceId, title, desc, thumbs); } else if ("sharedialog".equals(widgetName)) { String resourceId = util.getParameter("resourceurl"); String title = util.getParameter("title"); String desc = util.getParameter("desc"); String thumbStr = util.getParameter("thumbs"); String[] thumbs = null; if (!thumbStr.isEmpty()) { thumbs = thumbStr.split(","); } return new ShareWidget(resourceId, title, desc, thumbs); } else if ("actordialog".equals(widgetName)) { String resourceId = util.getParameter("resourceurl"); String countTypeStr = util.getParameter("actortype"); CountType countType = "likes".equals(countTypeStr) ? CountType.LIKES : CountType.SHARES; return new ActorListWidget(countType, resourceId); } else if ("shareactivitydialog".equals(widgetName)) { String title = util.getParameter("title"); Window.setTitle(title == null ? "Share" : title); try { Long activityId = Long.parseLong(util.getParameter("activityid")); return new ShareActivityWidget(activityId); } catch (Exception ex) { // TODO: better error handling return null; } } return null; }
From source file:org.eurekastreams.web.client.ui.Session.java
License:Apache License
/** * Set the title of the page./*from www . j ava 2 s .c o m*/ * * @param title * the page title. */ public void setPageTitle(final String title) { Window.setTitle(title + " - Eureka Streams"); }
From source file:org.glom.web.client.activity.DocumentSelectionActivity.java
License:Open Source License
@Override public void start(final AcceptsOneWidget panel, final EventBus eventBus) { Window.setTitle("Online Glom"); documentSelectionView.setPresenter(this); final AsyncCallback<Documents> callback = new AsyncCallback<Documents>() { @Override/*from www . ja va 2s . co m*/ public void onFailure(final Throwable caught) { // Try to get an error message. Most likely this won't work but it's worth a try. GWT.log("AsyncCallback Failed: OnlineGlomService.getDocuments(): " + caught.getMessage()); getAndSetErrorMessage(); } @Override public void onSuccess(final Documents documents) { documentSelectionView.clearHyperLinks(); if (documents.getCount() > 0) { for (int i = 0; i < documents.getCount(); i++) { documentSelectionView.addDocumentLink(documents.getDocumentID(i), documents.getTitle(i)); // TODO: Get default locale. } } else { getAndSetErrorMessage(); } } }; OnlineGlomServiceAsync.Util.getInstance().getDocuments(callback); panel.setWidget(documentSelectionView.asWidget()); }