Skip navigation links


com.essbase.eas.ui.frame
Class CFrameMenu

java.lang.Object
  extended by com.essbase.eas.ui.frame.CFrameMenu

All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, javax.swing.event.MenuListener
Direct Known Subclasses:
ConsoleMenu

public class CFrameMenu
extends java.lang.Object
implements java.awt.event.ActionListener, javax.swing.event.MenuListener

Title: Description: Copyright: Copyright (c) 2001 Company: Hyperion Solutions Corporation

Version:
1.0
Author:
Sree Menon

Nested Class Summary
static class CFrameMenu.ConsoleJMenuBar
           

 

Field Summary
protected  CMenuItem email
           
protected  CMenuItem exit
           
protected  CMenuItem fileClose
           
protected  CMenuItem fileNew
           
protected  CMenuItem fileOpen
           
protected  CMenuItem filePrint
           
protected  CMenuItem fileSave
           
protected  CMenuItem fileSaveAs
           
protected  CMenu menuActions
           
protected  javax.swing.JMenuBar menuBar
           
protected  CMenu menuFile
           
protected  CMenu menuHelp
           
protected  CMenu menuTools
           
protected  CMenu menuView
           
protected  CMenu menuWindow
           
protected  CMenu menuWizard
           
protected  CMenuItem pageSetup
           
protected  CMenuItem preview
           
protected  java.util.ResourceBundle[] resources
           
protected  CSeparator sep1
           
protected  CSeparator sep3
           
protected  CSeparator sep4
           
protected  CSeparator sep5
           
protected  CSeparator sep6
           
protected  CCheckBoxMenuItem viewMessagesItem
           
protected  CCheckBoxMenuItem viewNavigationItem
           
protected  CCheckBoxMenuItem viewStatusbarItem
           
protected  CCheckBoxMenuItem viewToolbarItem
           

 

Constructor Summary
CFrameMenu()
           

 

Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
protected  void addMenuToMenuBar(CMenu menu, java.awt.Component[] items)
          add a pre-defined menu item to the menu bar.
protected  void addMenuToMenuBar(CMenu menu, java.awt.Component[] items, boolean hasIcons)
           
 void applySettings(java.util.Properties settings)
           
 void booleanshowMessage(boolean show)
           
 void dispose()
           
 CMenu getActionMenu()
           
protected  java.awt.Component[] getFileItems()
           
 CMenu getFileMenu()
           
 CMenu getHelpMenu()
           
 javax.swing.JMenuBar getMenuBar()
           
 java.util.Properties getSettings(java.util.Properties settings)
           
protected  java.lang.String getString(java.lang.String key)
           
protected  java.awt.Component[] getToolsItems()
           
 CMenu getToolsMenu()
           
protected  java.awt.Component[] getViewItems()
           
 CMenu getViewMenu()
           
 CMenu getWindowMenu()
           
 CMenu getWizardMenu()
           
 javax.swing.JMenuBar initMenubar()
           
 boolean isMessageItemSelected()
           
 boolean isNavigationItemSelected()
           
 boolean isStatusbarSelected()
           
 boolean isToolbarItemSelected()
           
 void menuCanceled(javax.swing.event.MenuEvent e)
           
 void menuDeselected(javax.swing.event.MenuEvent e)
           
 void menuSelected(javax.swing.event.MenuEvent e)
           
 void mergeActionMenu(java.awt.Component[] items)
          asks console object to merge these items on to the action menu.
protected  void mergeItems(CMenu master, CMenu slave)
           
 void mergeItems(CMenu master, java.awt.Component[] items)
           
protected  void mergeMenu(javax.swing.JMenuBar mb, CMenu menu)
           
 void mergeMenus(CInternalFrame f)
          implementation of the Console.mergeMenus() method.
 void mergeMenus(java.awt.Component[] items)
          implementation of the Console.mergeMenus() method.
 void mergeMenus(java.awt.Component[] items, boolean doLayout)
           
 void setUserObjectForMenu(java.lang.Object userObj)
           
 void showNavigation(boolean show)
           
 void showStatusbar(boolean bShow)
           
 void showToolbar(boolean value)
           
 void unmergeActionMenu(java.lang.Object owner)
          asks the console object to menu items owned by this object from the action menu.
 void unmergeMenus(CInternalFrame f)
          implementation of the Console.unmergeMenus() method.
protected  void unmergeSubMenus(javax.swing.JMenu m, java.lang.Object obj)
          removes merged items on sub-menus.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

menuFile

protected CMenu menuFile

menuView

protected CMenu menuView

menuActions

protected CMenu menuActions

menuTools

protected CMenu menuTools

menuWizard

protected CMenu menuWizard

menuWindow

protected CMenu menuWindow

menuHelp

protected CMenu menuHelp

viewToolbarItem

protected CCheckBoxMenuItem viewToolbarItem

viewStatusbarItem

protected CCheckBoxMenuItem viewStatusbarItem

viewNavigationItem

protected CCheckBoxMenuItem viewNavigationItem

viewMessagesItem

protected CCheckBoxMenuItem viewMessagesItem

fileNew

protected CMenuItem fileNew

fileOpen

protected CMenuItem fileOpen

fileClose

protected CMenuItem fileClose

sep1

protected CSeparator sep1

fileSave

protected CMenuItem fileSave

fileSaveAs

protected CMenuItem fileSaveAs

sep6

protected CSeparator sep6

pageSetup

protected CMenuItem pageSetup

preview

protected CMenuItem preview

filePrint

protected CMenuItem filePrint

sep3

protected CSeparator sep3

sep4

protected CSeparator sep4

email

protected CMenuItem email

sep5

protected CSeparator sep5

exit

protected CMenuItem exit

menuBar

protected javax.swing.JMenuBar menuBar

resources

protected java.util.ResourceBundle[] resources

Constructor Detail

CFrameMenu

public CFrameMenu()

Method Detail

initMenubar

public javax.swing.JMenuBar initMenubar()

getFileItems

protected java.awt.Component[] getFileItems()

getViewItems

protected java.awt.Component[] getViewItems()

getToolsItems

protected java.awt.Component[] getToolsItems()

getMenuBar

public javax.swing.JMenuBar getMenuBar()

getString

protected java.lang.String getString(java.lang.String key)

addMenuToMenuBar

protected void addMenuToMenuBar(CMenu menu,
                                java.awt.Component[] items)
add a pre-defined menu item to the menu bar. Changes the captions of the menus based on values in the resource bundle.

addMenuToMenuBar

protected void addMenuToMenuBar(CMenu menu,
                                java.awt.Component[] items,
                                boolean hasIcons)

mergeItems

public void mergeItems(CMenu master,
                       java.awt.Component[] items)

mergeItems

protected void mergeItems(CMenu master,
                          CMenu slave)

mergeMenu

protected void mergeMenu(javax.swing.JMenuBar mb,
                         CMenu menu)

unmergeSubMenus

protected void unmergeSubMenus(javax.swing.JMenu m,
                               java.lang.Object obj)
removes merged items on sub-menus.

mergeMenus

public void mergeMenus(java.awt.Component[] items)
implementation of the Console.mergeMenus() method.

mergeMenus

public void mergeMenus(java.awt.Component[] items,
                       boolean doLayout)

mergeMenus

public void mergeMenus(CInternalFrame f)
implementation of the Console.mergeMenus() method.

unmergeMenus

public void unmergeMenus(CInternalFrame f)
implementation of the Console.unmergeMenus() method.

mergeActionMenu

public void mergeActionMenu(java.awt.Component[] items)
asks console object to merge these items on to the action menu.

unmergeActionMenu

public void unmergeActionMenu(java.lang.Object owner)
asks the console object to menu items owned by this object from the action menu.

menuSelected

public void menuSelected(javax.swing.event.MenuEvent e)
Specified by:
menuSelected in interface javax.swing.event.MenuListener

menuDeselected

public void menuDeselected(javax.swing.event.MenuEvent e)
Specified by:
menuDeselected in interface javax.swing.event.MenuListener

menuCanceled

public void menuCanceled(javax.swing.event.MenuEvent e)
Specified by:
menuCanceled in interface javax.swing.event.MenuListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

getFileMenu

public CMenu getFileMenu()

getViewMenu

public CMenu getViewMenu()

getActionMenu

public CMenu getActionMenu()

getToolsMenu

public CMenu getToolsMenu()

getWizardMenu

public CMenu getWizardMenu()

getWindowMenu

public CMenu getWindowMenu()

getHelpMenu

public CMenu getHelpMenu()

setUserObjectForMenu

public void setUserObjectForMenu(java.lang.Object userObj)

showToolbar

public void showToolbar(boolean value)

showStatusbar

public void showStatusbar(boolean bShow)

booleanshowMessage

public void booleanshowMessage(boolean show)

isMessageItemSelected

public boolean isMessageItemSelected()

showNavigation

public void showNavigation(boolean show)

isNavigationItemSelected

public boolean isNavigationItemSelected()

isToolbarItemSelected

public boolean isToolbarItemSelected()

isStatusbarSelected

public boolean isStatusbarSelected()

getSettings

public java.util.Properties getSettings(java.util.Properties settings)

applySettings

public void applySettings(java.util.Properties settings)

dispose

public void dispose()

Skip navigation links


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