Java Doc for Menu.java in  » Ajax » MyGWT » net » mygwt » ui » client » widget » menu » 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 » Ajax » MyGWT » net.mygwt.ui.client.widget.menu 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.mygwt.ui.client.widget.Container
   net.mygwt.ui.client.widget.menu.Menu

Menu
public class Menu extends Container (Code)
A menu.
Events:
BeforeOpen : (widget this)
Fired before the menu is opened. Listener can set the doit field to false to cancel the menu being displayed.
  • widget : this
Open : (widget this)
Fired after a the menu is opened
  • widget : this
BeforeClose : (widget this)
Fired before the menu is closed. Listener can set the doit field to false to cancel the menu being hidden.
  • widget : this
Close : (widget this)
Fired after the menu is closed
  • widget : this


Field Summary
protected  booleanhideOnClick
    
 MenuItemparentItem
    
 booleanshowingcloseOnSelect
    

Constructor Summary
public  Menu()
     Creates a new menu.

Method Summary
public  voidadd(MenuItem item)
     Adds a item to the menu.
 voidcloseAllMenus()
    
protected  voiddoAttachChildren()
    
protected  voiddoDetachChildren()
    
public  MenuItemfindItem(Element target)
     Finds a item.
public  MenuItemgetItem(int index)
     Returns the item at the given index or null if the index is out of range.
public  intgetItemCount()
     Returns the number of items contained in the menu.
public  ListgetItems()
     Returns the menu's child items.
public  intgetMinWidth()
     Returns the minimum width.
public  MenuItemgetParentItem()
     Returns the menu's parent item, or null if the menu is a root.
public  StringgetSubMenuAlign()
     Returns the sub menu alignment.
public  voidhide()
    
public  intindexOf(MenuItem item)
     Returns the index of the item, or -1 if not found.
public  voidinsert(MenuItem item, int index)
    
public  voidonBrowserEvent(Event event)
    
protected  voidonMouseOut(Event event)
    
protected  voidonMouseOver(Event event)
    
protected  voidonRender()
    
public  voidremove(MenuItem item)
    
public  voidremoveAll()
     Removes all menu items from this menu.
public  voidsetMinWidth(int minWidth)
     Sets minimum width of the menu in pixels.
public  voidsetSubMenuAlign(String subMenuAlign)
     Sets the MyDOM.alignTo anchor position value to use for submenus of this menu (defaults to "tl-tr?").
public  voidshow()
    
public  voidshow(Element elem, String pos)
     Shows the menu.
public  voidshow(int x, int y)
     Shows the menu at the specified location.
public  voidshow(Widget widget)
     Shows the menu.

Field Detail
hideOnClick
protected boolean hideOnClick(Code)



parentItem
MenuItem parentItem(Code)



showingcloseOnSelect
boolean showingcloseOnSelect(Code)




Constructor Detail
Menu
public Menu()(Code)
Creates a new menu.




Method Detail
add
public void add(MenuItem item)(Code)
Adds a item to the menu.
Parameters:
  item - the new item



closeAllMenus
void closeAllMenus()(Code)



doAttachChildren
protected void doAttachChildren()(Code)



doDetachChildren
protected void doDetachChildren()(Code)



findItem
public MenuItem findItem(Element target)(Code)
Finds a item.
Parameters:
  target - the target element the item



getItem
public MenuItem getItem(int index)(Code)
Returns the item at the given index or null if the index is out of range.
Parameters:
  index - the index of the item to return the item at the given index



getItemCount
public int getItemCount()(Code)
Returns the number of items contained in the menu. the number of items



getItems
public List getItems()(Code)
Returns the menu's child items. the child items



getMinWidth
public int getMinWidth()(Code)
Returns the minimum width. the minimum width



getParentItem
public MenuItem getParentItem()(Code)
Returns the menu's parent item, or null if the menu is a root. the parent item



getSubMenuAlign
public String getSubMenuAlign()(Code)
Returns the sub menu alignment. the alignment



hide
public void hide()(Code)



indexOf
public int indexOf(MenuItem item)(Code)
Returns the index of the item, or -1 if not found.
Parameters:
  item - the item to search for the index or -1 if not found



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



onBrowserEvent
public void onBrowserEvent(Event event)(Code)



onMouseOut
protected void onMouseOut(Event event)(Code)



onMouseOver
protected void onMouseOver(Event event)(Code)



onRender
protected void onRender()(Code)



remove
public void remove(MenuItem item)(Code)



removeAll
public void removeAll()(Code)
Removes all menu items from this menu.



setMinWidth
public void setMinWidth(int minWidth)(Code)
Sets minimum width of the menu in pixels. Default value is 120.
Parameters:
  minWidth - the minimum width



setSubMenuAlign
public void setSubMenuAlign(String subMenuAlign)(Code)
Sets the MyDOM.alignTo anchor position value to use for submenus of this menu (defaults to "tl-tr?").
Parameters:
  subMenuAlign - the alignment



show
public void show()(Code)



show
public void show(Element elem, String pos)(Code)
Shows the menu.
Parameters:
  elem - the align element
Parameters:
  pos - the position



show
public void show(int x, int y)(Code)
Shows the menu at the specified location.
Parameters:
  x - the x coordinate value
Parameters:
  y - the y corrdinate value



show
public void show(Widget widget)(Code)
Shows the menu.
Parameters:
  widget - the widget to align to



Fields inherited from net.mygwt.ui.client.widget.Container
protected boolean attachChildren(Code)(Java Doc)
protected List items(Code)(Java Doc)

Methods inherited from net.mygwt.ui.client.widget.Container
final protected void adopt(Widget child)(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
protected void doAttachChildren()(Code)(Java Doc)
protected void doDetachChildren()(Code)(Java Doc)
public Widget findWidget(Element elem)(Code)(Java Doc)
public boolean getAutoDispose()(Code)(Java Doc)
public Widget getWidget(int index)(Code)(Java Doc)
public int getWidgetCount()(Code)(Java Doc)
public Iterator iterator()(Code)(Java Doc)
final protected void orphan(Widget child)(Code)(Java Doc)
public boolean remove(Widget widget)(Code)(Java Doc)
public void setAutoDispose(boolean autoDispose)(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.