Java Doc for XSourceEditor.java in  » XML-UI » XUI » net » xoetrope » builder » editor » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML UI » XUI » net.xoetrope.builder.editor 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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

Inner Class :class CodeAction extends AbstractAction

Field Summary
final public static  intJAVA_FILE
    
final public static  intXML_FILE
    
protected  AbstractActioncodeTemplateAction
    
protected  XEditorProjectcurrentProject
    
protected  XPageResourcecurrentScreen
    
protected  TextAreaDefaultsdefs
    
protected  intfileType
    
protected  JPopupMenupopupMenu
    

Constructor Summary
public  XSourceEditor(XEditorProject project, TextAreaDefaults defaults, int type)
    

Method Summary
protected  JPopupMenubuildPopupMenu()
    
public  booleanlocateMethod(String methodName, boolean addNewMethod)
     Locates the method specified by the parameter methodName.
public  voidmenuCanceled(MenuEvent e)
    
public  voidmenuDeselected(MenuEvent e)
    
public  voidmenuSelected(MenuEvent e)
    
public  voidopenFile(String screenName)
     Open the file specified by the parameter screenName.
public  voidprocessMetaKey(KeyEvent e)
    
public  voidsetScreen(String name, boolean create)
     First set the current source in the Project.
public  voidsetText(String txt, String scrName)
    
public  voidsetXml(String xml)
     First set the current source in the Project.
public  voidupdateSource(String newScreen)
    

Field Detail
JAVA_FILE
final public static int JAVA_FILE(Code)



XML_FILE
final public static int XML_FILE(Code)



codeTemplateAction
protected AbstractAction codeTemplateAction(Code)



currentProject
protected XEditorProject currentProject(Code)



currentScreen
protected XPageResource currentScreen(Code)



defs
protected TextAreaDefaults defs(Code)



fileType
protected int fileType(Code)



popupMenu
protected JPopupMenu popupMenu(Code)




Constructor Detail
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




Method Detail
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



menuCanceled
public void menuCanceled(MenuEvent e)(Code)



menuDeselected
public void menuDeselected(MenuEvent e)(Code)



menuSelected
public void menuSelected(MenuEvent e)(Code)



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.



processMetaKey
public void processMetaKey(KeyEvent e)(Code)



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



Fields inherited from net.xoetrope.builder.editor.syntaxhighlight.JEditTextArea
protected static String BOTTOM(Code)(Java Doc)
protected static String CENTER(Code)(Java Doc)
protected static String LEFT(Code)(Java Doc)
public static String LEFT_OF_SCROLLBAR(Code)(Java Doc)
protected static String RIGHT(Code)(Java Doc)
protected boolean biasLeft(Code)(Java Doc)
protected boolean blink(Code)(Java Doc)
protected int bracketLine(Code)(Java Doc)
protected int bracketPosition(Code)(Java Doc)
protected boolean caretBlinks(Code)(Java Doc)
protected MutableCaretEvent caretEvent(Code)(Java Doc)
protected static Timer caretTimer(Code)(Java Doc)
protected boolean caretVisible(Code)(Java Doc)
protected SyntaxDocument document(Code)(Java Doc)
protected DocumentHandler documentHandler(Code)(Java Doc)
protected boolean editable(Code)(Java Doc)
protected int electricScroll(Code)(Java Doc)
protected int firstLine(Code)(Java Doc)
protected static JEditTextArea focusedComponent(Code)(Java Doc)
protected JScrollBar horizontal(Code)(Java Doc)
protected int horizontalOffset(Code)(Java Doc)
protected InputHandler inputHandler(Code)(Java Doc)
protected Segment lineSegment(Code)(Java Doc)
protected EventListenerList listenerList(Code)(Java Doc)
protected int magicCaret(Code)(Java Doc)
protected boolean overwrite(Code)(Java Doc)
protected TextAreaPainter painter(Code)(Java Doc)
protected JPopupMenu popup(Code)(Java Doc)
protected boolean rectSelect(Code)(Java Doc)
protected boolean scrollBarsInitialized(Code)(Java Doc)
protected int selectionEnd(Code)(Java Doc)
protected int selectionEndLine(Code)(Java Doc)
protected int selectionStart(Code)(Java Doc)
protected int selectionStartLine(Code)(Java Doc)
protected JScrollBar vertical(Code)(Java Doc)
protected int visibleLines(Code)(Java Doc)

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)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.