| |
|
| net.xoetrope.builder.editor.syntaxhighlight.JEditTextArea net.xoetrope.builder.editor.XSourceEditor
XSourceEditor | public class XSourceEditor extends JEditTextArea implements MenuListener(Code) | | A wrapper for the syntax highlighter, including some additional methods for
access source code and location of methods
Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
$Revision: 1.15 $
License: see license.txt
|
JAVA_FILE | final public static int JAVA_FILE(Code) | | |
XML_FILE | final public static int XML_FILE(Code) | | |
fileType | protected int fileType(Code) | | |
XSourceEditor | public XSourceEditor(XEditorProject project, TextAreaDefaults defaults, int type)(Code) | | Construct a new source code editor
Parameters: project - the project that owns the resource being edited Parameters: defaults - the defaults for the editor Parameters: fileType - the type of file being edited as defined by this class's public constants |
buildPopupMenu | protected JPopupMenu buildPopupMenu()(Code) | | Build the popup menu
the new popup menu |
locateMethod | public boolean locateMethod(String methodName, boolean addNewMethod)(Code) | | Locates the method specified by the parameter methodName. if the
addNewMethod is true the method specified by methodName is created. The
cursor is position at the start of the method.
Parameters: methodName - The name of the method we are looking for. Parameters: addNewMethod - If true create the method if not found. true if a new method was added |
openFile | public void openFile(String screenName)(Code) | | Open the file specified by the parameter screenName. Set the JEditTextArea
to the content of the file. Create a template file if not found.
Parameters: screenName - The name of the screen to be opened. |
setScreen | public void setScreen(String name, boolean create)(Code) | | First set the current source in the Project. Get the screen
specified by the parameter 'name'. If there is no source defined create
a template file if the create parameter is true. Set the text of the
JEditTextArea and set it to visible.
Parameters: name - The name of the screen we are trying to load Parameters: create - If true create a template file for the source if not found. |
setText | public void setText(String txt, String scrName)(Code) | | Updates the editor's text
Parameters: txt - the new text/content Parameters: scrName - the name of the screen to which the code corresponds |
setXml | public void setXml(String xml)(Code) | | First set the current source in the Project. Get the screen
specified by the parameter 'name'. If there is no source defined create
a template file if the create parameter is true. Set the text of the
JEditTextArea and set it to visible.
Parameters: name - The name of the screen we are trying to load Parameters: create - If true create a template file for the source if not found. |
updateSource | public void updateSource(String newScreen)(Code) | | Update the source for the specified screen
Parameters: newScreen - the new screens name or null for the existing screen |
Methods inherited from net.xoetrope.builder.editor.syntaxhighlight.JEditTextArea | public int _offsetToX(int line, int offset)(Code)(Java Doc) final public void addCaretListener(CaretListener listener)(Code)(Java Doc) final public void blinkCaret()(Code)(Java Doc) public void copy()(Code)(Java Doc) public void cut()(Code)(Java Doc) protected void documentChanged(DocumentEvent evt)(Code)(Java Doc) protected void fireCaretEvent()(Code)(Java Doc) final public int getBracketLine()(Code)(Java Doc) final public int getBracketPosition()(Code)(Java Doc) final public int getCaretLine()(Code)(Java Doc) final public int getCaretPosition()(Code)(Java Doc) final public SyntaxDocument getDocument()(Code)(Java Doc) final public int getDocumentLength()(Code)(Java Doc) final public int getElectricScroll()(Code)(Java Doc) final public int getFirstLine()(Code)(Java Doc) final public Gutter getGutter()(Code)(Java Doc) final public int getHorizontalOffset()(Code)(Java Doc) final public InputHandler getInputHandler()(Code)(Java Doc) final public int getLineCount()(Code)(Java Doc) public int getLineEndOffset(int line)(Code)(Java Doc) public int getLineLength(int line)(Code)(Java Doc) final public int getLineOfOffset(int offset)(Code)(Java Doc) public int getLineStartOffset(int line)(Code)(Java Doc) final public String getLineText(int lineIndex)(Code)(Java Doc) final public void getLineText(int lineIndex, Segment segment)(Code)(Java Doc) final public int getMagicCaretPosition()(Code)(Java Doc) final public int getMarkLine()(Code)(Java Doc) final public int getMarkPosition()(Code)(Java Doc) final public TextAreaPainter getPainter()(Code)(Java Doc) final public JPopupMenu getRightClickPopup()(Code)(Java Doc) final public String getSelectedText()(Code)(Java Doc) final public int getSelectionEnd()(Code)(Java Doc) public int getSelectionEnd(int line)(Code)(Java Doc) final public int getSelectionEndLine()(Code)(Java Doc) final public int getSelectionStart()(Code)(Java Doc) public int getSelectionStart(int line)(Code)(Java Doc) final public int getSelectionStartLine()(Code)(Java Doc) public String getText()(Code)(Java Doc) final public String getText(int start, int len)(Code)(Java Doc) final public void getText(int start, int len, Segment segment)(Code)(Java Doc) final public TokenMarker getTokenMarker()(Code)(Java Doc) final public int getVisibleLines()(Code)(Java Doc) final public boolean isCaretBlinkEnabled()(Code)(Java Doc) final public boolean isCaretVisible()(Code)(Java Doc) final public boolean isEditable()(Code)(Java Doc) final public boolean isManagingFocus()(Code)(Java Doc) final public boolean isOverwriteEnabled()(Code)(Java Doc) final public boolean isSelectionRectangular()(Code)(Java Doc) public int lineToY(int line)(Code)(Java Doc) final public int offsetToX(int line, int offset)(Code)(Java Doc) public void overwriteSetSelectedText(String str)(Code)(Java Doc) public void paste()(Code)(Java Doc) public void processKeyEvent(KeyEvent evt)(Code)(Java Doc) public void processMetaKey(KeyEvent evt)(Code)(Java Doc) final public void recalculateVisibleLines()(Code)(Java Doc) final public void removeCaretListener(CaretListener listener)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) public boolean scrollTo(int line, int offset)(Code)(Java Doc) public boolean scrollToCaret()(Code)(Java Doc) public void select(int start, int end)(Code)(Java Doc) final public void selectAll()(Code)(Java Doc) final public void selectNone()(Code)(Java Doc) public void setCaretBlinkEnabled(boolean caretBlinks)(Code)(Java Doc) final public void setCaretPosition(int caret)(Code)(Java Doc) public void setCaretVisible(boolean caretVisible)(Code)(Java Doc) public void setDocument(SyntaxDocument document)(Code)(Java Doc) final public void setEditable(boolean editable)(Code)(Java Doc) final public void setElectricScroll(int electricScroll)(Code)(Java Doc) public void setFirstLine(int firstLine)(Code)(Java Doc) public void setHorizontalOffset(int horizontalOffset)(Code)(Java Doc) public void setInputHandler(InputHandler inputHandler)(Code)(Java Doc) final public void setMagicCaretPosition(int magicCaret)(Code)(Java Doc) public boolean setOrigin(int firstLine, int horizontalOffset)(Code)(Java Doc) final public void setOverwriteEnabled(boolean overwrite)(Code)(Java Doc) final public void setRightClickPopup(JPopupMenu popup)(Code)(Java Doc) public void setSelectedText(String selectedText)(Code)(Java Doc) final public void setSelectionEnd(int selectionEnd)(Code)(Java Doc) final public void setSelectionRectangular(boolean rectSelect)(Code)(Java Doc) final public void setSelectionStart(int selectionStart)(Code)(Java Doc) public void setText(String text)(Code)(Java Doc) final public void setTokenMarker(TokenMarker tokenMarker)(Code)(Java Doc) protected void updateBracketHighlight(int newCaretPosition)(Code)(Java Doc) public void updateScrollBars()(Code)(Java Doc) public int xToOffset(int line, int x)(Code)(Java Doc) public int xyToOffset(int x, int y)(Code)(Java Doc) public int yToLine(int y)(Code)(Java Doc)
|
|
|
|