Definition of a new CmsUiUtils method with standard space
authorStéphane Leroy <sleroy@argeo.org>
Thu, 8 Oct 2020 17:21:30 +0000 (18:21 +0100)
committerStéphane Leroy <sleroy@argeo.org>
Thu, 8 Oct 2020 17:21:30 +0000 (18:21 +0100)
org.argeo.cms.ui/src/org/argeo/cms/ui/util/CmsUiUtils.java

index 303fb7deadb81d78905acca58645d3b6ca0e9a6c..33377b6ca365f1db0c3e57c258d733071d7fec67 100644 (file)
@@ -136,6 +136,15 @@ public class CmsUiUtils implements CmsConstants {
                return layout;
        }
 
+       public static GridLayout standardSpaceGridLayout(GridLayout layout) {
+               layout.horizontalSpacing = 16;
+               layout.verticalSpacing = 16;
+               layout.marginWidth = 16;
+               layout.marginHeight = 16;
+               return layout;
+       }
+
+       
        public static GridData fillAll() {
                return new GridData(SWT.FILL, SWT.FILL, true, true);
        }