Java Doc for MenuComponent.java in  » Apache-Harmony-Java-SE » java-package » java » awt » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » java package » java.awt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.MenuComponent

All known Subclasses:   java.awt.MenuItem,  java.awt.MenuBar,
MenuComponent
abstract public class MenuComponent implements Serializable(Code)

Inner Class :abstract protected class AccessibleAWTMenuComponent extends AccessibleContext implements Serializable,AccessibleComponent,AccessibleSelection
Inner Class :class State implements MenuState
Inner Class :class MenuPopupBox extends PopupBox

Field Summary
 booleandeprecatedEventHandler
    
 MenuContainerparent
    
final  Toolkittoolkit
    

Constructor Summary
public  MenuComponent()
    

Method Summary
 StringautoName()
    
 AccessibleContextcreateAccessibleContext()
    
final public  voiddispatchEvent(AWTEvent event)
    
 voidendMenu()
    
 voidfireItemAction(int item, long when, int modifiers)
     Post the ActionEvent or ItemEvent, depending on type of the menu item.
public  AccessibleContextgetAccessibleContext()
    
public  FontgetFont()
    
 GraphicsgetGraphics(MultiRectArea clip)
    
 intgetHeight()
    
 MenuItemgetItem(int index)
    
 intgetItemCount()
    
 RectanglegetItemRect(int index)
    
 PointgetLocation()
    
 MenuBargetMenuBar()
    
public  StringgetName()
    
public  MenuContainergetParent()
    
public  MenuComponentPeergetPeer()
    
 PopupBoxgetPopupBox()
    
 intgetSelectedItemIndex()
    
 MenugetSelectedSubmenu()
    
 MenuItemgetShortcutMenuItemImpl(MenuShortcut ms)
    
 PointgetSubmenuLocation(int index)
    
final protected  ObjectgetTreeLock()
    
final  MultiRectAreagetUpdateClip(int index1, int index2)
    
 intgetWidth()
    
 booleanhasDefaultFont()
    
 voidhide()
    
 booleanisActive()
    
 booleanisFontSet()
    
 booleanisVisible()
    
 voiditemHidden(MenuComponent mc)
    
 voiditemSelected(long when, int modifiers)
    
 voidonKeyEvent(int eventId, int vKey, long when, int modifiers)
    
 voidonMouseEvent(int eventId, Point where, int mouseButton, long when, int modifiers)
    
 voidpaint(Graphics gr)
    
protected  StringparamString()
    
 voidpostDeprecatedEvent(AWTEvent event)
    
public  booleanpostEvent(Event e)
    
protected  voidprocessEvent(AWTEvent event)
    
public  voidremoveNotify()
    
 voidselectItem(int index)
    
 voidselectItem(int index, boolean showSubMenu)
    
 voidselectNextItem(boolean forward, boolean showSubMenu)
    
public  voidsetFont(Font font)
    
public  voidsetName(String name)
    
 voidsetParent(MenuContainer parent)
    
 voidshowSubMenu(int index)
    
public  StringtoString()
    

Field Detail
deprecatedEventHandler
boolean deprecatedEventHandler(Code)



parent
MenuContainer parent(Code)



toolkit
final Toolkit toolkit(Code)




Constructor Detail
MenuComponent
public MenuComponent() throws HeadlessException(Code)




Method Detail
autoName
String autoName()(Code)



createAccessibleContext
AccessibleContext createAccessibleContext()(Code)
accessible context specific for particular menu component



dispatchEvent
final public void dispatchEvent(AWTEvent event)(Code)



endMenu
void endMenu()(Code)
Hide all menu hierarchy



fireItemAction
void fireItemAction(int item, long when, int modifiers)(Code)
Post the ActionEvent or ItemEvent, depending on type of the menu item.
Parameters:
  item - - the index of menu item
Parameters:
  when - - event time
Parameters:
  modifiers - - input event modifiers



getAccessibleContext
public AccessibleContext getAccessibleContext()(Code)



getFont
public Font getFont()(Code)



getGraphics
Graphics getGraphics(MultiRectArea clip)(Code)
Creates the Graphics object for the pop-up box of this menu component
Parameters:
  clip - - the clip to set on this Graphics - the created Graphics object, or null if such object is not available.



