Java Doc for InteractionsDJDocument.java in  » IDE » DrJava » edu » rice » cs » drjava » model » repl » 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 » IDE » DrJava » edu.rice.cs.drjava.model.repl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


edu.rice.cs.drjava.model.AbstractDJDocument
   edu.rice.cs.drjava.model.repl.InteractionsDJDocument

InteractionsDJDocument
public class InteractionsDJDocument extends AbstractDJDocument implements ConsoleDocumentInterface(Code)
Represents a Swing-based InteractionsDocument. Extends AbstractDJDocument which contains code shared by the Swing interactions and definitions documents.



Constructor Summary
public  InteractionsDJDocument()
     Standard constructor.

Method Summary
protected  void_styleChanged()
    
public  voidaddColoring(int start, int end, String style)
     Adds the given coloring style to the styles list.
protected  voidaddUndoRedo(AbstractDocument.DefaultDocumentEvent chng, Runnable undoCommand, Runnable doCommand)
    
public  voidappendExceptionResult(String exceptionClass, String message, String stackTrace, String styleName)
     Inserts the given exception data into the document with the given style.
public  voidclearColoring()
     Called when the Interactions pane is reset.
protected  voidendCompoundEdit(int key)
    
protected  voidendLastCompoundEdit()
    
 List<Pair<Pair<Integer, Integer>, String>>getStylesList()
    
public  booleanhasPrompt()
    
public  booleaninCommentBlock()
    
protected  IndentermakeNewIndenter(int indentLevel)
     Returns a new indenter.
public  voidsetBoldFonts(int point, Graphics g)
     Attempts to set the font on the graphics context based upon the styles held in the styles list.
public  booleansetColoring(int point, Graphics g)
     Attempts to set the coloring on the graphics based upon the content of the styles list returns false if the point is not in the list.
public  voidsetHasPrompt(boolean val)
     Sets the _hasPrompt property.
protected  intstartCompoundEdit()
    


Constructor Detail
InteractionsDJDocument
public InteractionsDJDocument()(Code)
Standard constructor.




Method Detail
_styleChanged
protected void _styleChanged()(Code)



addColoring
public void addColoring(int start, int end, String style)(Code)
Adds the given coloring style to the styles list.



addUndoRedo
protected void addUndoRedo(AbstractDocument.DefaultDocumentEvent chng, Runnable undoCommand, Runnable doCommand)(Code)



appendExceptionResult
public void appendExceptionResult(String exceptionClass, String message, String stackTrace, String styleName)(Code)
Inserts the given exception data into the document with the given style.
Parameters:
  exceptionClass - Name of the exception that was thrown
Parameters:
  message - Message contained in the exception
Parameters:
  stackTrace - String representation of the stack trace
Parameters:
  styleName - name of the style for formatting the exception



clearColoring
public void clearColoring()(Code)
Called when the Interactions pane is reset.



endCompoundEdit
protected void endCompoundEdit(int key)(Code)



endLastCompoundEdit
protected void endLastCompoundEdit()(Code)



getStylesList
List<Pair<Pair<Integer, Integer>, String>> getStylesList()(Code)
Package protected accessor method used for test cases



hasPrompt
public boolean hasPrompt()(Code)



inCommentBlock
public boolean inCommentBlock()(Code)
Returns true iff the end of the current interaction is an open comment block true iff the end of the current interaction is an open comment block



makeNewIndenter
protected Indenter makeNewIndenter(int indentLevel)(Code)
Returns a new indenter. Eventually to be used to return an interactions indenter



setBoldFonts
public void setBoldFonts(int point, Graphics g)(Code)
Attempts to set the font on the graphics context based upon the styles held in the styles list.



setColoring
public boolean setColoring(int point, Graphics g)(Code)
Attempts to set the coloring on the graphics based upon the content of the styles list returns false if the point is not in the list.



setHasPrompt
public void setHasPrompt(boolean val)(Code)
Sets the _hasPrompt property.
Parameters:
  val - new boolean value for _hasPrompt.



startCompoundEdit
protected int startCompoundEdit()(Code)



Fields inherited from edu.rice.cs.drjava.model.AbstractDJDocument
final public static int DOCSTART(Code)(Java Doc)
final public static int ERROR_INDEX(Code)(Java Doc)
protected volatile boolean _cacheInUse(Code)(Java Doc)
protected volatile int _currentLocation(Code)(Java Doc)
protected volatile int _indent(Code)(Java Doc)
final protected static HashSet<String> _keywords(Code)(Java Doc)
final protected static HashSet<String> _normEndings(Code)(Java Doc)
final protected static HashSet<String> _primTypes(Code)(Java Doc)
final public BraceReduction _reduced(Code)(Java Doc)

