Extension SDK 10.1.2

oracle.ide
Class Menubar

java.lang.Object
  extended byoracle.ide.AbstractMenuManager
      extended byoracle.ide.Menubar
All Implemented Interfaces:
java.awt.event.ContainerListener, java.util.EventListener, javax.swing.event.MenuListener, MenuManager, java.awt.event.WindowListener

public final class Menubar
extends AbstractMenuManager
implements java.awt.event.WindowListener

Menubar class represents a JFrame menu bar. This class should be used from Views implemented as JFrames which wish to integrate a menu bar into JDeveloper's framework.

See Also:
View, MenuManager

Field Summary
 
Fields inherited from class oracle.ide.AbstractMenuManager
containerListener, menuListener
 
Fields inherited from interface oracle.ide.MenuManager
ALPHA_SORT_SECTION_KEY, LAST_POSITION
 
Constructor Summary
Menubar(View view)
          Constructor.
 
Method Summary
 javax.swing.JMenu createMenu(java.lang.String caption, java.lang.Integer mnemonic)
          Creates a new menu suitable for insertion into JDeveloper's top level menu bar.
 java.awt.Container getGUI(boolean create)
          Gets the GUI for this MenuManager.
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent p0)
           
 void windowClosing(java.awt.event.WindowEvent p0)
           
 void windowDeactivated(java.awt.event.WindowEvent p0)
           
 void windowDeiconified(java.awt.event.WindowEvent p0)
           
 void windowIconified(java.awt.event.WindowEvent p0)
           
 void windowOpened(java.awt.event.WindowEvent p0)
           
 
Methods inherited from class oracle.ide.AbstractMenuManager
add, add, add, add, componentAdded, componentRemoved, createMenu, createMenu, createMenu, createMenuItem, createMenuItem, createSubMenu, createSubMenu, createSubMenu, getChildById, getIndexOfChild, getIndexOfCommandId, insert, insert, menuCanceled, menuDeselected, menuSelected, remove, remove, setErrorWeight, sortContainer, sortSectionByName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Menubar

public Menubar(View view)
Constructor.

Method Detail

getGUI

public java.awt.Container getGUI(boolean create)
Gets the GUI for this MenuManager.

Specified by:
getGUI in interface MenuManager
Parameters:
create - force a creation of the GUI if it does not yet exist.
Returns:
the GUI for this MenuManager.

createMenu

public javax.swing.JMenu createMenu(java.lang.String caption,
                                    java.lang.Integer mnemonic)
Description copied from interface: MenuManager
Creates a new menu suitable for insertion into JDeveloper's top level menu bar.

Specified by:
createMenu in interface MenuManager
Overrides:
createMenu in class AbstractMenuManager

windowOpened

public void windowOpened(java.awt.event.WindowEvent p0)
Specified by:
windowOpened in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent p0)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent p0)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent p0)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent p0)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent p0)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

Extension SDK

 

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