| |
|
| 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 | |
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.
|
historyForwardSearchAction | AbstractAction historyForwardSearchAction(Code) | | Forward searches in 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
|
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.
|
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 |
_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 |
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) | | |
|
|
|