Java Doc for InteractionsController.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
      edu.rice.cs.drjava.ui.InteractionsController

InteractionsController
public class InteractionsController extends AbstractConsoleController (Code)
This class installs listeners and actions between an InteractionsDocument (the model) and an InteractionsPane (the view). We may want to refactor this class into a different package.

(The PopupConsole was introduced in version 1.29 of this file and subsequently removed.)
version:
   $Id: InteractionsController.java 4255 2007-08-28 19:17:37Z mgricken $


Inner Class :public interface ConsoleStateListener extends EventListener

Field Summary
final public static  StringINPUT_BOX_STYLE
    
final public static  StringINPUT_BOX_SYMBOL
     The symbol used in the document for the input box.
protected volatile  InputListener_inputListener
     Listens for input requests from System.in, displaying an input box as needed.
 ActiondefaultDownAction
    
 ActiondefaultUpAction
    
 AbstractActionevalAction
     Evaluates the interaction on the current line.
 AbstractActionhistoryForwardSearchAction
     Forward searches in the history.
 AbstractActionhistoryNextAction
     Recalls the next command from the history.
 AbstractActionhistoryPrevAction
     Recalls the previous command from the history.
 AbstractActionhistoryReverseSearchAction
     Reverse searches in the history.
 AbstractActionmoveDownAction
     Added feature for down.
 AbstractActionmoveLeftAction
     Moves the caret left or wraps around.
 AbstractActionmoveRightAction
     Moves the caret right or wraps around.
 AbstractActionmoveUpAction
     Added feature for up.
 AbstractActionnextWordAction
     Skips forward one word.
 AbstractActionprevWordAction
     Skips back one word.

Constructor Summary
public  InteractionsController(InteractionsModel model, InteractionsDJDocument adapter)
     Glue together the given model and a new view.
public  InteractionsController(InteractionsModel model, InteractionsDJDocument adapter, InteractionsPane pane)
     Glue together the given model and view.

Method Summary
protected  void_addDocumentStyles()
     Adds AttributeSets as named styles to the document adapter.
protected  void_setupModel()
     Adds listeners to the model.
protected  void_setupView()
     Adds actions to the view.
protected  void_updateStyles(AttributeSet newSet)
     Updates all document styles with the attributes contained in newSet.
public  voidaddConsoleStateListener(ConsoleStateListener listener)
    
public  ConsoleDocumentgetConsoleDoc()
     Allows the abstract superclass to use the document.
public  InteractionsDocumentgetDocument()
     Accessor method for the InteractionsDocument.
public  InputListenergetInputListener()
     Gets the input listener for console input requests.
public  InteractionsModelgetInteractionsModel()
     Accessor method for the InteractionsModel.
public  voidinsertConsoleText(String input)
     Inserts text into the console.
public  voidinterruptConsoleInput()
     Forces console input to complete without the user hitting .
public  voidremoveConsoleStateListener(ConsoleStateListener listener)
    

Field Detail
INPUT_BOX_STYLE
final public static String INPUT_BOX_STYLE(Code)
Style for System.in box



INPUT_BOX_SYMBOL
final public static String INPUT_BOX_SYMBOL(Code)
The symbol used in the document for the input box.



_inputListener
protected volatile InputListener _inputListener(Code)
Listens for input requests from System.in, displaying an input box as needed.



defaultDownAction
Action defaultDownAction(Code)



defaultUpAction
Action defaultUpAction(Code)



evalAction
AbstractAction evalAction(Code)
Evaluates the interaction on the current line.



historyForwardSearchAction
AbstractAction historyForwardSearchAction(Code)
Forward searches in the history.



historyNextAction
AbstractAction historyNextAction(Code)
Recalls the next command from the history.



historyPrevAction
AbstractAction historyPrevAction(Code)
Recalls the previous command from the history.



historyReverseSearchAction
AbstractAction historyReverseSearchAction(Code)
Reverse searches in the history.



moveDownAction
AbstractAction moveDownAction(Code)
Added feature for down. If the cursor is on the last line of the current interaction, it goes into the history. Otherwise, stays within the current interaction



moveLeftAction
AbstractAction moveLeftAction(Code)
Moves the caret left or wraps around.



moveRightAction
AbstractAction moveRightAction(Code)
Moves the caret right or wraps around.



moveUpAction
AbstractAction moveUpAction(Code)
Added feature for up. If the cursor is on the first line of the current interaction, it goes into the history. Otherwise, stays within the current interaction



nextWordAction
AbstractAction nextWordAction(Code)
Skips forward one word. Doesn't move past the prompt.



prevWordAction
AbstractAction prevWordAction(Code)
Skips back one word. Doesn't move past the prompt.




