Java Doc for Menu.java in  » Ajax » gwtext-2.01 » com » gwtext » client » widgets » 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 » gwtext 2.01 » com.gwtext.client.widgets.menu 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.gwtext.client.widgets.menu.Menu

All known Subclasses:   com.gwtext.client.widgets.menu.DateMenu,  com.gwtext.client.widgets.menu.ColorMenu,
Menu
public class Menu extends Widget (Code)
A menu object. This is the container to which you add all other menu items.


Field Summary
protected  JavaScriptObjectconfig
    
protected  Stringid
    
protected  JavaScriptObjectjsObj
    

Constructor Summary
public  Menu()
    
public  Menu(JavaScriptObject jsObj)
    

Method Summary
native public  voidaddElement(Element element)
     Adds an Element object to the menu.
native public  voidaddElement(String elemID)
     Adds an Ext.Element object to the menu.
native public  voidaddItem(BaseItem item)
     Adds an Item to the menu.
native public  voidaddListener(MenuListener listener)
     Add a menu listener.
native public  voidaddSeparator()
     Adds a separator bar to the menu.
native public  voidaddText(String text)
     Creates a new TextItem with the supplied text and adds it to the menu.
protected  JavaScriptObjectcreate(String id, JavaScriptObject config)
    
native protected  JavaScriptObjectcreate(JavaScriptObject menuConfig)
    
native protected static  JavaScriptObjectgetComponent(String id)
    
native protected  ElementgetElement(JavaScriptObject jsObj)
    
public  ElementgetElement()
    
native public  BaseItemgetItem(String itemId)
     Gets an Item.
native public  BaseItem[]getItems()
    
public  JavaScriptObjectgetOrCreateJsObj()
    
native public  voidhide()
     Hides this menu.
native public  voidhide(boolean deep)
     Hides this menu and optionally all parent menus.
native public  voidinsert(int index, BaseItem item)
     Inserts an e Item to the menu at a specified index.
native public  booleanisVisible()
     Returns true if the menu is currently displayed, else false.
native public  voidremove(BaseItem item)
     Removes an Item from the menu and destroys the object.
native public  voidremoveAll()
    
public  voidsetAllowOtherMenus(boolean allowOtherMenus)
     True to allow multiple menus to be displayed at the same time (defaults to false).
public  voidsetDefaultAlign(String anchorPosition)
     The default com.gwtext.client.core.ExtElement.alignTo anchor position value for this menu relative to its element of origin (defaults to "tl-bl").
public  voidsetId(String id)
    
public  voidsetMinWidth(int minWidth)
     The minimum width of the menu in pixels (defaults to 120).
public  voidsetShadow(boolean shadow)
     True for the default effect.
public  voidsetShadow(String shadow)
    
public  voidsetSubMenuAlign(String anchorPosition)
     The Ext.Element.alignTo anchor position value to use for submenus of this menu (defaults to "tl-tr?").
native public  voidshow(String id)
     Displays this menu relative to another element.
public  voidshowAt(int x, int y)
     Displays this menu at a specific xy position.
public  voidshowAt(int[] xy)
     Displays this menu at a specific xy position.
public  voidshowAt(int x, int y, Menu parentMenu)
     Displays this menu at a specific xy position.

Field Detail
config
protected JavaScriptObject config(Code)



id
protected String id(Code)



jsObj
protected JavaScriptObject jsObj(Code)




Constructor Detail
Menu
public Menu()(Code)



Menu
public Menu(JavaScriptObject jsObj)(Code)




Method Detail
addElement
native public void addElement(Element element)(Code)
Adds an Element object to the menu.
Parameters:
  element - the element to add



addElement
native public void addElement(String elemID)(Code)
Adds an Ext.Element object to the menu.
Parameters:
  elemID - the element ID



addItem
native public void addItem(BaseItem item)(Code)
Adds an Item to the menu.
Parameters:
  item - the item to add



addListener
native public void addListener(MenuListener listener)(Code)
Add a menu listener.
Parameters:
  listener - the listener



addSeparator
native public void addSeparator()(Code)
Adds a separator bar to the menu.



addText
native public void addText(String text)(Code)
Creates a new TextItem with the supplied text and adds it to the menu.
Parameters:
  text - the text to add



create
protected JavaScriptObject create(String id, JavaScriptObject config)(Code)



create
native protected JavaScriptObject create(JavaScriptObject menuConfig)(Code)



getComponent
native protected static JavaScriptObject getComponent(String id)(Code)



getElement
native protected Element getElement(JavaScriptObject jsObj)(Code)



getElement
public Element getElement()(Code)



getItem
native public BaseItem getItem(String itemId)(Code)
Gets an Item.
Parameters:
  itemId - the item Id the item



getItems
native public BaseItem[] getItems()(Code)



getOrCreateJsObj
public JavaScriptObject getOrCreateJsObj()(Code)



hide
native public void hide()(Code)
Hides this menu.



hide
native public void hide(boolean deep)(Code)
Hides this menu and optionally all parent menus.
Parameters:
  deep - true to hide all parent menus recursively, if any (defaults to false)



insert
native public void insert(int index, BaseItem item)(Code)
Inserts an e Item to the menu at a specified index.
Parameters:
  index - the index to insert
Parameters:
  item - the item to insert



isVisible
native public boolean isVisible()(Code)
Returns true if the menu is currently displayed, else false. true if visible



remove
native public void remove(BaseItem item)(Code)
Removes an Item from the menu and destroys the object.
Parameters:
  item - the item to remove



removeAll
native public void removeAll()(Code)
Removes and destroys all items in the menu



setAllowOtherMenus
public void setAllowOtherMenus(boolean allowOtherMenus)(Code)
True to allow multiple menus to be displayed at the same time (defaults to false).
Parameters:
  allowOtherMenus - true to allow multiple menus



setDefaultAlign
public void setDefaultAlign(String anchorPosition)(Code)
The default com.gwtext.client.core.ExtElement.alignTo anchor position value for this menu relative to its element of origin (defaults to "tl-bl").
Parameters:
  anchorPosition - defaults to t-b?



setId
public void setId(String id)(Code)



setMinWidth
public void setMinWidth(int minWidth)(Code)
The minimum width of the menu in pixels (defaults to 120).
Parameters:
  minWidth - the min width



setShadow
public void setShadow(boolean shadow)(Code)
True for the default effect.
Parameters:
  shadow - true for shadow



setShadow
public void setShadow(String shadow)(Code)
"sides" for the default effect, "frame" for 4-way shadow, and "drop" for bottom-right shadow (defaults to "sides")
Parameters:
  shadow - the shadow settings



setSubMenuAlign
public void setSubMenuAlign(String anchorPosition)(Code)
The Ext.Element.alignTo anchor position value to use for submenus of this menu (defaults to "tl-tr?").
Parameters:
  anchorPosition - the anchor position



show
native public void show(String id)(Code)
Displays this menu relative to another element.
Parameters:
  id - the element ID to align to



showAt
public void showAt(int x, int y)(Code)
Displays this menu at a specific xy position.
Parameters:
  x - the X position
Parameters:
  y - the Y position



showAt
public void showAt(int[] xy)(Code)
Displays this menu at a specific xy position.
Parameters:
  xy - the xy position



showAt
public void showAt(int x, int y, Menu parentMenu)(Code)
Displays this menu at a specific xy position.
Parameters:
  x - the X position
Parameters:
  y - the Y position
Parameters:
  parentMenu - the menu's parent menu, if applicable



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