Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java @ 608:ee40f86dd009
Removed the formatter for project names in the project list.
flys-client/trunk@2215 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 23 Jun 2011 11:28:42 +0000 |
parents | 3acc631efdf0 |
children | 471ca61b83b5 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java Thu Jun 23 10:07:52 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java Thu Jun 23 11:28:42 2011 +0000 @@ -543,20 +543,6 @@ } }); - name.setCellFormatter(new CellFormatter() { - public String format(Object value, ListGridRecord record, int row, int col) { - String n = (String) value; - int len = n.length(); - - if (len < 26) { - return n; - } - - int sec = len - 13; - return n.substring(0, 12) + "..." + n.substring(sec, len-1); - } - }); - name.setWidth(COLUMN_TITLE_WIDTH); name.setAlign(Alignment.LEFT);