projects
/
meviz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug where 0 byte pictures were treated incorrectly.
[meviz.git]
/
src
/
main
/
java
/
eu
/
svjatoslav
/
meviz
/
htmlindexer
/
Layout.java
diff --git
a/src/main/java/eu/svjatoslav/meviz/htmlindexer/Layout.java
b/src/main/java/eu/svjatoslav/meviz/htmlindexer/Layout.java
index
2dac2ff
..
8df469e
100755
(executable)
--- a/
src/main/java/eu/svjatoslav/meviz/htmlindexer/Layout.java
+++ b/
src/main/java/eu/svjatoslav/meviz/htmlindexer/Layout.java
@@
-1,7
+1,7
@@
/*
* Meviz - Various tools collection to work with multimedia.
* Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
/*
* Meviz - Various tools collection to work with multimedia.
* Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
* as published by the Free Software Foundation.
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public License
* as published by the Free Software Foundation.
@@
-10,13
+10,15
@@
package eu.svjatoslav.meviz.htmlindexer;
import java.io.UnsupportedEncodingException;
package eu.svjatoslav.meviz.htmlindexer;
import java.io.UnsupportedEncodingException;
+import java.util.List;
import eu.svjatoslav.meviz.htmlindexer.metadata.fileTypes.AbstractFile;
import eu.svjatoslav.meviz.htmlindexer.metadata.fileTypes.AbstractFile;
+import eu.svjatoslav.meviz.htmlindexer.metadata.fileTypes.Picture;
/**
* In order to have possibility of several different layouts per directory.
* Universal interface is defined.
/**
* In order to have possibility of several different layouts per directory.
* Universal interface is defined.
- *
+ *
* Layout implementation is responsible for actual HTML generation.
*/
* Layout implementation is responsible for actual HTML generation.
*/
@@
-35,11
+37,11
@@
public interface Layout {
/**
* Enlist image file.
*/
/**
* Enlist image file.
*/
- public void enlistImage(
AbstractFil
e picture);
+ public void enlistImage(
Pictur
e picture);
/**
* Enlist video in OGV format.
/**
* Enlist video in OGV format.
- *
+ *
* @throws UnsupportedEncodingException
*/
public void enlistOgv(AbstractFile file)
* @throws UnsupportedEncodingException
*/
public void enlistOgv(AbstractFile file)
@@
-56,11
+58,12
@@
public interface Layout {
* After necessary files have been enlisted for particular directory, use
* this method to retrieve generated HTML result.
*/
* After necessary files have been enlisted for particular directory, use
* this method to retrieve generated HTML result.
*/
- public String getHtml();
+ public String getHtml(final boolean showTitle,
+ final boolean doHtmlHeaderAndFooter);
/**
* Initialize layout for particular directory.
*/
/**
* Initialize layout for particular directory.
*/
- public void init(String galleryTitle,
String[]
path,
- final AbstractIndexer indexer,
final String pathPrefix
);
+ public void init(String galleryTitle,
List<String>
path,
+ final AbstractIndexer indexer,
IndexingContext context
);
}
}