getHeight
int getHeight()(Code)



getItem
MenuItem getItem(int index)(Code)



getItemCount
int getItemCount()(Code)



getItemRect
Rectangle getItemRect(int index)(Code)



getLocation
Point getLocation()(Code)



getMenuBar
MenuBar getMenuBar()(Code)
- the menu bar which is the root of crrent menu's hierarchy;or null if the hierarchy root is not a menu bar



getName
public String getName()(Code)



getParent
public MenuContainer getParent()(Code)



getPeer
public MenuComponentPeer getPeer() throws org.apache.harmony.luni.util.NotImplementedException(Code)



getPopupBox
PopupBox getPopupBox()(Code)



getSelectedItemIndex
int getSelectedItemIndex()(Code)



getSelectedSubmenu
Menu getSelectedSubmenu()(Code)
The sub-menu of currently selecetd item, or null if such a sub-menu is not available



getShortcutMenuItemImpl
MenuItem getShortcutMenuItemImpl(MenuShortcut ms)(Code)
Recursively find the menu item for a menu shortcut
Parameters:
  ms - - the shortcut the menu item; or null if the item is not available for this shortcut



getSubmenuLocation
Point getSubmenuLocation(int index)(Code)



getTreeLock
final protected Object getTreeLock()(Code)



getUpdateClip
final MultiRectArea getUpdateClip(int index1, int index2)(Code)
Determine the clip region when menu selection is changed from index1 to index2
Parameters:
  index1 - - old selected intem
Parameters:
  index2 - - new selected item - the region to repaint



getWidth
int getWidth()(Code)



hasDefaultFont
boolean hasDefaultFont()(Code)



hide
void hide()(Code)



isActive
boolean isActive()(Code)



isFontSet
boolean isFontSet()(Code)



isVisible
boolean isVisible()(Code)



itemHidden
void itemHidden(MenuComponent mc)(Code)



itemSelected
void itemSelected(long when, int modifiers)(Code)
Handle the mouse click or Enter key event on a menu's item
Parameters:
  when - - the event time
Parameters:
  modifiers - - input event modifiers



onKeyEvent
void onKeyEvent(int eventId, int vKey, long when, int modifiers)(Code)
Keyboard event handler
Parameters:
  eventId - - one of the KeyEvent.KEY_* constants
Parameters:
  vKey - - the key code
Parameters:
  when - - event time
Parameters:
  modifiers - - input event modifiers



onMouseEvent
void onMouseEvent(int eventId, Point where, int mouseButton, long when, int modifiers)(Code)
Mouse events handler
Parameters:
  eventId - - one of the MouseEvent.MOUSE_* constants
Parameters:
  where - - mouse location
Parameters:
  mouseButton - - mouse button that was pressed or released
Parameters:
  when - - event time
Parameters:
  modifiers - - input event modifiers



paint
void paint(Graphics gr)(Code)



paramString
protected String paramString()(Code)



postDeprecatedEvent
void postDeprecatedEvent(AWTEvent event)(Code)



postEvent
public boolean postEvent(Event e)(Code)



processEvent
protected void processEvent(AWTEvent event)(Code)



removeNotify
public void removeNotify()(Code)



selectItem
void selectItem(int index)(Code)
Convenience method for selectItem(index, true)



selectItem
void selectItem(int index, boolean showSubMenu)(Code)
Change the selection in the menu
Parameters:
  index - - new selecetd item's index
Parameters:
  showSubMenu - - if new selected item has a sub-menu,should that sub-menu be displayed



selectNextItem
void selectNextItem(boolean forward, boolean showSubMenu)(Code)
Change the selected item to the next one in the requested direction moving cyclically, skipping separators
Parameters:
  forward - - the direction to move the selection
Parameters:
  showSubMenu - - if new selected item has a sub-menu,should that sub-menu be displayed



setFont
public void setFont(Font font)(Code)



setName
public void setName(String name)(Code)



setParent
void setParent(MenuContainer parent)(Code)



showSubMenu
void showSubMenu(int index)(Code)



toString
public String toString()(Code)



Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final public Class<? extends Object> getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify()(Code)(Java Doc)
final public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait(long millis) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.