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


java.lang.Object
   edu.rice.cs.drjava.ui.AbstractConsoleController

All known Subclasses:   edu.rice.cs.drjava.ui.ConsoleController,  edu.rice.cs.drjava.ui.InteractionsController,
AbstractConsoleController
abstract public class AbstractConsoleController implements Serializable(Code)
Abstract class to handle hooking up a console document with its pane. TODO: move interactions specific functionality to InteractionsController
version:
   $Id: AbstractConsoleController.java 4255 2007-08-28 19:17:37Z mgricken $

Inner Class :class CaretUpdateListener implements DocumentListener

Field Summary
final protected  InteractionsDJDocument_adapter
     Adapter for the Swing document used by the model.
final protected  SimpleAttributeSet_defaultStyle
     Style to use for default text.
final protected  InteractionsPane_pane
     Pane from the view.
final protected  SimpleAttributeSet_systemErrStyle
     Style to use for System.err.
final protected  SimpleAttributeSet_systemOutStyle
     Style to use for System.out.
 AbstractActionclearCurrentAction
     Removes all text after the prompt.
 ActioncopyAction
     Default copy action.
 ActioncutAction
     Default cut action.
 AbstractActiongotoEndAction
     Goes to the end of the current input line.
 AbstractActiongotoPromptPosAction
     Moves the caret to the prompt.
 AbstractActionnewLineAction
     Inserts a new line at the caret position.
 AbstractActionselectToEndAction
     Selects to the end of the current input line.
 AbstractActionselectToPromptPosAction
     Selects to the current prompt.
volatile  ActionswitchToNextPaneAction
     Action to change focus to next pane.
volatile  ActionswitchToPrevPaneAction
     Action to change focus to previous pane.

Constructor Summary
protected  AbstractConsoleController(InteractionsDJDocument adapter, InteractionsPane pane)
     Initializes the document adapter and interactions pane.

Method Summary
protected  void_addDocumentStyles()
     Adds AttributeSets as named styles to the document adapter.
protected  boolean_busy()
     Determines if the associated console pane is currently computing.
protected  void_init()
     Initialization method.
abstract protected  void_setupModel()
     Sets up the model.
protected  void_setupView()
     Sets up the view.
protected  void_updateStyles(AttributeSet newSet)
     Updates all document styles with the attributes contained in newSet.
public  intgetCachedCaretPos()
     Gets the current caret position.
abstract public  ConsoleDocumentgetConsoleDoc()
     Gets the console document for this console.
public  InteractionsDJDocumentgetDocumentAdapter()
     Accessor method for the InteractionsDJDocument.
public  InteractionsPanegetPane()
     Accessor method for the InteractionsPane.
 voidmoveToEnd()
     Moves the pane's caret to the end of the document.
 voidmoveToPrompt()
     Moves the pane's caret to the document's prompt.
