Class ScriptItem

  • All Implemented Interfaces:
    java.lang.Comparable<ScriptItem>

    public class ScriptItem
    extends java.lang.Object
    implements java.lang.Comparable<ScriptItem>
    A script file in the script list is represented as ScriptListFile to allow for localization, description and reordering.
    • Constructor Detail

      • ScriptItem

        public ScriptItem​(java.lang.String scriptSource)
      • ScriptItem

        public ScriptItem​(java.io.File scriptFile)
    • Method Detail

      • getResourceBundle

        public java.util.ResourceBundle getResourceBundle()
      • getScriptName

        public java.lang.String getScriptName()
      • getFileName

        public java.lang.String getFileName()
      • getFile

        public java.io.File getFile()
      • getDescription

        public java.lang.String getDescription()
      • getToolTip

        public java.lang.String getToolTip()
      • getText

        public java.lang.String getText()
                                 throws java.io.FileNotFoundException,
                                        java.io.IOException
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
      • setText

        public void setText​(java.lang.String text)
                     throws java.io.UnsupportedEncodingException,
                            java.io.IOException
        Throws:
        java.io.UnsupportedEncodingException
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(ScriptItem o)
        Specified by:
        compareTo in interface java.lang.Comparable<ScriptItem>