Class TextDisplayHelper
- java.lang.Object
-
- ptolemy.actor.lib.jjs.HelperBase
-
- ptolemy.actor.lib.jjs.modules.textDisplay.TextDisplayHelper
-
public class TextDisplayHelper extends HelperBase
Helper for the textDisplay JavaScript module. This causes a window to open that is used to display the text. The window can be resized and repositioned and the size and position will be remembered.- Since:
- Ptolemy II 11.0
- Version:
- $Id$
- Author:
- Edward A. Lee, based on DisplayJavaSE.
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Yellow (eal)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ptolemy.actor.lib.jjs.HelperBase
HelperBase.DATA_TYPE
-
-
Field Summary
Fields Modifier and Type Field Description javax.swing.JTextArea
textArea
The text area in which the data will be displayed.-
Fields inherited from class ptolemy.actor.lib.jjs.HelperBase
_actor, _currentObj
-
-
Constructor Summary
Constructors Constructor Description TextDisplayHelper(java.lang.Object actor, jdk.nashorn.api.scripting.ScriptObjectMirror currentObj)
Create a text display with no title.TextDisplayHelper(java.lang.Object actor, jdk.nashorn.api.scripting.ScriptObjectMirror currentObj, java.lang.String title)
Create a text display with the specified title.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendText(java.lang.String text)
Append to any text already displayed starting on a new line.void
displayText(java.lang.String text)
Display text.-
Methods inherited from class ptolemy.actor.lib.jjs.HelperBase
_appendNumericToBuffer, _appendToBuffer, _error, _error, _error, _error, _extractFromBuffer, _issueResponse, _removeDuplicates, _sizeOfType, _toJavaBytes, _toJSArray, getHelping
-
-
-
-
Constructor Detail
-
TextDisplayHelper
public TextDisplayHelper(java.lang.Object actor, jdk.nashorn.api.scripting.ScriptObjectMirror currentObj)
Create a text display with no title.- Parameters:
actor
- The JavaScript actor associated with this helper.currentObj
- The JavaScript object that this is helping (a TextDisplay).
-
TextDisplayHelper
public TextDisplayHelper(java.lang.Object actor, jdk.nashorn.api.scripting.ScriptObjectMirror currentObj, java.lang.String title)
Create a text display with the specified title.- Parameters:
actor
- The JavaScript actor associated with this helper.currentObj
- The JavaScript object that this is helping (a TextDisplay).title
- A title to associate with the display.
-
-