Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
607:3acc631efdf0 | 608:ee40f86dd009 |
---|---|
541 ? name | 541 ? name |
542 : c.identifier(); | 542 : c.identifier(); |
543 } | 543 } |
544 }); | 544 }); |
545 | 545 |
546 name.setCellFormatter(new CellFormatter() { | |
547 public String format(Object value, ListGridRecord record, int row, int col) { | |
548 String n = (String) value; | |
549 int len = n.length(); | |
550 | |
551 if (len < 26) { | |
552 return n; | |
553 } | |
554 | |
555 int sec = len - 13; | |
556 return n.substring(0, 12) + "..." + n.substring(sec, len-1); | |
557 } | |
558 }); | |
559 | |
560 name.setWidth(COLUMN_TITLE_WIDTH); | 546 name.setWidth(COLUMN_TITLE_WIDTH); |
561 name.setAlign(Alignment.LEFT); | 547 name.setAlign(Alignment.LEFT); |
562 | 548 |
563 return name; | 549 return name; |
564 } | 550 } |