|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.ui.AbstractConsoleController
public abstract class AbstractConsoleController
Abstract class that hooks a Swing console/interactions document with its Swing pane. TODO: move interactions specific functionality to InteractionsController by creating ConsoleDJDocument class
| Field Summary | |
|---|---|
protected javax.swing.text.SimpleAttributeSet |
_defaultStyle
Style to use for default text. |
protected InteractionsDJDocument |
_interactionsDJDocument
Adapter for the Swing document used by the model. |
protected InteractionsPane |
_pane
Pane from the view. |
protected javax.swing.text.SimpleAttributeSet |
_systemErrStyle
Style to use for System.err. |
protected javax.swing.text.SimpleAttributeSet |
_systemOutStyle
Style to use for System.out. |
(package private) javax.swing.AbstractAction |
clearCurrentAction
Removes all text after the prompt. |
(package private) javax.swing.Action |
copyAction
Default copy action. |
(package private) javax.swing.Action |
cutAction
Default cut action. |
(package private) javax.swing.AbstractAction |
gotoEndAction
Goes to the end of the current input line. |
(package private) javax.swing.AbstractAction |
gotoPromptPosAction
Moves the caret to the prompt. |
(package private) javax.swing.AbstractAction |
newLineAction
Inserts a new line at the caret position. |
(package private) javax.swing.AbstractAction |
selectToEndAction
Selects to the end of the current input line. |
(package private) javax.swing.AbstractAction |
selectToPromptPosAction
Selects to the current prompt. |
(package private) javax.swing.Action |
switchToNextPaneAction
Action to change focus to next pane. |
(package private) javax.swing.Action |
switchToPrevPaneAction
Action to change focus to previous pane. |
| Constructor Summary | |
|---|---|
protected |
AbstractConsoleController(InteractionsDJDocument doc,
InteractionsPane pane)
Initializes the Swing console document and Swing interactions pane. |
| Method Summary | |
|---|---|
protected void |
_addDocumentStyles()
Adds AttributeSets as named styles to the Swing console document. |
protected boolean |
_busy()
Determines if the associated console pane is currently computing. |
protected void |
_init()
Initialization method. |
protected abstract void |
_setupModel()
Sets up the model. |
protected void |
_setupView()
Sets up the view. |
abstract ConsoleDocument |
getConsoleDoc()
Gets the console document for this console. |
InteractionsDJDocument |
getDocumentAdapter()
Accessor method for the InteractionsDJDocument. |
InteractionsPane |
getPane()
Accessor method for the InteractionsPane. |
(package private) void |
moveToEnd()
Moves the pane's caret to the end of the document. |
(package private) void |
moveToPrompt()
Moves the pane's caret to the document's prompt. |
void |
resetView()
Clears and resets the view (other than features derived from the model. |
void |
setNextPaneAction(javax.swing.Action a)
|
void |
setPrevPaneAction(javax.swing.Action a)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final InteractionsDJDocument _interactionsDJDocument
protected final InteractionsPane _pane
protected final javax.swing.text.SimpleAttributeSet _defaultStyle
protected final javax.swing.text.SimpleAttributeSet _systemOutStyle
protected final javax.swing.text.SimpleAttributeSet _systemErrStyle
volatile javax.swing.Action switchToPrevPaneAction
volatile javax.swing.Action switchToNextPaneAction
javax.swing.Action cutAction
javax.swing.Action copyAction
javax.swing.AbstractAction newLineAction
javax.swing.AbstractAction clearCurrentAction
javax.swing.AbstractAction gotoEndAction
javax.swing.AbstractAction selectToEndAction
javax.swing.AbstractAction gotoPromptPosAction
javax.swing.AbstractAction selectToPromptPosAction
| Constructor Detail |
|---|
protected AbstractConsoleController(InteractionsDJDocument doc,
InteractionsPane pane)
| Method Detail |
|---|
public abstract ConsoleDocument getConsoleDoc()
protected void _init()
protected void _addDocumentStyles()
protected abstract void _setupModel()
protected void _setupView()
public void resetView()
public InteractionsDJDocument getDocumentAdapter()
public InteractionsPane getPane()
protected boolean _busy()
void moveToEnd()
void moveToPrompt()
public void setPrevPaneAction(javax.swing.Action a)
public void setNextPaneAction(javax.swing.Action a)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||