public  voidresetView()
     Clears and resets the view (other than features derived from the model.
public  voidsetCachedCaretPos(int pos)
     Must be called when new document is created if caret position != 0.
public  voidsetCachedPromptPos(int pos)
     Must be called when new document is created if prompt position != 0.
public  voidsetDefaultFont(Font f)
     Sets the font for the document, updating all existing text.
public  voidsetDefaultFont(Color c)
     Sets the color for the document, updating all existing text.
public  voidsetDefaultFont(Font f, Color c)
     Sets the font and color for the document, updating all existing text.
public  voidsetNextPaneAction(Action a)
    
public  voidsetPrevPaneAction(Action a)
    

Field Detail
_adapter
final protected InteractionsDJDocument _adapter(Code)
Adapter for the Swing document used by the model.



_defaultStyle
final protected SimpleAttributeSet _defaultStyle(Code)
Style to use for default text.



_pane
final protected InteractionsPane _pane(Code)
Pane from the view.



_systemErrStyle
final protected SimpleAttributeSet _systemErrStyle(Code)
Style to use for System.err.



_systemOutStyle
final protected SimpleAttributeSet _systemOutStyle(Code)
Style to use for System.out.



clearCurrentAction
AbstractAction clearCurrentAction(Code)
Removes all text after the prompt.



copyAction
Action copyAction(Code)
Default copy action.



cutAction
Action cutAction(Code)
Default cut action.



gotoEndAction
AbstractAction gotoEndAction(Code)
Goes to the end of the current input line.



gotoPromptPosAction
AbstractAction gotoPromptPosAction(Code)
Moves the caret to the prompt.



newLineAction
AbstractAction newLineAction(Code)
Inserts a new line at the caret position.



selectToEndAction
AbstractAction selectToEndAction(Code)
Selects to the end of the current input line.



selectToPromptPosAction
AbstractAction selectToPromptPosAction(Code)
Selects to the current prompt.



switchToNextPaneAction
volatile Action switchToNextPaneAction(Code)
Action to change focus to next pane.



switchToPrevPaneAction
volatile Action switchToPrevPaneAction(Code)
Action to change focus to previous pane. Package private for testing purposes.




Constructor Detail
AbstractConsoleController
protected AbstractConsoleController(InteractionsDJDocument adapter, InteractionsPane pane)(Code)
Initializes the document adapter and interactions pane. Subclasses *must* call _init() at the end of their constructors.




Method Detail
_addDocumentStyles
protected void _addDocumentStyles()(Code)
Adds AttributeSets as named styles to the document adapter.



_busy
protected boolean _busy()(Code)
Determines if the associated console pane is currently computing. true iff the console is busy



_init
protected void _init()(Code)
Initialization method. *Must* be called in constructor by all subclasses.



_setupModel
abstract protected void _setupModel()(Code)
Sets up the model.



_setupView
protected void _setupView()(Code)
Sets up the view.



_updateStyles
protected void _updateStyles(AttributeSet newSet)(Code)
Updates all document styles with the attributes contained in newSet.
Parameters:
  newSet - Style containing new attributes to use.



getCachedCaretPos
public int getCachedCaretPos()(Code)
Gets the current caret position.



getConsoleDoc
abstract public ConsoleDocument getConsoleDoc()(Code)
Gets the console document for this console.



getDocumentAdapter
public InteractionsDJDocument getDocumentAdapter()(Code)
Accessor method for the InteractionsDJDocument.



getPane
public InteractionsPane getPane()(Code)
Accessor method for the InteractionsPane.



moveToEnd
void moveToEnd()(Code)
Moves the pane's caret to the end of the document. Only affects reduced_model not the document model.



moveToPrompt
void moveToPrompt()(Code)
Moves the pane's caret to the document's prompt. Only affects reduced_model not the document model.



resetView
public void resetView()(Code)
Clears and resets the view (other than features derived from the model.



setCachedCaretPos
public void setCachedCaretPos(int pos)(Code)
Must be called when new document is created if caret position != 0.



setCachedPromptPos
public void setCachedPromptPos(int pos)(Code)
Must be called when new document is created if prompt position != 0.



setDefaultFont
public void setDefaultFont(Font f)(Code)
Sets the font for the document, updating all existing text. This behavior is only necessary in Mac OS X, since setFont() works fine on JTextPane on all other tested platforms. This glitch in the Mac JVM still exists as of 11-28-06 in beta Java 6.0 build 88.
Parameters:
  f - New font to use.



setDefaultFont
public void setDefaultFont(Color c)(Code)
Sets the color for the document, updating all existing text. This behavior is only necessary in Mac OS X, since changing the main font works on all other tested platforms.
Parameters:
  c - New color to use.



setDefaultFont
public void setDefaultFont(Font f, Color c)(Code)
Sets the font and color for the document, updating all existing text. This behavior is only necessary in Mac OS X, since setFont() and changing the main font works on all other tested platforms.
Parameters:
  f - New font to use.
Parameters:
  c - New color to use.



setNextPaneAction
public void setNextPaneAction(Action a)(Code)



setPrevPaneAction
public void setPrevPaneAction(Action a)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.