|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Each View has an associated Controller.
Controllers receive requests to handle the commands associated with user
actions.
The controller's handleEvent method gets called
with the appropriate Command specified. If the
Controller does not handle the requested command it delegates
the Command to a supervising Controller.
Controllers are also responsible for determining the availability of a
specific command. The update method is called to do just that.
oracle.jdeveloper.ide.Command,
oracle.jdeveloper.ide.IdeAction,
oracle.jdeveloper.ide.View| Method Summary | |
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 |
boolean |
update(IdeAction action,
Context context)
This method updates the enabled status of the specified action within the specified context. |
| Method Detail |
public Controller supervisor()
public boolean handleEvent(IdeAction action,
Context context)
View
triggers the execution of a command.
action - action whose command is to be executed.
public boolean update(IdeAction action,
Context context)
action - action whose command is to be executed.context - the current context
public void checkCommands(Context context,
Controller activeController)
context - 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.