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 int
compareTo(ScriptItem o)
java.lang.String
getDescription()
java.io.File
getFile()
java.lang.String
getFileName()
java.util.ResourceBundle
getResourceBundle()
java.lang.String
getScriptName()
java.lang.String
getText()
java.lang.String
getToolTip()
void
setText(java.lang.String text)
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
compareTo
public int compareTo(ScriptItem o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ScriptItem>
-
-