| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.1) E67661-01  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  
oracle.ide.util.WeightedController
public class WeightedController
A WeightedController allows to chain controllers using a weight to control the order. A weighted controller is typically set on an action and exposed by the creator of the action.
| Field Summary | |
|---|---|
static Controller | 
NOOP_CONTROLLERA generic controller that disables the action and does nothing to handle it.  | 
static Controller | 
USE_ACTIVE_VIEW_CONTROLLERA generic controller that redirects to the active view.  | 
| Fields inherited from interface oracle.ide.controller.Controller | 
|---|
UPDATE_FROM_ACTION_PERFORMED, UPDATE_FROM_ACTIVE_VIEW_CHANGED, UPDATE_FROM_UNDO, UPDATE_FROM_USER_EXTENSION, UPDATE_FROM_VIEW_SELECTION_CHANGED | 
| Constructor Summary | |
|---|---|
WeightedController() | 
|
WeightedController(Controller firstController, Controller lastController) | 
|
| Method Summary | |
|---|---|
 void | 
addController(Controller controller, double weight)Adds a controller to the list.  | 
 boolean | 
handleEvent(IdeAction action, Context context)This method is called when a user interaction with a View triggers the execution of a command. | 
 void | 
removeController(Controller controller) | 
 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 | 
| Field Detail | 
|---|
public static final Controller USE_ACTIVE_VIEW_CONTROLLER
public static final Controller NOOP_CONTROLLER
| Constructor Detail | 
|---|
public WeightedController()
public WeightedController(Controller firstController,
                          Controller lastController)
firstController - This is guaranteed to be the first controller. Can be null.lastController - This is guaranteed to be the last controller. Can be null.| Method Detail | 
|---|
public void addController(Controller controller,
                          double weight)
weight - Small value means higher priority: The controllers with the lower values are invoked before the others.public void removeController(Controller controller)
public boolean update(IdeAction action,
                      Context context)
Controllerupdate in interface Controlleraction - action whose command is to be executed.context - the current context
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.
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.1) E67661-01  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||