public final class Controller
extends java.lang.Object
UpdateHandlers and 
 InvokeHandlers. Generally, Views use 
 controllers to check whether a context sensitive command can be 
 executed given the current context, and to do the actual execution of 
 that command.| Constructor and Description | 
|---|
Controller(InvokeHandler invokeHandler,
          UpdateHandler updateHandler)
Constructs a controller object. 
 | 
Controller(MetaClass invokeHandlerClass,
          MetaClass updateHandlerClass)
Constructs a controller object, deferring class loading and instantiation
 of its invoke and update handler objects until needed. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
InvokeHandler | 
getInvokeHandler()
Get the invoke handler for this controller. 
 | 
UpdateHandler | 
getUpdateHandler()
Get the update handler for this controller. 
 | 
boolean | 
isContextSensitive()
Get whether this controller is context sensitive. 
 | 
public Controller(MetaClass invokeHandlerClass, MetaClass updateHandlerClass)
invokeHandlerClass - a metaclass of an InvokeHandler.updateHandlerClass - a metaclass of an UpdateHandler. May
    be null.public Controller(InvokeHandler invokeHandler, UpdateHandler updateHandler)
invokeHandler - the invocation handler. Must not be null.updateHandler - the update handler. May be null for actions which
 are always enabled.public InvokeHandler getInvokeHandler()
public UpdateHandler getUpdateHandler()
public boolean isContextSensitive()