Introduce UX scheduler
[lgpl/argeo-commons.git] / org.argeo.cms.ux / src / org / argeo / cms / ux / CmsUxUtils.java
index 84e471aafbe2103403a24ed7535c941469f0ff36..f9ced18df866c5780cf28b36ef4191d3e2269f44 100644 (file)
@@ -7,6 +7,7 @@ import org.argeo.api.cms.ux.Cms2DSize;
 import org.argeo.api.cms.ux.CmsView;
 import org.argeo.cms.util.CurrentSubject;
 
+/** Utilities around UX. */
 public class CmsUxUtils {
        public static ContentSession getContentSession(ContentRepository contentRepository, CmsView cmsView) {
                return CurrentSubject.callAs(cmsView.getCmsSession().getSubject(), () -> contentRepository.get());
@@ -16,11 +17,6 @@ public class CmsUxUtils {
                return content.getName().getLocalPart();
        }
 
-       /** singleton */
-       private CmsUxUtils() {
-
-       }
-
        public static StringBuilder imgBuilder(String src, String width, String height) {
                return new StringBuilder(64).append("<img width='").append(width).append("' height='").append(height)
                                .append("' src='").append(src).append("'");
@@ -33,4 +29,10 @@ public class CmsUxUtils {
        public static String img(String src, Cms2DSize size) {
                return img(src, Integer.toString(size.width()), Integer.toString(size.height()));
        }
+
+       /** singleton */
+       private CmsUxUtils() {
+
+       }
+
 }