]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.cms.ux/src/org/argeo/cms/ux/widgets/Column.java
Improve UX
[lgpl/argeo-commons.git] / org.argeo.cms.ux / src / org / argeo / cms / ux / widgets / Column.java
index 5890fc4f8bb92368d4424c35067893ce7046957a..71cd263f89b302f7717a268df44f1788e9c1be28 100644 (file)
@@ -1,9 +1,18 @@
 package org.argeo.cms.ux.widgets;
 
-public interface Column<T> {
-       String getText(T model);
+import org.argeo.api.cms.ux.CmsIcon;
+
+/** A column in a data representation. */
+@FunctionalInterface
+public interface Column<TYPE> {
+       String getText(TYPE model);
 
        default int getWidth() {
                return 200;
        }
+
+       default CmsIcon getIcon(TYPE model) {
+               return null;
+       }
+
 }