Constructor
new TextAreaInstrumentCanvas(id, name)
Construct a text area.
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string | String containing html id of the textarea we are constructing for. |
name |
string | String containing the instrument name that this widget corresponds to. |
- Source:
Members
instrumentId
The html id attribute for the text area for this instrument
- Source:
instrumentName
The name of this instrument.
- Source:
Methods
configureNode()
This is a dummy method for graph diagram canvas class compatibility. This method does nothing.
- Source:
getName()
Get the name of this instrument.
- Source:
Returns:
The name of the instrument.
reconfigure(file)
Set up the state of the widget based on the input file.
Takes in a 2d array file[i][j] where i indexes across the # delimited sections specified
in toText() and j indexes across the individual lines per section.
Parameters:
| Name | Type | Description |
|---|---|---|
file |
object | The file as a double array of strings to load the graph from. |
- Source:
renderToText()
Get the text from the textarea element corresponding to this instrument on the page.
- Source:
Returns:
The text of the instrument.
toText()
Get the text from the textarea element corresponding to this instrument on the page in a format
which matches that of the graph diagrams toText() for saving the instrument to a file.
- Source:
Returns:
The textual representation of the instrument described above.