X-Git-Url: https://code.grnet.gr/git/pithos/blobdiff_plain/0fc071d989550cf46e575a92147f4f58707d10ea..4cef6f041d0cc36231421c462eddfeedfddfc276:/src/gr/ebs/gss/client/AbstractPropertiesDialog.java diff --git a/src/gr/ebs/gss/client/AbstractPropertiesDialog.java b/src/gr/ebs/gss/client/AbstractPropertiesDialog.java index 05eabaa..b940e66 100644 --- a/src/gr/ebs/gss/client/AbstractPropertiesDialog.java +++ b/src/gr/ebs/gss/client/AbstractPropertiesDialog.java @@ -1,5 +1,5 @@ /* - * Copyright 2007, 2008, 2009 Electronic Business Systems Ltd. + * Copyright 2007, 2008, 2009, 2010 Electronic Business Systems Ltd. * * This file is part of GSS. * @@ -21,7 +21,6 @@ package gr.ebs.gss.client; import gr.ebs.gss.client.rest.GetCommand; import gr.ebs.gss.client.rest.resource.TagsResource; -import java.util.Iterator; import java.util.List; import com.google.gwt.core.client.GWT; @@ -34,6 +33,7 @@ import com.google.gwt.user.client.Event.NativePreviewEvent; import com.google.gwt.user.client.ui.Anchor; import com.google.gwt.user.client.ui.DialogBox; import com.google.gwt.user.client.ui.FlowPanel; +import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.TabPanel; import com.google.gwt.user.client.ui.TextBox; @@ -86,10 +86,14 @@ public abstract class AbstractPropertiesDialog extends DialogBox { allTagsContent.clear(); TagsResource tagr = getResult(); List userTags = tagr.getTags(); - Iterator t = userTags.iterator(); - while (t.hasNext()) { - final Anchor tag = new Anchor ((String) t.next() +" "); + Anchor tag = null; + for(String usrTag : userTags){ + tag = new Anchor(usrTag.toString(), false); + tag.addStyleName("gss-tag"); allTagsContent.add(tag); + Label separator = new Label(", "); + separator.addStyleName("gss-tag"); + allTagsContent.add(separator); tag.addClickHandler( new ClickHandler() { @Override