001 package market.resource; 002 003 import resource.util.ResourceManager; 004 005 public class ResourceModuleIcon implements ResourceManager.ResourceModul { 006 007 008 009 /** 010 * Returns the resource's file extension: "gif". 011 * 012 * @return the file extension 013 */ 014 public String getExtension() { 015 return "gif"; 016 } 017 018 /** 019 * Returns the path relative to the current resource path. 020 * 021 * @return the path. 022 */ 023 public String getPath() { 024 return "gif"; //market/resource/'gif'/icon.gif 025 } 026 027 /** 028 * Returns the type name of the module. This is the name by which the resources are requested. 029 * 030 * @return the type name 031 */ 032 public String getTypeName() { 033 return "icon"; 034 } 035 }