Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.jdeveloper.webapp.navigation
Interface NavigationMenu


public interface NavigationMenu

Method Summary
 javax.swing.JMenuItem createMenuItem(ToggleAction action)
          Creates a new menu item for the supplied ToggleAction.
 javax.swing.JMenuItem createMenuItem(ToggleAction action, float menuWeight)
          Creates a new menu item for the supplied ToggleAction with the supplied menu weight.
 Context getContext()
          Returns the context in which this menu was invoked.

 

Method Detail

getContext

Context getContext()
Returns the context in which this menu was invoked.
Returns:
the context in which this menu was invoked

createMenuItem

javax.swing.JMenuItem createMenuItem(ToggleAction action)
Creates a new menu item for the supplied ToggleAction. By default, the menu weight is WEIGHT_UNDEFINED unless the action has a defined menu weight, in which case that value is used.
See Also:
ToggleAction, ToggleAction.setMenuWeight(float)

createMenuItem

javax.swing.JMenuItem createMenuItem(ToggleAction action,
                                     float menuWeight)
Creates a new menu item for the supplied ToggleAction with the supplied menu weight. If the ToggleAction has a defined menu weight, the supplied weight overwrites it, except in the case where the supplied menu weight is MenuConstants.WEIGHT_UNDEFINED then the menu weight stored in the ToggleAction, if any, is set in the menu item.
Parameters:
action - The action for this menu item
menuWeight - The menu weight to use to sort this item when it is added to a menu
See Also:
createMenuItem(ToggleAction), ToggleAction, ToggleAction.setMenuWeight(float)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


Copyright © 1997, 2012, Oracle. All rights reserved.