Subversion Repositories general

Rev

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

package ak.photoalbum.logic;

import java.io.File;

public class IndexEntry
{
  private File    file;
  private String  path;
  private String  title;
  private String  subtitle;
  private String  subtitleMime;
  private String  comment;
  private String  commentMime;
  private boolean isDir;
  private int     width;
  private int     height;
  private int     page;

  public IndexEntry()
  {
  }

  public IndexEntry(File file, String path, String title, boolean isDir,
    int width, int height)
  {
    this.file   = file;
    this.path   = path;
    this.title  = title;
    this.isDir  = isDir;
    this.width  = width;
    this.height = height;
  }

  public File getFile()
  {
    return file;
  }

  public void setFile(File file)
  {
    this.file = file;
  }

  public String getPath()
  {
    return path;
  }

  public void setPath(String path)
  {
    this.path = path;
  }

  public String getTitle()
  {
    return title;
  }

  public void setTitle(String title)
  {
    this.title = title;
  }

  public String getSubtitle()
  {
    return subtitle;
  }

  public void setSubtitle(String subtitle)
  {
    this.subtitle = subtitle;
  }

  public String getSubtitleMime()
  {
    return subtitleMime;
  }

  public void setSubtitleMime(String subtitleMime)
  {
    this.subtitleMime = subtitleMime;
  }

  public String getComment()
  {
    return comment;
  }

  public void setComment(String comment)
  {
    this.comment = comment;
  }

  public String getCommentMime()
  {
    return commentMime;
  }

  public void setCommentMime(String commentMime)
  {
    this.commentMime = commentMime;
  }

  public boolean getIsDir()
  {
    return isDir;
  }

  public void setIsDir(boolean isDir)
  {
    this.isDir = isDir;
  }

  public int getWidth()
  {
    return width;
  }

  public void setWidth(int width)
  {
    this.width = width;
  }

  public int getHeight()
  {
    return height;
  }

  public void setHeight(int height)
  {
    this.height = height;
  }

  public int getPage()
  {
    return page;
  }

  public void setPage(int page)
  {
    this.page = page;
  }

  public String toString()
  {
    return super.toString() + ": " + file + " - " + path + " - " + title + "/" + subtitle
      + " (" + comment + ") " + width + "x" + height + ", page " + page;
  }
}