+ Refactor Users Page
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / util / CmsUtils.java
index c1b319fbe99f348e68e3813a102053917ebc3720..5d31e2c51f0d68639fe64234a69027249e82f5e2 100644 (file)
@@ -23,6 +23,7 @@ import org.eclipse.swt.layout.RowData;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
 import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Table;
 import org.eclipse.swt.widgets.Widget;
 
 /** Static utilities for the CMS framework. */
@@ -72,6 +73,10 @@ public class CmsUtils implements CmsConstants {
                widget.setData(CmsConstants.MARKUP, true);
        }
 
+       public static void setItemHeight(Table table, int height) {
+               table.setData(CmsConstants.ITEM_HEIGHT, height);
+       }
+
        /** @return the path or null if not instrumented */
        public static String getDataPath(Widget widget) {
                // JCR item