X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms.ux%2Fsrc%2Forg%2Fargeo%2Fcms%2Fux%2FCmsUxUtils.java;h=84e471aafbe2103403a24ed7535c941469f0ff36;hb=5724ab347ddfba8f2b21cdcc2fa0b8e1e2b4e527;hp=d6fd221a456a4d1ee41dfd3443d7e786192f148e;hpb=1079048d9b6dc6003169327ea77eb64029283ecb;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms.ux/src/org/argeo/cms/ux/CmsUxUtils.java b/org.argeo.cms.ux/src/org/argeo/cms/ux/CmsUxUtils.java index d6fd221a4..84e471aaf 100644 --- a/org.argeo.cms.ux/src/org/argeo/cms/ux/CmsUxUtils.java +++ b/org.argeo.cms.ux/src/org/argeo/cms/ux/CmsUxUtils.java @@ -3,8 +3,9 @@ package org.argeo.cms.ux; import org.argeo.api.acr.Content; import org.argeo.api.acr.ContentRepository; import org.argeo.api.acr.ContentSession; +import org.argeo.api.cms.ux.Cms2DSize; import org.argeo.api.cms.ux.CmsView; -import org.argeo.util.CurrentSubject; +import org.argeo.cms.util.CurrentSubject; public class CmsUxUtils { public static ContentSession getContentSession(ContentRepository contentRepository, CmsView cmsView) { @@ -19,4 +20,17 @@ public class CmsUxUtils { private CmsUxUtils() { } + + public static StringBuilder imgBuilder(String src, String width, String height) { + return new StringBuilder(64).append("").toString(); + } + + public static String img(String src, Cms2DSize size) { + return img(src, Integer.toString(size.width()), Integer.toString(size.height())); + } }