|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
No comment provided by developer, please add a comment to improve documentation.
Method Summary | |
boolean |
addLine(TagLine tag,
java.lang.String text)
Insert a line of text before the TagLine. |
void |
closeDoc(boolean bail)
Closes this document. |
boolean |
deleteLine(TagLine tag)
Delete a line. |
javax.swing.text.Document |
getDocument()
Copies the content of this doc into a swing-Document. |
java.lang.String |
getFilename()
Returns the filename (no path) for this document. |
java.lang.String |
getLine(TagLine tag)
Get the text for a line. |
int |
getLineCount()
Get the line count for a document. |
java.lang.String |
getPathname()
Returns the full path to this document. |
boolean |
isDirty()
Fetch the dirty flag. |
int |
lineFromTag(TagLine tag)
Get the current line number for a TagLine. |
void |
saveAsDoc(java.lang.String pathname)
Writes out this document. |
void |
saveDoc()
Writes out this document. |
void |
setDirty(boolean d)
This sets the dirty flag. |
void |
setFilename(java.lang.String fileName)
Sets the filename for this document. |
boolean |
setLine(TagLine tag,
java.lang.String text)
Set the text for a line. |
boolean |
showLine(TagLine tag)
Bring forward any view window and scroll to the desired line. |
TagLine |
tagLine(int lineNo)
Set a TagLine, used to track lines even when lines have been inserted or deleted elsewhere in the document. |
TagLine |
tagLine(int lineNo,
java.awt.Color color)
Set a TagLine (including a tag color), used to track lines even when lines have been inserted or deleted elsewhere in the document. |
Method Detail |
public void closeDoc(boolean bail)
bail
- Exit immediately, discarding changes.public void saveDoc()
public void saveAsDoc(java.lang.String pathname)
pathname
- New document name (full path).public java.lang.String getPathname()
public java.lang.String getFilename()
public void setFilename(java.lang.String fileName)
fileName
- Document name .public boolean isDirty()
public void setDirty(boolean d)
d
- The new dirty valuepublic int getLineCount()
public TagLine tagLine(int lineNo)
lineNo
- No description provided
public TagLine tagLine(int lineNo, java.awt.Color color)
color
- The Color to display (pass null to clear).lineNo
- No description provided
public int lineFromTag(TagLine tag)
tag
- No description provided
public boolean showLine(TagLine tag)
tag
- The line to display.
public java.lang.String getLine(TagLine tag)
tag
- The line to get.
public boolean setLine(TagLine tag, java.lang.String text)
tag
- The line to set.text
- The text to set.
public boolean addLine(TagLine tag, java.lang.String text)
tag
- The line to set.text
- The text to set.
public boolean deleteLine(TagLine tag)
tag
- The line to delete.
public javax.swing.text.Document getDocument()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |