commit | 3d1b0653f39e7e930412cf4fc5c186a10cdcce63 | [log] [tgz] |
---|---|---|
author | Simon Hunt <simon@onlab.us> | Tue May 05 17:27:24 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed May 06 02:58:21 2015 +0000 |
tree | 45a61209277fa372d70548d4af7313a19dad07ef | |
parent | 5a5a73410115a8fc2f56b7266ca777a71ccdd241 [diff] [blame] |
GUI -- refactored all the table views (server side) to use the new TableModel method of data generation. Change-Id: Ib8a188ad432ff335db6cff1e49e08dbaf039436b
diff --git a/core/api/src/main/java/org/onosproject/ui/table/cell/DefaultCellFormatter.java b/core/api/src/main/java/org/onosproject/ui/table/cell/DefaultCellFormatter.java index c030236..5e4f5ba 100644 --- a/core/api/src/main/java/org/onosproject/ui/table/cell/DefaultCellFormatter.java +++ b/core/api/src/main/java/org/onosproject/ui/table/cell/DefaultCellFormatter.java
@@ -17,12 +17,20 @@ package org.onosproject.ui.table.cell; +import org.onosproject.ui.table.CellFormatter; + /** * A default cell formatter. Uses the object's toString() method. */ public class DefaultCellFormatter extends AbstractCellFormatter { + @Override public String nonNullFormat(Object value) { return value.toString(); } + + /** + * An instance of this class. + */ + public static final CellFormatter INSTANCE = new DefaultCellFormatter(); }