Rev 1242 | Rev 1249 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
936 | dev | 1 | package ak.photoalbum.webapp; |
2 | |||
3 | import java.io.File; |
||
4 | |||
5 | public class IndexEntry |
||
6 | { |
||
7 | private File file; |
||
8 | private String path; |
||
9 | private String title; |
||
1242 | dev | 10 | private String subtitle; |
11 | private String subtitleMime; |
||
12 | private String comment; |
||
13 | private String commentMime; |
||
936 | dev | 14 | private boolean isDir; |
15 | private int width; |
||
16 | private int height; |
||
17 | |||
18 | public IndexEntry() |
||
19 | { |
||
20 | } |
||
21 | |||
22 | public IndexEntry(File file, String path, String title, boolean isDir, |
||
23 | int width, int height) |
||
24 | { |
||
25 | this.file = file; |
||
26 | this.path = path; |
||
27 | this.title = title; |
||
28 | this.isDir = isDir; |
||
29 | this.width = width; |
||
30 | this.height = height; |
||
31 | } |
||
32 | |||
33 | public File getFile() |
||
34 | { |
||
35 | return file; |
||
36 | } |
||
37 | |||
38 | public void setFile(File file) |
||
39 | { |
||
40 | this.file = file; |
||
41 | } |
||
42 | |||
43 | public String getPath() |
||
44 | { |
||
45 | return path; |
||
46 | } |
||
47 | |||
48 | public void setPath(String path) |
||
49 | { |
||
50 | this.path = path; |
||
51 | } |
||
52 | |||
53 | public String getTitle() |
||
54 | { |
||
55 | return title; |
||
56 | } |
||
57 | |||
58 | public void setTitle(String title) |
||
59 | { |
||
60 | this.title = title; |
||
61 | } |
||
62 | |||
1242 | dev | 63 | public String getSubtitle() |
64 | { |
||
65 | return subtitle; |
||
66 | } |
||
67 | |||
68 | public void setSubtitle(String subtitle) |
||
69 | { |
||
70 | this.subtitle = subtitle; |
||
71 | } |
||
72 | |||
73 | public String getSubtitleMime() |
||
74 | { |
||
75 | return subtitleMime; |
||
76 | } |
||
77 | |||
78 | public void setSubtitleMime(String subtitleMime) |
||
79 | { |
||
80 | this.subtitleMime = subtitleMime; |
||
81 | } |
||
82 | |||
83 | public String getComment() |
||
84 | { |
||
85 | return comment; |
||
86 | } |
||
87 | |||
88 | public void setComment(String comment) |
||
89 | { |
||
90 | this.comment = comment; |
||
91 | } |
||
92 | |||
93 | public String getCommentMime() |
||
94 | { |
||
95 | return commentMime; |
||
96 | } |
||
97 | |||
98 | public void setCommentMime(String commentMime) |
||
99 | { |
||
100 | this.commentMime = commentMime; |
||
101 | } |
||
102 | |||
936 | dev | 103 | public boolean getIsDir() |
104 | { |
||
105 | return isDir; |
||
106 | } |
||
107 | |||
108 | public void setIsDir(boolean isDir) |
||
109 | { |
||
110 | this.isDir = isDir; |
||
111 | } |
||
112 | |||
113 | public int getWidth() |
||
114 | { |
||
115 | return width; |
||
116 | } |
||
117 | |||
118 | public void setWidth(int width) |
||
119 | { |
||
120 | this.width = width; |
||
121 | } |
||
122 | |||
123 | public int getHeight() |
||
124 | { |
||
125 | return height; |
||
126 | } |
||
127 | |||
128 | public void setHeight(int height) |
||
129 | { |
||
130 | this.height = height; |
||
131 | } |
||
132 | |||
133 | public String toString() |
||
134 | { |
||
1242 | dev | 135 | return super.toString() + ": " + file + " - " + path + " - " + title + "/" + subtitle |
136 | + " (" + comment + ") " + width + "x" + height; |
||
936 | dev | 137 | } |
138 | } |