|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Controller
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.
Command
, IdeAction
, View
Field Summary | |
---|---|
static int |
UPDATE_FROM_ACTION_PERFORMED |
static int |
UPDATE_FROM_ACTIVE_VIEW_CHANGED |
static int |
UPDATE_FROM_UNDO |
static int |
UPDATE_FROM_USER_EXTENSION |
static int |
UPDATE_FROM_VIEW_SELECTION_CHANGED |
Method Summary | |
---|---|
boolean |
handleEvent(IdeAction action, Context context) This method is called when a user interaction with a View triggers the execution of a command. |
boolean |
update(IdeAction action, Context context) This method updates the enabled status of the specified action within the specified context. |
Field Detail |
---|
static final int UPDATE_FROM_USER_EXTENSION
static final int UPDATE_FROM_ACTIVE_VIEW_CHANGED
static final int UPDATE_FROM_VIEW_SELECTION_CHANGED
static final int UPDATE_FROM_ACTION_PERFORMED
static final int UPDATE_FROM_UNDO
Method Detail |
---|
boolean handleEvent(IdeAction action, Context context)
View
triggers the execution of a command.action
- action whose command is to be executed.boolean update(IdeAction action, Context context)
action
- action whose command is to be executed.context
- the current context
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |