private void iconFontTtfInitializer() { iconFontTtf = // jar:file:/C:/Users/jetdario/.m2/repository/com/vaadin/vaadin-client/7.6.1/vaadin-client-7.6.1.jar!/com/vaadin/client/debug/internal/theme/font.ttf new com.google.gwt.resources.client.impl.DataResourcePrototype( "iconFontTtf", com.google.gwt.safehtml.shared.UriUtils.fromTrustedString( GWT.getModuleBaseForStaticFiles() + "D03281BC3FDB49177B485D1DC10A13C4.cache.ttf")); }
private void iconFontWoffInitializer() { iconFontWoff = // jar:file:/C:/Users/jetdario/.m2/repository/com/vaadin/vaadin-client/7.6.1/vaadin-client-7.6.1.jar!/com/vaadin/client/debug/internal/theme/font.woff new com.google.gwt.resources.client.impl.DataResourcePrototype( "iconFontWoff", com.google.gwt.safehtml.shared.UriUtils.fromTrustedString( GWT.getModuleBaseForStaticFiles() + "51DCB1D3F3D956ACC80F89D3CF0AC5BE.cache.woff")); }
@Override public final String consoleClientResourcesUrl() { String url = getString(DynamicMessageKey.CONSOLE_CLIENT_RESOURCES_URL); boolean isAbsolute = UriUtils.extractScheme(url) != null; return isAbsolute ? url : "/" + BaseContextPathData.getRelativePath() + url; // $NON-NLS-1$ }
private final MovieAnimation doInitialize() { if (null != m_video) { setErrorHandler(this, m_video.getVideoElement()); String url = getURL(); if ((null == url) || ((url = url.trim()).isEmpty()) || (url.startsWith("#"))) { throw new NullPointerException("null or empty or invalid url"); } url = UriUtils.fromString(url).asString(); if ((null == url) || ((url = url.trim()).isEmpty()) || (url.startsWith("#"))) { throw new NullPointerException("null or empty or invalid url"); } m_video.setSrc(url); m_video.setLoop(isLoop()); m_video.setVisible(false); m_video.setPlaybackRate(getPlaybackRate()); m_video.setPreload(MediaElement.PRELOAD_AUTO); if (getAttributes().isDefined(Attribute.VOLUME)) { m_video.setVolume(getVolume()); } setSizes(); return new MovieAnimation(this, m_video); } else { return null; } }
private void iconFontSvgInitializer() { iconFontSvg = // jar:file:/C:/Users/jetdario/.m2/repository/com/vaadin/vaadin-client/7.6.1/vaadin-client-7.6.1.jar!/com/vaadin/client/debug/internal/theme/font.svg new com.google.gwt.resources.client.impl.DataResourcePrototype( "iconFontSvg", com.google.gwt.safehtml.shared.UriUtils.fromTrustedString( GWT.getModuleBaseForStaticFiles() + "C81F8CA7CA7012F31BDE883DF6C99E61.cache.svg")); }
private void iconFontEotInitializer() { iconFontEot = // jar:file:/C:/Users/jetdario/.m2/repository/com/vaadin/vaadin-client/7.6.1/vaadin-client-7.6.1.jar!/com/vaadin/client/debug/internal/theme/font.eot new com.google.gwt.resources.client.impl.DataResourcePrototype( "iconFontEot", com.google.gwt.safehtml.shared.UriUtils.fromTrustedString( GWT.getModuleBaseForStaticFiles() + "333A66D5307B1C8C9935C59A877F1993.cache.eot")); }
/** * @param fileName of user defined tool * @return {@link SafeUri} of Icon with fileName */ SafeUri getIconFile(String fileName) { if (!fileName.isEmpty()) { String imageURL = app.getImageManager().getExternalImageSrc(fileName); if (imageURL != null) { return UriUtils.fromString(imageURL); } } return ((ImageResource) GGWToolBar.getMyIconResourceBundle().mode_tool_32()).getSafeUri(); }
private void handleClickAddProCons(final boolean pro) { SafeUri uri = (pro) ? UriUtils.fromSafeConstant(AppConstants.BiggerIcons.ICO_PLUS) : UriUtils.fromSafeConstant(AppConstants.BiggerIcons.ICO_MINUS); InputDialog.show( uri, new InputDialog.OnInputDialogButtonClick() { @Override public void onOkClick(String value) { if (pro) onAddPro(value, true); else onAddCon(value, true); } @Override public void onCancelClick() {} }); }
private void headerBackgroundInitializer() { headerBackground = new com.google.gwt.resources.client.impl.ImageResourcePrototype( "headerBackground", com.google.gwt.safehtml.shared.UriUtils.fromTrustedString(externalImage), 0, 0, 1, 300, false, false); }
private void cellTableHeaderBackgroundInitializer() { cellTableHeaderBackground = new com.google.gwt.resources.client.impl.ImageResourcePrototype( "cellTableHeaderBackground", com.google.gwt.safehtml.shared.UriUtils.fromTrustedString( com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale().isRTL() ? externalImage_rtl0 : externalImage0), 0, 0, 82, 23, false, false); }
private void cellTableLoadingInitializer() { cellTableLoading = new com.google.gwt.resources.client.impl.ImageResourcePrototype( "cellTableLoading", com.google.gwt.safehtml.shared.UriUtils.fromTrustedString( com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale().isRTL() ? externalImage_rtl1 : externalImage1), 0, 0, 43, 11, true, false); }
private void showWaitPanelIfRequired(RequestContext context) { if (getServicePropertyBoolean(context.getMethodName(), "showWaitPanel", false)) { GwtUtils.log(getClass(), "showWaitPanelIfRequired", "showWaitPanel = true"); if (waitPanel == null) { waitPanel = new PopupPanel(); GwtUtils.setStyleAttribute(waitPanel, "border", "none"); GwtUtils.setStyleAttribute(waitPanel, "background", "transparent"); waitPanel.setGlassEnabled(false); waitPanel.setAnimationEnabled(true); Image waitingImg = new Image(UriUtils.fromTrustedString("/images/commons/transp-loading.gif")); waitPanel.setWidget(waitingImg); } GwtUtils.showWait(waitPanel); } }
/** * Creates button used to clear the list. * * @return button */ private TextButton createClearAllButton() { TextButton clearAllButton = new TextButton(AppPropertiesManager.CONSTANTS.myjobs_clear_button()); clearAllButton.addStyleName("eppic-default-font"); clearAllButton.addSelectHandler( new SelectHandler() { @Override public void onSelect(SelectEvent event) { CrkWebServiceProvider.getServiceController().deleteAllJobs(getCurrentJobsList()); } }); String iconSource = "resources/icons/clear_icon.png"; clearAllButton.setIcon( IconHelper.getImageResource(UriUtils.fromSafeConstant(iconSource), 12, 12)); return clearAllButton; }
public Object call(Method method, Object[] args) throws Exception { if (method.getName().equals("getURL")) { return url; } else if (method.getName().equals("getSafeUri")) { return UriUtils.fromTrustedString(url); } else if (method.getName().equals("getHeight")) { return 0; } else if (method.getName().equals("getLeft")) { return 0; } else if (method.getName().equals("getWidth")) { return 0; } else if (method.getName().equals("getTop")) { return 0; } else if (method.getName().equals("isAnimated")) { return false; } return null; }
@Override public void render(Context context, CandidateGeneListProxy value, SafeHtmlBuilder sb) { if (value == null) return; placeRequest.with("id", value.getId().toString()); SafeUri link = UriUtils.fromTrustedString("#" + placeManager.buildHistoryToken(placeRequest.build())); SafeHtml name = SafeHtmlUtils.fromString(value.getName()); SafeHtmlBuilder builder = new SafeHtmlBuilder(); builder .append(SafeHtmlUtils.fromSafeConstant("created on ")) .append( SafeHtmlUtils.fromString( DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.DATE_SHORT) .format(value.getCreated()))) .append(SafeHtmlUtils.fromSafeConstant(" by ")) .append( SafeHtmlUtils.fromString( value.getOwnerUser().getFirstname() + " " + value.getOwnerUser().getLastname())); sb.append(templates.cell(link, name, builder.toSafeHtml())); }
public static SafeUri safeUri(ResourceId id, PageId pageId) { return UriUtils.fromTrustedString("#" + pageId + "/" + id.asString()); }
public static SafeUri safeUri(ResourceId instanceId) { return UriUtils.fromTrustedString("#" + historyToken(instanceId)); }