com.opera.core.systems
Class QuickMenu

java.lang.Object
  extended by com.opera.core.systems.QuickMenu

public class QuickMenu
extends java.lang.Object

Represents a menu in the Opera desktop UI.

Author:
Karianne Ekern.

Constructor Summary
QuickMenu(DesktopWmProtos.QuickMenuInfo info, IDesktopUtils desktopUtils, SystemInputManager inputManager)
          Constructor.
 
Method Summary
 java.util.List<QuickMenuItem> getItemList()
           
 java.lang.String getName()
          Get the name of the menu (as represented in e.g.
 int getParentWindowId()
          Get the windowId of the window the Menu is attached to.
 DesktopWmProtos.DesktopWindowRect getRect()
           
 boolean hasSubmenu()
           
 java.lang.String toFullString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuickMenu

public QuickMenu(DesktopWmProtos.QuickMenuInfo info,
                 IDesktopUtils desktopUtils,
                 SystemInputManager inputManager)
Constructor.

Parameters:
desktopUtils -
inputManager -
info - QuickMenuInfo of the menu
Method Detail

getName

public java.lang.String getName()
Get the name of the menu (as represented in e.g. standard_menu.ini)

Returns:
the name of the menu

getParentWindowId

public int getParentWindowId()
Get the windowId of the window the Menu is attached to. Note: Only set for menubars, and only on windows and *nix.

Returns:
window id

getItemList

public java.util.List<QuickMenuItem> getItemList()
Returns:
List of QuickMenuItems in this menu

hasSubmenu

public boolean hasSubmenu()
Returns:
true if this menu has one or more submenus, else false

getRect

public DesktopWmProtos.DesktopWindowRect getRect()
Returns:
DesktopWindowRect of the menu

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toFullString

public java.lang.String toFullString()


Copyright © 2011. All Rights Reserved.