Subversion Repositories general

Rev

Rev 1249 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1249 dev 1
package ak.photoalbum.logic;
936 dev 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;
1267 dev 17
  private int     page;
936 dev 18
 
19
  public IndexEntry()
20
  {
21
  }
22
 
23
  public IndexEntry(File file, String path, String title, boolean isDir,
24
    int width, int height)
25
  {
26
    this.file   = file;
27
    this.path   = path;
28
    this.title  = title;
29
    this.isDir  = isDir;
30
    this.width  = width;
31
    this.height = height;
32
  }
33
 
34
  public File getFile()
35
  {
36
    return file;
37
  }
38
 
39
  public void setFile(File file)
40
  {
41
    this.file = file;
42
  }
43
 
44
  public String getPath()
45
  {
46
    return path;
47
  }
48
 
49
  public void setPath(String path)
50
  {
51
    this.path = path;
52
  }
53
 
54
  public String getTitle()
55
  {
56
    return title;
57
  }
58
 
59
  public void setTitle(String title)
60
  {
61
    this.title = title;
62
  }
63
 
1242 dev 64
  public String getSubtitle()
65
  {
66
    return subtitle;
67
  }
68
 
69
  public void setSubtitle(String subtitle)
70
  {
71
    this.subtitle = subtitle;
72
  }
73
 
74
  public String getSubtitleMime()
75
  {
76
    return subtitleMime;
77
  }
78
 
79
  public void setSubtitleMime(String subtitleMime)
80
  {
81
    this.subtitleMime = subtitleMime;
82
  }
83
 
84
  public String getComment()
85
  {
86
    return comment;
87
  }
88
 
89
  public void setComment(String comment)
90
  {
91
    this.comment = comment;
92
  }
93
 
94
  public String getCommentMime()
95
  {
96
    return commentMime;
97
  }
98
 
99
  public void setCommentMime(String commentMime)
100
  {
101
    this.commentMime = commentMime;
102
  }
103
 
936 dev 104
  public boolean getIsDir()
105
  {
106
    return isDir;
107
  }
108
 
109
  public void setIsDir(boolean isDir)
110
  {
111
    this.isDir = isDir;
112
  }
113
 
114
  public int getWidth()
115
  {
116
    return width;
117
  }
118
 
119
  public void setWidth(int width)
120
  {
121
    this.width = width;
122
  }
123
 
124
  public int getHeight()
125
  {
126
    return height;
127
  }
128
 
129
  public void setHeight(int height)
130
  {
131
    this.height = height;
132
  }
133
 
1267 dev 134
  public int getPage()
135
  {
136
    return page;
137
  }
138
 
139
  public void setPage(int page)
140
  {
141
    this.page = page;
142
  }
143
 
936 dev 144
  public String toString()
145
  {
1242 dev 146
    return super.toString() + ": " + file + " - " + path + " - " + title + "/" + subtitle
1267 dev 147
      + " (" + comment + ") " + width + "x" + height + ", page " + page;
936 dev 148
  }
149
}