Package org.omegat.gui.scripting
Class ScriptItem
- java.lang.Object
-
- org.omegat.gui.scripting.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 Summary
Constructors Constructor Description ScriptItem(java.io.File scriptFile)ScriptItem(java.lang.String scriptSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ScriptItem o)java.lang.StringgetDescription()java.io.FilegetFile()java.lang.StringgetFileName()java.util.ResourceBundlegetResourceBundle()java.lang.StringgetScriptName()java.lang.StringgetText()java.lang.StringgetToolTip()voidsetText(java.lang.String text)java.lang.StringtoString()
-
-
-
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.FileNotFoundExceptionjava.io.IOException
-
setText
public void setText(java.lang.String text) throws java.io.UnsupportedEncodingException, java.io.IOException- Throws:
java.io.UnsupportedEncodingExceptionjava.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(ScriptItem o)
- Specified by:
compareToin interfacejava.lang.Comparable<ScriptItem>
-
-