removed call back when click on Add More VREs button
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/my-vres@132196 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
be319c85c3
commit
33c695c28c
|
@ -70,6 +70,7 @@ public class VresPanel extends Composite {
|
|||
}
|
||||
|
||||
private void showIconView() {
|
||||
boolean hasVREs = false;
|
||||
mainPanel.clear();
|
||||
mainPanel.setHorizontalAlignment(HasAlignment.ALIGN_LEFT);
|
||||
for (String cat : cachedVREs.keySet()) {
|
||||
|
@ -84,6 +85,8 @@ public class VresPanel extends Composite {
|
|||
flowPanel.setWidth("100%");
|
||||
flowPanel.setStyleName("flowPanel");
|
||||
for (VRE vre: cachedVREs.get(cat)) {
|
||||
if (vre.getName().compareTo("")!= 0)
|
||||
hasVREs = true;
|
||||
ClickableVRE vreButton = new ClickableVRE(vre);
|
||||
flowPanel.add(vreButton);
|
||||
}
|
||||
|
@ -92,7 +95,8 @@ public class VresPanel extends Composite {
|
|||
}
|
||||
}
|
||||
|
||||
if (! hasAtLeastOneVRE(cachedVREs)) {
|
||||
if (! hasVREs) {
|
||||
mainPanel.clear();
|
||||
mainPanel.add(new NoVresPanel());
|
||||
imagesPanel.clear();
|
||||
}
|
||||
|
@ -100,12 +104,7 @@ public class VresPanel extends Composite {
|
|||
}
|
||||
|
||||
|
||||
private boolean hasAtLeastOneVRE(LinkedHashMap<String, ArrayList<VRE>> cachedVREs) {
|
||||
for (String cat : cachedVREs.keySet())
|
||||
if (! cachedVREs.get(cat).isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue