com.opera.core.systems
Class QuickMenu

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

public class QuickMenu
extends 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
 List<QuickMenuItem> getItemList()
           
 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()
           
 String toFullString()
           
 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:
info - QuickMenuInfo of the menu
Method Detail

getName

public 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 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 String toString()
Overrides:
toString in class Object

toFullString

public String toFullString()


Copyright © 2012. All Rights Reserved.