|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgui.EditorArray
public class EditorArray
This class represents the editor within the editor panel. Each tab in the editor panel contains an EditorArray instance. EditorArray class cover all functionalities of a basic editor as well as advanced features such as highlighting.
Field Summary | |
---|---|
int |
arrayIndex
|
java.util.ArrayList |
bpList
|
int |
changeCount
|
int |
changeFlag
|
PMenuBar |
menuBar
|
PFrame |
pFrame
|
Scanner |
scanner
|
java.util.ArrayList |
tempList
|
int |
undoRedoFlag
|
Constructor Summary | |
---|---|
EditorArray(EditorPane ePane,
java.lang.String s,
PMenuBar pm,
PFrame p)
Constructor for the EditorArray class. |
Method Summary | |
---|---|
javax.swing.JTextPane |
getEditFieldEditorPane()
This method initializes and returns the text field of the EditorArray object. |
javax.swing.JScrollPane |
getEditScrollPane()
This method initializes and returns the scroll panel under the text field. |
java.lang.String |
getFileName()
This method returns the name of the file opened by the editor instance. |
java.lang.String |
getFilePath()
This method returns the relative file path |
static int |
getLineAtCaret(javax.swing.text.JTextComponent component)
Return the current line number at the Caret position. |
javax.swing.JMenuItem |
getSelectAllMenuItem()
This method initializes and returns menu item which selects all text content in the text field |
void |
setFileName(java.lang.String fileName)
This method changes the name of the file opened by the editor instance. |
void |
setFilePath(java.lang.String filePath)
This method changes the file path |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int changeFlag
public int arrayIndex
public int changeCount
public int undoRedoFlag
public Scanner scanner
public PMenuBar menuBar
public PFrame pFrame
public java.util.ArrayList bpList
public java.util.ArrayList tempList
Constructor Detail |
---|
public EditorArray(EditorPane ePane, java.lang.String s, PMenuBar pm, PFrame p)
ePane
- s
- pm
- Method Detail |
---|
public java.lang.String getFilePath()
public void setFilePath(java.lang.String filePath)
filePath
- public javax.swing.JTextPane getEditFieldEditorPane()
public javax.swing.JScrollPane getEditScrollPane()
public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName
- public javax.swing.JMenuItem getSelectAllMenuItem()
public static int getLineAtCaret(javax.swing.text.JTextComponent component)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |