edu.rice.cs.drjava.ui
Class InteractionsScriptController

java.lang.Object
  extended by edu.rice.cs.drjava.ui.InteractionsScriptController

public class InteractionsScriptController
extends Object

Controller for an interactions script.

Version:
$Id: InteractionsScriptController.java 4504 2008-06-03 06:19:20Z rcartwright $

Constructor Summary
InteractionsScriptController(InteractionsScriptModel model, Action closeAction, InteractionsPane interactionsPane)
          Builds a new interactions script pane and links it to the given model.
 
Method Summary
protected  void _setupAction(Action a, String name, String desc)
          Sets up fields on the given Action, such as the name and tooltip.
 InteractionsScriptPane getPane()
           
 void setActionsDisabled()
          Disables navigation actions
 void setActionsEnabled()
          Sets the navigation actions to be enabled, if appropriate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InteractionsScriptController

public InteractionsScriptController(InteractionsScriptModel model,
                                    Action closeAction,
                                    InteractionsPane interactionsPane)
Builds a new interactions script pane and links it to the given model.

Parameters:
model - the InteractionsScriptModel to use
closeAction - how to close this script.
Method Detail

setActionsEnabled

public void setActionsEnabled()
Sets the navigation actions to be enabled, if appropriate.


setActionsDisabled

public void setActionsDisabled()
Disables navigation actions


getPane

public InteractionsScriptPane getPane()
Returns:
the interactions script pane controlled by this controller.

_setupAction

protected void _setupAction(Action a,
                            String name,
                            String desc)
Sets up fields on the given Action, such as the name and tooltip.

Parameters:
a - Action to modify
name - Default name for the Action (for buttons)
desc - Short description of the Action (for tooltips)