01: package org.claros.intouch.webdisk.models;
02:
03: import java.io.File;
04:
05: import org.claros.intouch.webmail.controllers.IconController;
06:
07: public class ClarosWebDskFile extends ClarosWebDskObject {
08: private String icon;
09: private String mimeType;
10:
11: public ClarosWebDskFile(File tmp) {
12: super (tmp);
13: this .mimeType = IconController.findMimeByName(tmp.getName());
14: this .icon = IconController.findIconByMime(mimeType);
15: }
16:
17: public String getIcon() {
18: return icon;
19: }
20:
21: public void setIcon(String icon) {
22: this .icon = icon;
23: }
24:
25: public String getMimeType() {
26: return mimeType;
27: }
28:
29: public void setMimeType(String mimeType) {
30: this.mimeType = mimeType;
31: }
32:
33: }
|