added gcube item icon
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@115841 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
8283c85621
commit
e1104f7110
|
@ -2,6 +2,7 @@ package org.gcube.portlets.user.workspace.client.resources;
|
||||||
|
|
||||||
import com.google.gwt.resources.client.ClientBundle;
|
import com.google.gwt.resources.client.ClientBundle;
|
||||||
import com.google.gwt.resources.client.ImageResource;
|
import com.google.gwt.resources.client.ImageResource;
|
||||||
|
import com.google.gwt.resources.client.ClientBundle.Source;
|
||||||
|
|
||||||
public interface Icons extends ClientBundle {
|
public interface Icons extends ClientBundle {
|
||||||
|
|
||||||
|
@ -381,5 +382,8 @@ public interface Icons extends ClientBundle {
|
||||||
|
|
||||||
@Source("icons/edit16.png")
|
@Source("icons/edit16.png")
|
||||||
ImageResource edit();
|
ImageResource edit();
|
||||||
|
|
||||||
|
@Source("icons/gcubeItem.jpeg")
|
||||||
|
ImageResource gcubeItem();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -103,6 +103,11 @@ public class Resources {
|
||||||
return AbstractImagePrototype.create(ICONS.users());
|
return AbstractImagePrototype.create(ICONS.users());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static AbstractImagePrototype getIconGcubeItem(){
|
||||||
|
|
||||||
|
return AbstractImagePrototype.create(ICONS.gcubeItem());
|
||||||
|
}
|
||||||
|
|
||||||
public static AbstractImagePrototype getIconShareUser(){
|
public static AbstractImagePrototype getIconShareUser(){
|
||||||
|
|
||||||
return AbstractImagePrototype.create(ICONS.user());
|
return AbstractImagePrototype.create(ICONS.user());
|
||||||
|
@ -591,10 +596,6 @@ public class Resources {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static AbstractImagePrototype getIconByExtension(String fileExtension) {
|
public static AbstractImagePrototype getIconByExtension(String fileExtension) {
|
||||||
|
|
||||||
if (MPEG.equals(fileExtension) || SWF.equals(fileExtension) || FLV.equals(fileExtension) || AVI.equals(fileExtension)) {
|
if (MPEG.equals(fileExtension) || SWF.equals(fileExtension) || FLV.equals(fileExtension) || AVI.equals(fileExtension)) {
|
||||||
|
@ -630,9 +631,6 @@ public class Resources {
|
||||||
}else if (fileExtension.contains(EXCEL) || fileExtension.contains(XSLX)) {
|
}else if (fileExtension.contains(EXCEL) || fileExtension.contains(XSLX)) {
|
||||||
return Resources.getIconExcel();
|
return Resources.getIconExcel();
|
||||||
}
|
}
|
||||||
|
|
||||||
// default case
|
|
||||||
// IconHelper.createPath(GWT.getModuleBaseURL()+"images/icons/table.png");
|
|
||||||
return Resources.getIconTable();
|
return Resources.getIconTable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -641,10 +639,6 @@ public class Resources {
|
||||||
|
|
||||||
if(itemType!=null){
|
if(itemType!=null){
|
||||||
|
|
||||||
// if(itemType.equals(GXTFolderItemTypeEnum.AQUAMAPS_ITEM)){
|
|
||||||
// return Resources.getIconTable();
|
|
||||||
// }else
|
|
||||||
|
|
||||||
if(itemType.equals(GXTFolderItemTypeEnum.ANNOTATION)){
|
if(itemType.equals(GXTFolderItemTypeEnum.ANNOTATION)){
|
||||||
return Resources.getIconTxt();
|
return Resources.getIconTxt();
|
||||||
}else if(itemType.equals(GXTFolderItemTypeEnum.DOCUMENT)){
|
}else if(itemType.equals(GXTFolderItemTypeEnum.DOCUMENT)){
|
||||||
|
@ -663,6 +657,8 @@ public class Resources {
|
||||||
return Resources.getIconSvg();
|
return Resources.getIconSvg();
|
||||||
}else if(itemType.equals(GXTFolderItemTypeEnum.PDF_DOCUMENT)){
|
}else if(itemType.equals(GXTFolderItemTypeEnum.PDF_DOCUMENT)){
|
||||||
return Resources.getIconPdf();
|
return Resources.getIconPdf();
|
||||||
|
}else if(itemType.equals(GXTFolderItemTypeEnum.GCUBE_ITEM)){
|
||||||
|
return Resources.getIconGcubeItem();
|
||||||
// }else if(itemType.equals(GXTFolderItemTypeEnum.QUERY)){
|
// }else if(itemType.equals(GXTFolderItemTypeEnum.QUERY)){
|
||||||
// return Resources.getIconTable();
|
// return Resources.getIconTable();
|
||||||
}else if(itemType.equals(GXTFolderItemTypeEnum.TIME_SERIES)){
|
}else if(itemType.equals(GXTFolderItemTypeEnum.TIME_SERIES)){
|
||||||
|
@ -683,10 +679,6 @@ public class Resources {
|
||||||
return Resources.getIconResourceLink();
|
return Resources.getIconResourceLink();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// }else if(itemType.equals(GXTFolderItemTypeEnum.WORKFLOW_TEMPLATE)){
|
|
||||||
// return Resources.getIconTable();
|
|
||||||
// }
|
|
||||||
|
|
||||||
return Resources.getIconTable();
|
return Resources.getIconTable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -697,9 +689,6 @@ public class Resources {
|
||||||
|
|
||||||
int sl = type.indexOf("/");
|
int sl = type.indexOf("/");
|
||||||
String extension = type.substring(sl+1, type.length());
|
String extension = type.substring(sl+1, type.length());
|
||||||
|
|
||||||
|
|
||||||
// System.out.println("extensions - "+extension);
|
|
||||||
return Resources.getIconByExtension(extension);
|
return Resources.getIconByExtension(extension);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 905 B |
Loading…
Reference in New Issue