se.datadosen.jalbum
Class CompiledScript
java.lang.Object
se.datadosen.jalbum.CompiledScript
public class CompiledScript
- extends java.lang.Object
Provides variables that are usually available as implicit objects in BeanShell scripts
Subclass this class to provide simple conversion of scripts to fast compiled scripts.
- Since:
- v5.2
|
Method Summary |
java.lang.Object |
get(java.lang.String variable)
Get the value of a variable that is defined in BeanShell scope |
void |
updateVars()
Optional method to call in order to also update the variables that are specific to a
certain context, for instane "out", "current", "meta" and "outputDirectory" |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
generator
public java.lang.String generator
generatorUrl
public java.lang.String generatorUrl
internalVersion
public java.lang.String internalVersion
styleFile
public java.lang.String styleFile
skin
public java.lang.String skin
style
public java.lang.String style
maxImageWidth
public int maxImageWidth
maxImageHeight
public int maxImageHeight
maxThumbWidth
public int maxThumbWidth
maxThumbHeight
public int maxThumbHeight
rows
public int rows
cols
public int cols
application
public java.util.Map application
album
public java.util.Map album
engine
public AlbumBean engine
window
public JAlbumFrame window
programDirectory
public java.io.File programDirectory
skinDirectory
public java.io.File skinDirectory
resDirectory
public java.io.File resDirectory
skinResDirectory
public java.io.File skinResDirectory
rootImageDirectory
public java.io.File rootImageDirectory
rootOutputDirectory
public java.io.File rootOutputDirectory
fileVariables
public java.util.Map fileVariables
currentDate
public java.lang.String currentDate
totalAlbumImages
public int totalAlbumImages
textEncoding
public java.lang.String textEncoding
texts
public SmartResourceBundle texts
files
public java.io.File[] files
currentFile
public java.io.File currentFile
resPath
public java.lang.String resPath
out
public java.io.PrintWriter out
current
public java.util.Map current
local
public java.util.Map local
previous
public java.util.Map previous
next
public java.util.Map next
meta
public java.util.Map meta
outputDirectory
public java.io.File outputDirectory
imageDirectory
public java.io.File imageDirectory
totalIndexes
public int totalIndexes
indexNum
public int indexNum
nextIndexPage
public java.lang.String nextIndexPage
previousIndexPage
public java.lang.String previousIndexPage
parentIndexPage
public java.lang.String parentIndexPage
firstIndexPage
public java.lang.String firstIndexPage
lastIndexPage
public java.lang.String lastIndexPage
rootPath
public java.lang.String rootPath
language
public java.lang.String language
imageNum
public int imageNum
totalImages
public int totalImages
nextPage
public java.lang.String nextPage
currentPage
public java.lang.String currentPage
previousPage
public java.lang.String previousPage
originalPath
public java.lang.String originalPath
thumbPath
public java.lang.String thumbPath
closeupPath
public java.lang.String closeupPath
imagePath
public java.lang.String imagePath
iconPath
public java.lang.String iconPath
originalWidth
public int originalWidth
originalHeight
public int originalHeight
imageWidth
public int imageWidth
imageHeight
public int imageHeight
thumbWidth
public int thumbWidth
thumbHeight
public int thumbHeight
fileName
public java.lang.String fileName
label
public java.lang.String label
CompiledScript
protected CompiledScript(AlbumBean engine)
- Make subclass call this constructor
updateVars
public void updateVars()
- Optional method to call in order to also update the variables that are specific to a
certain context, for instane "out", "current", "meta" and "outputDirectory"
- Throws:
java.lang.RuntimeException - For maximum performance, only call if needed.
get
public java.lang.Object get(java.lang.String variable)
- Get the value of a variable that is defined in BeanShell scope
- Parameters:
variable -
- Returns: