Java Doc for MenuItem.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.Item
   net.mygwt.ui.client.widget.menu.MenuItem

MenuItem
public class MenuItem extends Item (Code)
A selectable item in a MenuBar.
Styles:
PUSH, CHECK, RADIO, MENU, SEPARATOR
Events:
Select : (widget this)
Fired when a item is selected.
  • widget : this
CheckChange : (widget)
Fires after a check state change.
  • widget : this
BeforeOpen : (widget)
Fires before the sub menu is displayed. Listeners can set the doit field to false to cancel the action.
  • widget : this
Open : (widget)
Fires after the sub menu is shown.
  • widget : this
CSS:
.my-menuitem (the item itself)
.my-menuitem-text span (the menu item text)


Field Summary
 booleancanActivate
    
 booleanenabled
    
 MenuparentMenu
    
 MenusubMenu
    

Constructor Summary
public  MenuItem()
     Creates a new PUSH menu item.
public  MenuItem(int style)
     Creates a new menu item.

Method Summary
 voidactivate(boolean autoOpen)
    
public  voidaddSelectionListener(SelectionListener listener)
     Adds a listener interface to receive selection events.
 voiddeactivate()
    
 voidexpandMenu()
    
public  StringgetGroup()
     Returns the item's group value.
public  booleangetHideOnClick()
     Returns true if the menu will be closed on a click.
public  MenugetSubMenu()
     Returns the item's sub menu.
 voidhideMenu()
    
public  booleanisSelected()
     Returns true if the item is selected.
protected  voidonClick(BaseEvent be)
    
protected  voidonRender()
    
public  voidremoveSelectionListener(SelectionListener listener)
     Removes a previously added listener.
public  voidsetGroup(String group)
     Allows radio items to be grouped together.
public  voidsetHideOnClick(boolean hideOnClick)
     Specifies if the menu should be hidden when the item is selected.
public  voidsetSelected(boolean selected)
     Sets the item's selected state.
public  voidsetStyle(int style)
     Sets the item's style.
public  voidsetSubMenu(Menu menu)
     Sets the item's sub menu.
 booleanshouldDeactivate(Event event)
    

Field Detail
canActivate
boolean canActivate(Code)



enabled
boolean enabled(Code)



parentMenu
Menu parentMenu(Code)



subMenu
Menu subMenu(Code)




Constructor Detail
MenuItem
public MenuItem()(Code)
Creates a new PUSH menu item.



MenuItem
public MenuItem(int style)(Code)
Creates a new menu item.




Method Detail
activate
void activate(boolean autoOpen)(Code)



addSelectionListener
public void addSelectionListener(SelectionListener listener)(Code)
Adds a listener interface to receive selection events.
Parameters:
  listener - the listener to add



deactivate
void deactivate()(Code)



expandMenu
void expandMenu()(Code)



getGroup
public String getGroup()(Code)
Returns the item's group value. the group



getHideOnClick
public boolean getHideOnClick()(Code)
Returns true if the menu will be closed on a click. the hide on click state



getSubMenu
public Menu getSubMenu()(Code)
Returns the item's sub menu. the sub menu



hideMenu
void hideMenu()(Code)



isSelected
public boolean isSelected()(Code)
Returns true if the item is selected.

When the item is of type CHECK or RADIO, it is selected when it is checked.

the selected state



onClick
protected void onClick(BaseEvent be)(Code)



onRender
protected void onRender()(Code)



removeSelectionListener
public void removeSelectionListener(SelectionListener listener)(Code)
Removes a previously added listener.
Parameters:
  listener - the listener to be removed



setGroup
public void setGroup(String group)(Code)
Allows radio items to be grouped together.



setHideOnClick
public void setHideOnClick(boolean hideOnClick)(Code)
Specifies if the menu should be hidden when the item is selected. Default value is true.
Parameters:
  hideOnClick - true to enable



setSelected
public void setSelected(boolean selected)(Code)
Sets the item's selected state.

When the item is of type CHECK or RADIO, it is selected when it is checked.


Parameters:
  selected - the select state



setStyle
public void setStyle(int style)(Code)
Sets the item's style. Has no effect if called after the item has been rendered.
Parameters:
  style - the style



setSubMenu
public void setSubMenu(Menu menu)(Code)
Sets the item's sub menu.
Parameters:
  menu - the sub menu or null to clear the sub menu



shouldDeactivate
boolean shouldDeactivate(Event event)(Code)



Fields inherited from net.mygwt.ui.client.widget.Item
protected String baseStyleiconStyle(Code)(Java Doc)
protected Element centerElemtextElem(Code)(Java Doc)
protected IconButton iconBtn(Code)(Java Doc)
protected String markup(Code)(Java Doc)
protected Element midleftElemmidRightElem(Code)(Java Doc)
protected boolean overStyleEnabled(Code)(Java Doc)
protected boolean sinkEvents(Code)(Java Doc)
protected HorizontalPanel widgetPanel(Code)(Java Doc)
protected List widgets(Code)(Java Doc)

Methods inherited from net.mygwt.ui.client.widget.Item
public void addWidget(Widget widget)(Code)(Java Doc)
protected void doAttachChildren()(Code)(Java Doc)
protected void doDetachChildren()(Code)(Java Doc)
public String getIconStyle()(Code)(Java Doc)
public String getText()(Code)(Java Doc)
public Widget getWidget(int index)(Code)(Java Doc)
public void insertWidget(Widget widget, int index)(Code)(Java Doc)
protected boolean isSelected()(Code)(Java Doc)
public void onBaseEvent(BaseEvent be)(Code)(Java Doc)
protected void onClick(BaseEvent be)(Code)(Java Doc)
protected void onDisable()(Code)(Java Doc)
protected void onEnable()(Code)(Java Doc)
protected void onMouseDown(BaseEvent be)(Code)(Java Doc)
protected void onMouseOut(BaseEvent be)(Code)(Java Doc)
protected void onMouseOver(BaseEvent be)(Code)(Java Doc)
protected void onMouseUp(BaseEvent be)(Code)(Java Doc)
protected void onRender()(Code)(Java Doc)
public void removeWidget(Widget widget)(Code)(Java Doc)
public void setIconStyle(String iconStyle)(Code)(Java Doc)
protected void setSelected(boolean select)(Code)(Java Doc)
public void setText(String text)(Code)(Java Doc)
public void setWidgetSpacing(int spacing)(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.