Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

oracle.apps.fnd.applcore.dt.menu
Class MainMenuController

java.lang.Object
  extended by oracle.apps.fnd.applcore.dt.menu.MainMenuController
All Implemented Interfaces:
Controller

public class MainMenuController
extends java.lang.Object
implements Controller

Controller for "Create Applications Menu".

Since:
drop4
Author:
vthumma

Field Summary
static int MENU_CMD_ID
          The Id for the setid command.
 
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
MainMenuController()
           
 
Method Summary
static void extractAndAddRootMenu(Project project, java.net.URL tfURL, java.net.URL menuFileUrl, java.lang.String pageNameWithPath)
          Create the menu artifacts, including viewId in taskflow, managed bean and menu file.
static oracle.adfdt.controller.adfc.source.navigator.AdfcConfigNode getDefaultAdfcNode()
          The the default unbound task flow (adfc-config.xml file) for the active project.
static java.lang.String getDefaultMenuFileName(java.lang.String jspxPage)
           
static java.lang.String getPageNameWithPath(Context context, java.net.URL jspxPage)
           
 boolean handleEvent(IdeAction action, Context context)
          This method handles the event.
static boolean hasView(oracle.adfdtinternal.controller.adfmenu.model.ConfigProxy adfcConfigProxy, java.lang.String pageName)
           
 boolean update(IdeAction action, Context context)
          The update method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MENU_CMD_ID

public static final int MENU_CMD_ID
The Id for the setid command.

Constructor Detail

MainMenuController

public MainMenuController()
Method Detail

handleEvent

public boolean handleEvent(IdeAction action,
                           Context context)
This method handles the event.

Specified by:
handleEvent in interface Controller
Parameters:
action - The action object.
context - The context object.
Returns:
The outcome.

getPageNameWithPath

public static java.lang.String getPageNameWithPath(Context context,
                                                   java.net.URL jspxPage)

getDefaultMenuFileName

public static java.lang.String getDefaultMenuFileName(java.lang.String jspxPage)

extractAndAddRootMenu

public static void extractAndAddRootMenu(Project project,
                                         java.net.URL tfURL,
                                         java.net.URL menuFileUrl,
                                         java.lang.String pageNameWithPath)
Create the menu artifacts, including viewId in taskflow, managed bean and menu file.

Parameters:
project - current project.
tfURL - url of unbound task flow to use.
menuFileUrl - url to new menu file - file:/some/dir/ViewController/public_html/menus/dir/Page_taskmenu.xml
pageNameWithPath - name of jspx page for menu - /dir/Page.jspx

hasView

public static boolean hasView(oracle.adfdtinternal.controller.adfmenu.model.ConfigProxy adfcConfigProxy,
                              java.lang.String pageName)

getDefaultAdfcNode

public static oracle.adfdt.controller.adfc.source.navigator.AdfcConfigNode getDefaultAdfcNode()
The the default unbound task flow (adfc-config.xml file) for the active project.

Returns:
adfc config node, null if not found.

update

public boolean update(IdeAction action,
                      Context context)
The update method.

Specified by:
update in interface Controller
Parameters:
action - The action to be enabled/disabled.
context - The context object.
Returns:
The updated action.

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

Copyright © 2011 Oracle. All Rights Reserved.