Java Doc for Menu.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
      java.awt.MenuItem
         java.awt.Menu

All known Subclasses:   java.awt.PopupMenu,
Menu
public class Menu extends MenuItem implements MenuContainer,Accessible(Code)

Inner Class :protected class AccessibleAWTMenu extends AccessibleAWTMenuItem
Inner Class :final class State extends MenuComponent.State implements MenuState

Field Summary
final static  intLAST_ELEMENT
    
final  StatemenuState
    
final  MenuPopupBoxpopupBox
    

Constructor Summary
public  Menu(String label)
    
public  Menu(String label, boolean tearOff)
    
public  Menu()
    

Method Summary
public  voidadd(String label)
    
public  MenuItemadd(MenuItem item)
    
public  voidaddNotify()
    
public  voidaddSeparator()
    
 voidcollectShortcuts(HashSet<MenuShortcut> shortcuts)
    
public  intcountItems()
    
 AccessibleContextcreateAccessibleContext()
    
public  AccessibleContextgetAccessibleContext()
    
 GraphicsgetGraphics(MultiRectArea clip)
    
 intgetHeight()
    
public  MenuItemgetItem(int index)
    
public  intgetItemCount()
    
 RectanglegetItemRect(int index)
    
 PointgetLocation()
    
 WindowgetOwnerWindow()
    
 PopupBoxgetPopupBox()
    
 DimensiongetSize()
    
 PointgetSubmenuLocation(int index)
    
 intgetWidth()
    
 voidhide()
    
public  voidinsert(String label, int index)
    
public  voidinsert(MenuItem item, int index)
    
 voidinsertImpl(MenuItem item, int index)
    
public  voidinsertSeparator(int index)
    
public  booleanisTearOff()
    
 booleanisVisible()
    
 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)
    
public  StringparamString()
    
public  voidremove(int index)
    
public  voidremove(MenuComponent item)
    
public  voidremoveAll()
    
 voidremoveImpl(int index)
    
public  voidremoveNotify()
    
 voidshow(int x, int y, boolean modal)
    

Field Detail
LAST_ELEMENT
final static int LAST_ELEMENT(Code)



menuState
final State menuState(Code)



popupBox
final MenuPopupBox popupBox(Code)




Constructor Detail
Menu
public Menu(String label) throws HeadlessException(Code)



Menu
public Menu(String label, boolean tearOff) throws HeadlessException(Code)



Menu
public Menu() throws HeadlessException(Code)




Method Detail
add
public void add(String label)(Code)



add
public MenuItem add(MenuItem item)(Code)



addNotify
public void addNotify()(Code)



addSeparator
public void addSeparator()(Code)



collectShortcuts
void collectShortcuts(HashSet<MenuShortcut> shortcuts)(Code)



countItems
public int countItems()(Code)



createAccessibleContext
AccessibleContext createAccessibleContext()(Code)



getAccessibleContext
public AccessibleContext getAccessibleContext()(Code)



getGraphics
Graphics getGraphics(MultiRectArea clip)(Code)



getHeight
int getHeight()(Code)



getItem
public MenuItem getItem(int index)(Code)



getItemCount
public int getItemCount()(Code)



getItemRect
Rectangle getItemRect(int index)(Code)



getLocation
Point getLocation()(Code)



getOwnerWindow
Window getOwnerWindow()(Code)



getPopupBox
PopupBox getPopupBox()(Code)



getSize
Dimension getSize()(Code)



getSubmenuLocation
Point getSubmenuLocation(int index)(Code)



getWidth
int getWidth()(Code)



hide
void hide()(Code)



insert
public void insert(String label, int index)(Code)



insert
public void insert(MenuItem item, int index)(Code)



insertImpl
void insertImpl(MenuItem item, int index)(Code)



insertSeparator
public void insertSeparator(int index)(Code)



isTearOff
public boolean isTearOff()(Code)



isVisible
boolean isVisible()(Code)



itemSelected
void itemSelected(long when, int modifiers)(Code)



onKeyEvent
void onKeyEvent(int eventId, int vKey, long when, int modifiers)(Code)



onMouseEvent
void onMouseEvent(int eventId, Point where, int mouseButton, long when, int modifiers)(Code)



paint
void paint(Graphics gr)(Code)



paramString
public String paramString()(Code)



remove
public void remove(int index)(Code)



remove
public void remove(MenuComponent item)(Code)



removeAll
public void removeAll()(Code)



removeImpl
void removeImpl(int index)(Code)



removeNotify
public void removeNotify()(Code)



show
void show(int x, int y, boolean modal)(Code)
Show menu on the screen
Parameters:
  x - - screen X coordinate