Methods inherited from edu.rice.cs.drjava.model.AbstractDJDocument
protected Object _checkCache(String key)(Code)(Java Doc)
public boolean _indentLine(Indenter.IndentReason reason)(Code)(Java Doc)
protected static boolean _isReversteStartOfComment(String text, int pos)(Code)(Java Doc)
protected static boolean _isStartOfComment(String text, int pos)(Code)(Java Doc)
protected static HashSet<String> _makeKeywords()(Code)(Java Doc)
protected static HashSet<String> _makeNormEndings()(Code)(Java Doc)
protected static HashSet<String> _makePrimTypes()(Code)(Java Doc)
protected void _removeIndenter()(Code)(Java Doc)
protected void _storeInCache(String key, Object result)(Code)(Java Doc)
abstract protected void _styleChanged()(Code)(Java Doc)
abstract protected void addUndoRedo(AbstractDocument.DefaultDocumentEvent chng, Runnable undoCommand, Runnable doCommand)(Code)(Java Doc)
public int balanceBackward()(Code)(Java Doc)
public int balanceForward()(Code)(Java Doc)
public void clear()(Code)(Java Doc)
protected void clearCache()(Code)(Java Doc)
abstract protected void endCompoundEdit(int i)(Code)(Java Doc)
abstract protected void endLastCompoundEdit()(Code)(Java Doc)
public boolean findCharInStmtBeforePos(char findChar, int position)(Code)(Java Doc)
public int findCharOnLine(int pos, char findChar)(Code)(Java Doc)
public int findNextEnclosingBrace(int pos, char opening, char closing) throws BadLocationException(Code)(Java Doc)
public int findPrevCharPos(int pos, char[] whitespace) throws BadLocationException(Code)(Java Doc)
public int findPrevDelimiter(int pos, char[] delims) throws BadLocationException(Code)(Java Doc)
public int findPrevDelimiter(int pos, char[] delims, boolean skipParenPhrases) throws BadLocationException(Code)(Java Doc)
public int findPrevEnclosingBrace(int pos, char opening, char closing) throws BadLocationException(Code)(Java Doc)
public int findPrevNonWSCharPos(int pos) throws BadLocationException(Code)(Java Doc)
public byte[] getBytes()(Code)(Java Doc)
public int getCurrentLocation()(Code)(Java Doc)
public int getFirstNonWSCharPos(int pos) throws BadLocationException(Code)(Java Doc)
public int getFirstNonWSCharPos(int pos, boolean acceptComments) throws BadLocationException(Code)(Java Doc)
public int getFirstNonWSCharPos(int pos, char[] whitespace, boolean acceptComments) throws BadLocationException(Code)(Java Doc)
public Vector<HighlightStatus> getHighlightStatus(int start, int end)(Code)(Java Doc)
public int getIndent()(Code)(Java Doc)
public IndentInfo getIndentInformation()(Code)(Java Doc)
public String getIndentOfCurrStmt(int pos) throws BadLocationException(Code)(Java Doc)
public String getIndentOfCurrStmt(int pos, char[] delims) throws BadLocationException(Code)(Java Doc)
public String getIndentOfCurrStmt(int pos, char[] delims, char[] whitespace) throws BadLocationException(Code)(Java Doc)
public int getIntelligentBeginLinePos(int currPos) throws BadLocationException(Code)(Java Doc)
public int getLineEndPos(int pos)(Code)(Java Doc)
public int getLineFirstCharPos(int pos) throws BadLocationException(Code)(Java Doc)
public int getLineStartPos(int pos)(Code)(Java Doc)
public BraceReduction getReduced()(Code)(Java Doc)
public ReducedModelState getStateAtCurrent()(Code)(Java Doc)
public String getText()(Code)(Java Doc)
public int getWhiteSpace()(Code)(Java Doc)
public void indentLines(int selStart, int selEnd)(Code)(Java Doc)
public void indentLines(int selStart, int selEnd, Indenter.IndentReason reason, ProgressMonitor pm) throws OperationCanceledException(Code)(Java Doc)
public void insertString(int offset, String str, AttributeSet a) throws BadLocationException(Code)(Java Doc)
protected void insertUpdate(AbstractDocument.DefaultDocumentEvent chng, AttributeSet attr)(Code)(Java Doc)
abstract protected Indenter makeNewIndenter(int indentLevel)(Code)(Java Doc)
public void move(int dist)(Code)(Java Doc)
public boolean posInParenPhrase(int pos)(Code)(Java Doc)
public boolean posInParenPhrase()(Code)(Java Doc)
protected boolean posNotInBlock(int pos)(Code)(Java Doc)
public void remove(int offset, int len) throws BadLocationException(Code)(Java Doc)
protected void removeUpdate(AbstractDocument.DefaultDocumentEvent chng)(Code)(Java Doc)
public void resetReducedModelLocation()(Code)(Java Doc)
public void setCurrentLocation(int loc)(Code)(Java Doc)
public void setIndent(int indent)(Code)(Java Doc)
public void setTab(String tab, int pos)(Code)(Java Doc)
abstract protected int startCompoundEdit()(Code)(Java Doc)
public ReducedModelState stateAtRelLocation(int dist)(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.