public class TextModel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<java.lang.String> |
currentText
Copy of the text as lines
|
protected java.io.File |
textFile
The file to filter
|
Constructor and Description |
---|
TextModel()
Create a new instance of TextModel
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<java.lang.String> |
getCurrentText()
Get the value of the currently formatted text.
|
java.lang.String |
getCurrentTextAsString()
Get the value of the currently formatted text as a single string.
|
java.io.File |
getTextFile()
Get the path to the text file to filter.
|
void |
setCurrentText(java.util.ArrayList<java.lang.String> theCurrentText)
Set the value of the currently formatted text.
|
void |
setTextFile(java.io.File theTextFile)
Set the file path to the text file to filter.
|
protected java.io.File textFile
protected java.util.ArrayList<java.lang.String> currentText
public void setTextFile(java.io.File theTextFile)
theTextFile
- the text file path.public java.io.File getTextFile()
public void setCurrentText(java.util.ArrayList<java.lang.String> theCurrentText)
theCurrentText
- the currently formatted text.public java.util.ArrayList<java.lang.String> getCurrentText()
public java.lang.String getCurrentTextAsString()