Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.ide.command
Class Controller  view Controller download Controller.java

java.lang.Object
  extended byjavax.ide.command.Controller

public final class Controller
extends java.lang.Object

Controllers encapulate extension defined UpdateHandlers and Controller.NullInvokeHandlers. Generally, javax.ide.view.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.


Nested Class Summary
private static class Controller.NullInvokeHandler
           
private static class Controller.NullUpdateHandler
           
 
Field Summary
private  javax.ide.util.MetaClass _invokeClass
           
private  InvokeHandler _invokeHandler
           
private  boolean _isContextSensitive
           
private static InvokeHandler _nullInvokeHandler
           
private static UpdateHandler _nullUpdateHandler
           
private  javax.ide.util.MetaClass _updateClass
           
private  UpdateHandler _updateHandler
           
 
Constructor Summary
Controller(InvokeHandler invokeHandler, UpdateHandler updateHandler)
          Constructs a controller object.
Controller(javax.ide.util.MetaClass invokeHandlerClass, javax.ide.util.MetaClass updateHandlerClass)
          Constructs a controller object, deferring class loading and instantiation of its invoke and update handler objects until needed.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_updateClass

private javax.ide.util.MetaClass _updateClass

_invokeClass

private javax.ide.util.MetaClass _invokeClass

_isContextSensitive

private final boolean _isContextSensitive

_updateHandler

private UpdateHandler _updateHandler

_invokeHandler

private InvokeHandler _invokeHandler

_nullUpdateHandler

private static UpdateHandler _nullUpdateHandler

_nullInvokeHandler

private static InvokeHandler _nullInvokeHandler
Constructor Detail

Controller

public Controller(javax.ide.util.MetaClass invokeHandlerClass,
                  javax.ide.util.MetaClass updateHandlerClass)
Constructs a controller object, deferring class loading and instantiation of its invoke and update handler objects until needed. Generally, this is only used by IDE implementations when loading controllers from the manifest file.


Controller

public Controller(InvokeHandler invokeHandler,
                  UpdateHandler updateHandler)
Constructs a controller object.

Method Detail

getInvokeHandler

public InvokeHandler getInvokeHandler()
Get the invoke handler for this controller.


getUpdateHandler

public UpdateHandler getUpdateHandler()
Get the update handler for this controller.


isContextSensitive

public boolean isContextSensitive()
Get whether this controller is context sensitive. A context sensitive controller has an associated UpdateHandler that adjusts the action based on the context.