Package adams.gui.core
Class AbstractSimpleScript
- java.lang.Object
-
- adams.core.base.BaseObject
-
- adams.core.base.AbstractBaseString
-
- adams.gui.core.AbstractSimpleScript
-
- All Implemented Interfaces:
CloneHandler<BaseObject>
,Serializable
,Comparable
- Direct Known Subclasses:
BooleanExpressionText
,LookUpUpdateText
,MathematicalExpressionText
,SpreadSheetFormulaText
,SpreadSheetQueryText
,SQLStatement
,StringExpressionText
public abstract class AbstractSimpleScript extends AbstractBaseString
Ancestor for scripts with syntax highlighting in the GOE.- Version:
- $Revision$
- 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, m_Properties, SUFFIX_DISPLAY, SUFFIX_VALUE
-
-
Constructor Summary
Constructors Constructor Description AbstractSimpleScript()
Initializes the string with length 0.AbstractSimpleScript(String s)
Initializes the object with the string to parse.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
allowsInlineEditing()
Returns whether inline editing in the GOE is allowed.protected abstract String
getScriptTipText()
Returns the tip text for the script.abstract AbstractTextEditorPanelWithSimpleSyntaxHighlighting
getTextEditorPanel()
Returns the configured text editor panel to use in the GOE.String
getTipText()
Returns a tool tip for the GUI editor (ignored if null is returned).String
stringValue()
Returns the backquoted String value.-
Methods inherited from class adams.core.base.AbstractBaseString
convert, getValue, initialize, isEmpty, isValid, length, setValue
-
Methods inherited from class adams.core.base.BaseObject
compareTo, equals, getClone, getInternal, getTemplates, getUnicode, hasFavoritesSupport, hashCode, isValidUnicode, newInstance, setUnicode, toObjectArray, toObjectArray, toString, toStringArray, toStringList
-
-
-
-
Constructor Detail
-
AbstractSimpleScript
public AbstractSimpleScript()
Initializes the string with length 0.
-
AbstractSimpleScript
public AbstractSimpleScript(String s)
Initializes the object with the string to parse.- Parameters:
s
- the string to parse
-
-
Method Detail
-
stringValue
public String stringValue()
Returns the backquoted String value.- Overrides:
stringValue
in classAbstractBaseString
- Returns:
- the backquoted String value
-
getScriptTipText
protected abstract String getScriptTipText()
Returns the tip text for the script.- Returns:
- the tool tip
-
getTipText
public String getTipText()
Returns a tool tip for the GUI editor (ignored if null is returned).- Specified by:
getTipText
in classAbstractBaseString
- Returns:
- the tool tip
-
getTextEditorPanel
public abstract AbstractTextEditorPanelWithSimpleSyntaxHighlighting getTextEditorPanel()
Returns the configured text editor panel to use in the GOE.- Returns:
- the text editor panel
-
allowsInlineEditing
public abstract boolean allowsInlineEditing()
Returns whether inline editing in the GOE is allowed.- Returns:
- true if inline editing is allowed
-
-