Override toString() for better display in a combo box.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 22 Mar 2012 18:35:53 +0000 (19:35 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 22 Mar 2012 18:35:53 +0000 (19:35 +0100)
src/de/todesbaum/util/freenet/fcp2/ClientPutDir.java

index 96cdd3b..386fe1d 100644 (file)
@@ -70,6 +70,18 @@ public class ClientPutDir<C extends ClientPutDir<?>> extends ClientPut {
                        return name;
                }
 
+               //
+               // OBJECT METHODS
+               //
+
+               /**
+                * {@inheritDoc}
+                */
+               @Override
+               public String toString() {
+                       return name.substring(0, 1).toUpperCase() + name.substring(1);
+               }
+
        }
 
        /** The default file of the directory. */