|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.addin.ChainedController
A ChainedController is used to hook an action with a context-specific Controller. ChainedControlled will first check its controller delegate to see if it is interested in the action. If not, the original controller for the action is used.
| Method Summary | |
static void |
chainController(IdeAction action,
Controller controller)
Hooks a specified action with a new controller. |
void |
checkCommands(Context context,
Controller activeController)
checkCommands() should be called on the controller associated with the active view whenever the Context changes. |
boolean |
handleEvent(IdeAction action,
Context context)
This method is called when a user interaction with a View
triggers the execution of a command. |
Controller |
supervisor()
Gets the supervising controller |
static void |
unchainController(IdeAction action)
Removes the hook on an action. |
boolean |
update(IdeAction action,
Context context)
This method updates the enabled status of the specified action within the specified context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void chainController(IdeAction action,
Controller controller)
action - the IdeAction to hook tocontroller - the Controller to delegate to first, before using the
original controller.public static void unchainController(IdeAction action)
action - the action to unhook from.public Controller supervisor()
Controller
supervisor in interface Controller
public boolean handleEvent(IdeAction action,
Context context)
ControllerView
triggers the execution of a command.
handleEvent in interface Controlleraction - action whose command is to be executed.
public boolean update(IdeAction action,
Context context)
Controller
update in interface Controlleraction - action whose command is to be executed.context - the current context
public void checkCommands(Context context,
Controller activeController)
Controller
checkCommands in interface Controllercontext - the current context. Null values are acceptable.activeController - the controller associated with the active view.
Null values are acceptable.
|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.