Constructor Detail
InteractionsController
public InteractionsController(InteractionsModel model, InteractionsDJDocument adapter)(Code)
Glue together the given model and a new view.
Parameters:
  model - An InteractionsModel
Parameters:
  adapter - InteractionsDJDocument being used by the model's doc



InteractionsController
public InteractionsController(InteractionsModel model, InteractionsDJDocument adapter, InteractionsPane pane)(Code)
Glue together the given model and view.
Parameters:
  model - An InteractionsModel
Parameters:
  adapter - InteractionsDJDocument being used by the model's doc
Parameters:
  pane - An InteractionsPane




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



_setupModel
protected void _setupModel()(Code)
Adds listeners to the model.



_setupView
protected void _setupView()(Code)
Adds actions to the view.



_updateStyles
protected void _updateStyles(AttributeSet newSet)(Code)
Updates all document styles with the attributes contained in newSet. This behavior is only used in Mac OS X, JDK 1.4.1, since setFont() works fine on JTextPane on all other tested platforms.
Parameters:
  newSet - Style containing new attributes to use.



addConsoleStateListener
public void addConsoleStateListener(ConsoleStateListener listener)(Code)



getConsoleDoc
public ConsoleDocument getConsoleDoc()(Code)
Allows the abstract superclass to use the document. the InteractionsDocument



getDocument
public InteractionsDocument getDocument()(Code)
Accessor method for the InteractionsDocument.



getInputListener
public InputListener getInputListener()(Code)
Gets the input listener for console input requests. ONLY used in unit tests. the input listener for console input requests.



getInteractionsModel
public InteractionsModel getInteractionsModel()(Code)
Accessor method for the InteractionsModel. the interactions model



insertConsoleText
public void insertConsoleText(String input)(Code)
Inserts text into the console. Can only be called from the event thread. ONLY used in unit tests.
Parameters:
  input - The text to insert into the console input box
throws:
  UnsupportedOperationException - If the the interactions pane is not receiving console input



interruptConsoleInput
public void interruptConsoleInput()(Code)
Forces console input to complete without the user hitting . Called by MainFrame when reset is called so that this lock is released. This method is thread safe.
throws:
  UnsupportedOperationException - If the interactions pane is not receiving console input



removeConsoleStateListener
public void removeConsoleStateListener(ConsoleStateListener listener)(Code)



Fields inherited from edu.rice.cs.drjava.ui.AbstractConsoleController
final protected InteractionsDJDocument _adapter(Code)(Java Doc)
final protected SimpleAttributeSet _defaultStyle(Code)(Java Doc)
final protected InteractionsPane _pane(Code)(Java Doc)
final protected SimpleAttributeSet _systemErrStyle(Code)(Java Doc)
final protected SimpleAttributeSet _systemOutStyle(Code)(Java Doc)
AbstractAction clearCurrentAction(Code)(Java Doc)
Action copyAction(Code)(Java Doc)
Action cutAction(Code)(Java Doc)
AbstractAction gotoEndAction(Code)(Java Doc)
AbstractAction gotoPromptPosAction(Code)(Java Doc)
AbstractAction newLineAction(Code)(Java Doc)
AbstractAction selectToEndAction(Code)(Java Doc)
AbstractAction selectToPromptPosAction(Code)(Java Doc)
volatile Action switchToNextPaneAction(Code)(Java Doc)
volatile Action switchToPrevPaneAction(Code)(Java Doc)

Methods inherited from edu.rice.cs.drjava.ui.AbstractConsoleController
protected void _addDocumentStyles()(Code)(Java Doc)
protected boolean _busy()(Code)(Java Doc)
protected void _init()(Code)(Java Doc)
abstract protected void _setupModel()(Code)(Java Doc)
protected void _setupView()(Code)(Java Doc)
protected void _updateStyles(AttributeSet newSet)(Code)(Java Doc)
public int getCachedCaretPos()(Code)(Java Doc)
abstract public ConsoleDocument getConsoleDoc()(Code)(Java Doc)
public InteractionsDJDocument getDocumentAdapter()(Code)(Java Doc)
public InteractionsPane getPane()(Code)(Java Doc)
void moveToEnd()(Code)(Java Doc)
void moveToPrompt()(Code)(Java Doc)
public void resetView()(Code)(Java Doc)
public void setCachedCaretPos(int pos)(Code)(Java Doc)
public void setCachedPromptPos(int pos)(Code)(Java Doc)
public void setDefaultFont(Font f)(Code)(Java Doc)
public void setDefaultFont(Color c)(Code)(Java Doc)
public void setDefaultFont(Font f, Color c)(Code)(Java Doc)
public void setNextPaneAction(Action a)(Code)(Java Doc)
public void setPrevPaneAction(Action a)(Code)(Java Doc)

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.