adams.core.scripting
Class JythonScript

java.lang.Object
  extended by adams.core.base.BaseObject
      extended by adams.core.base.AbstractBaseString
          extended by adams.gui.core.AbstractScript
              extended by adams.core.scripting.JythonScript
All Implemented Interfaces:
adams.core.CloneHandler<BaseObject>, Serializable, Comparable

public class JythonScript
extends adams.gui.core.AbstractScript

Wrapper for a Jython scripts to be editable in the GOE.

Version:
$Revision: 5016 $
Author:
fracpete (fracpete at waikato dot ac dot nz)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class adams.core.base.BaseObject
m_Internal
 
Constructor Summary
JythonScript()
          Initializes the string with length 0.
JythonScript(String s)
          Initializes the object with the string to parse.
 
Method Summary
 boolean allowsInlineEditing()
          Returns whether inline editing in the GOE is allowed.
protected  String getScriptTipText()
          Returns the tip text for the script.
 adams.gui.core.AbstractTextEditorPanelWithSyntaxHighlighting getTextEditorPanel()
          Returns the configured text editor panel to use in the GOE.
 
Methods inherited from class adams.gui.core.AbstractScript
getTipText, stringValue
 
Methods inherited from class adams.core.base.AbstractBaseString
convert, getValue, isEmpty, isValid, setValue
 
Methods inherited from class adams.core.base.BaseObject
compareTo, equals, getClone, getInternal, hashCode, newInstance, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JythonScript

public JythonScript()
Initializes the string with length 0.


JythonScript

public JythonScript(String s)
Initializes the object with the string to parse.

Parameters:
s - the string to parse
Method Detail

getScriptTipText

protected String getScriptTipText()
Returns the tip text for the script.

Specified by:
getScriptTipText in class adams.gui.core.AbstractScript
Returns:
the tool tip

getTextEditorPanel

public adams.gui.core.AbstractTextEditorPanelWithSyntaxHighlighting getTextEditorPanel()
Returns the configured text editor panel to use in the GOE.

Specified by:
getTextEditorPanel in class adams.gui.core.AbstractScript
Returns:
the text editor panel

allowsInlineEditing

public boolean allowsInlineEditing()
Returns whether inline editing in the GOE is allowed.

Specified by:
allowsInlineEditing in class adams.gui.core.AbstractScript
Returns:
true if inline editing is allowed


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.