Parameters:
  y - - screen Y coordinate



Fields inherited from java.awt.MenuItem
final State itemState(Code)(Java Doc)

Methods inherited from java.awt.MenuItem
public void addActionListener(ActionListener listener)(Code)(Java Doc)
public void addNotify()(Code)(Java Doc)
AccessibleContext createAccessibleContext()(Code)(Java Doc)
AWTEvent createEvent(long when, int modifiers)(Code)(Java Doc)
public void deleteShortcut()(Code)(Java Doc)
public void disable()(Code)(Java Doc)
final protected void disableEvents(long eventsToDisable)(Code)(Java Doc)
public void enable(boolean b)(Code)(Java Doc)
public void enable()(Code)(Java Doc)
final protected void enableEvents(long eventsToEnable)(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public String getActionCommand()(Code)(Java Doc)
public ActionListener[] getActionListeners()(Code)(Java Doc)
public String getLabel()(Code)(Java Doc)
public T[] getListeners(Class<T> listenerType)(Code)(Java Doc)
public MenuShortcut getShortcut()(Code)(Java Doc)
public boolean isEnabled()(Code)(Java Doc)
void itemSelected(long when, int modifiers)(Code)(Java Doc)
public String paramString()(Code)(Java Doc)
protected void processActionEvent(ActionEvent event)(Code)(Java Doc)
protected void processEvent(AWTEvent event)(Code)(Java Doc)
public void removeActionListener(ActionListener listener)(Code)(Java Doc)
public void setActionCommand(String command)(Code)(Java Doc)
public void setEnabled(boolean enabled)(Code)(Java Doc)
public void setLabel(String label)(Code)(Java Doc)
public void setShortcut(MenuShortcut shortcut)(Code)(Java Doc)

Fields inherited from java.awt.MenuComponent
boolean deprecatedEventHandler(Code)(Java Doc)
MenuContainer parent(Code)(Java Doc)
final Toolkit toolkit(Code)(Java Doc)

Methods inherited from java.awt.MenuComponent
String autoName()(Code)(Java Doc)
AccessibleContext createAccessibleContext()(Code)(Java Doc)
final public void dispatchEvent(AWTEvent event)(Code)(Java Doc)
void endMenu()(Code)(Java Doc)
void fireItemAction(int item, long when, int modifiers)(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public Font getFont()(Code)(Java Doc)
Graphics getGraphics(MultiRectArea clip)(Code)(Java Doc)
int getHeight()(Code)(Java Doc)
MenuItem getItem(int index)(Code)(Java Doc)
int getItemCount()(Code)(Java Doc)
Rectangle getItemRect(int index)(Code)(Java Doc)
Point getLocation()(Code)(Java Doc)
MenuBar getMenuBar()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public MenuContainer getParent()(Code)(Java Doc)
public MenuComponentPeer getPeer() throws org.apache.harmony.luni.util.NotImplementedException(Code)(Java Doc)
PopupBox getPopupBox()(Code)(Java Doc)
int getSelectedItemIndex()(Code)(Java Doc)
Menu getSelectedSubmenu()(Code)(Java Doc)
MenuItem getShortcutMenuItemImpl(MenuShortcut ms)(Code)(Java Doc)
Point getSubmenuLocation(int index)(Code)(Java Doc)
final protected Object getTreeLock()(Code)(Java Doc)
final MultiRectArea getUpdateClip(int index1, int index2)(Code)(Java Doc)
int getWidth()(Code)(Java Doc)
boolean hasDefaultFont()(Code)(Java Doc)
void hide()(Code)(Java Doc)
boolean isActive()(Code)(Java Doc)
boolean isFontSet()(Code)(Java Doc)
boolean isVisible()(Code)(Java Doc)
void itemHidden(MenuComponent mc)(Code)(Java Doc)
void itemSelected(long when, int modifiers)(Code)(Java Doc)
void onKeyEvent(int eventId, int vKey, long when, int modifiers)(Code)(Java Doc)
void onMouseEvent(int eventId, Point where, int mouseButton, long when, int modifiers)(Code)(Java Doc)
void paint(Graphics gr)(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
void postDeprecatedEvent(AWTEvent event)(Code)(Java Doc)
public boolean postEvent(Event e)(Code)(Java Doc)
protected void processEvent(AWTEvent event)(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
void selectItem(int index)(Code)(Java Doc)
void selectItem(int index, boolean showSubMenu)(Code)(Java Doc)
void selectNextItem(boolean forward, boolean showSubMenu)(Code)(Java Doc)
public void setFont(Font font)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
void setParent(MenuContainer parent)(Code)(Java Doc)
void showSubMenu(int index)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.