Class CompiledScript

java.lang.Object
se.datadosen.jalbum.CompiledScript

@Deprecated public class CompiledScript extends Object
Deprecated.
This class is not thread safe. Use CompiledBase instead and either pass image specific variables as parameters to your methods or look-up the image specific variables using the get() method of CompiledBase, but don't store any such variables as class level variables.
Provides variables that are usually available as implicit objects in scripts Subclass this class to provide simple conversion of scripts to fast compiled scripts.
Since:
v5.2
  • Field Details

    • generator

      public String generator
      Deprecated.
    • generatorUrl

      public String generatorUrl
      Deprecated.
    • internalVersion

      public String internalVersion
      Deprecated.
    • styleFile

      public String styleFile
      Deprecated.
    • skin

      public String skin
      Deprecated.
    • style

      public String style
      Deprecated.
    • maxImageWidth

      public int maxImageWidth
      Deprecated.
    • maxImageHeight

      public int maxImageHeight
      Deprecated.
    • maxThumbWidth

      public int maxThumbWidth
      Deprecated.
    • maxThumbHeight

      public int maxThumbHeight
      Deprecated.
    • rows

      public int rows
      Deprecated.
    • cols

      public int cols
      Deprecated.
    • application

      public Map application
      Deprecated.
    • album

      public Map album
      Deprecated.
    • engine

      public AlbumBean engine
      Deprecated.
    • window

      public JAlbumFrame window
      Deprecated.
    • context

      public JAlbumContext context
      Deprecated.
    • licenseManager

      public LicenseManager licenseManager
      Deprecated.
    • programDirectory

      public File programDirectory
      Deprecated.
    • skinDirectory

      public File skinDirectory
      Deprecated.
    • resDirectory

      public File resDirectory
      Deprecated.
    • skinResDirectory

      public File skinResDirectory
      Deprecated.
    • rootImageDirectory

      public File rootImageDirectory
      Deprecated.
    • rootOutputDirectory

      public File rootOutputDirectory
      Deprecated.
    • fileVariables

      public Map fileVariables
      Deprecated.
    • currentDate

      public String currentDate
      Deprecated.
    • totalAlbumImages

      public int totalAlbumImages
      Deprecated.
    • textEncoding

      public String textEncoding
      Deprecated.
    • texts

      public SmartResourceBundle texts
      Deprecated.
    • files

      public File[] files
      Deprecated.
    • currentObjects

      public AlbumObject[] currentObjects
      Deprecated.
    • currentObject

      public AlbumObject currentObject
      Deprecated.
    • category

      public Category category
      Deprecated.
    • currentFolder

      public AlbumObject currentFolder
      Deprecated.
    • rootFolder

      public AlbumObject rootFolder
      Deprecated.
    • currentFile

      public File currentFile
      Deprecated.
    • resPath

      public String resPath
      Deprecated.
    • out

      public PrintWriter out
      Deprecated.
    • current

      public Map current
      Deprecated.
    • local

      public Map local
      Deprecated.
    • previous

      public Map previous
      Deprecated.
    • next

      public Map next
      Deprecated.
    • meta

      public Map meta
      Deprecated.
    • outputDirectory

      public File outputDirectory
      Deprecated.
    • imageDirectory

      public File imageDirectory
      Deprecated.
    • totalIndexes

      public int totalIndexes
      Deprecated.
    • indexNum

      public int indexNum
      Deprecated.
    • nextIndexPage

      public String nextIndexPage
      Deprecated.
    • previousIndexPage

      public String previousIndexPage
      Deprecated.
    • parentIndexPage

      public String parentIndexPage
      Deprecated.
    • firstIndexPage

      public String firstIndexPage
      Deprecated.
    • lastIndexPage

      public String lastIndexPage
      Deprecated.
    • rootPath

      public String rootPath
      Deprecated.
    • language

      public String language
      Deprecated.
    • imageNum

      public int imageNum
      Deprecated.
    • totalImages

      public int totalImages
      Deprecated.
    • nextPage

      public String nextPage
      Deprecated.
    • currentPage

      public String currentPage
      Deprecated.
    • previousPage

      public String previousPage
      Deprecated.
    • originalPath

      public String originalPath
      Deprecated.
    • thumbPath

      public String thumbPath
      Deprecated.
    • closeupPath

      public String closeupPath
      Deprecated.
    • imagePath

      public String imagePath
      Deprecated.
    • iconPath

      public String iconPath
      Deprecated.
    • originalWidth

      public int originalWidth
      Deprecated.
    • originalHeight

      public int originalHeight
      Deprecated.
    • imageWidth

      public int imageWidth
      Deprecated.
    • imageHeight

      public int imageHeight
      Deprecated.
    • thumbWidth

      public int thumbWidth
      Deprecated.
    • thumbHeight

      public int thumbHeight
      Deprecated.
    • fileName

      public String fileName
      Deprecated.
    • label

      public String label
      Deprecated.
  • Constructor Details

    • CompiledScript

      protected CompiledScript(AlbumBean engine)
      Deprecated.
      Make subclass call this constructor
  • Method Details

    • updateVars

      public void updateVars()
      Deprecated.
      Optional method to call in order to also update the variables that are specific to a certain context, for instance "out", "current", "meta" and "outputDirectory" For maximum performance, only call if needed.
      Throws:
      RuntimeException
    • get

      public final Object get(String variable)
      Deprecated.
      Get the value of a variable that is defined in scripting scope
      Parameters:
      variable -
      Returns: