Java Doc for SMenu.java in  » Swing-Library » Swinglets » com » javelin » swinglets » 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 » Swing Library » Swinglets » com.javelin.swinglets 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.javelin.swinglets.SComponent
      com.javelin.swinglets.SAbstractButton
         com.javelin.swinglets.SMenuItem
            com.javelin.swinglets.SMenu

SMenu
public class SMenu extends SMenuItem (Code)


Field Summary
protected  VectormenuItems
    
protected  intselectedIndex
    

Constructor Summary
public  SMenu()
     Construct a SMenu.
public  SMenu(String text)
     Construct a SMenu.

Method Summary
public  SMenuItemadd(SMenuItem menuItem)
     Appends a menuitem to the end of this menu.
public  SMenuItemadd(String string)
     Creates a new menuitem with the specified text and appends it to the end of this menu.
public  voidaddSeparator()
     Append a new separator to the end of the menu.
public  voiddeSelectToRoot()
     Deselects this menu component, and all parent components.
public  SComponentgetComponent(int index)
     Get the nth SComponent.
public  SComponentgetComponent(String name)
     Get a sub menu by name.
public  intgetComponentIndex(SComponent c)
     Get the index of this component, or -1.
public  intgetIndex()
    
public  SMenuItemgetItem(int index)
    
public  intgetItemCount()
     Returns the number of items on the menu, including separators.
public  intgetSelectedIndex()
    
public  ClassgetUIClass()
     Returns the name of the L&F class that renders this component.
public  voidinsert(String text, int index)
     Insert a new menuitem with the specified text at a given position.
public  SMenuIteminsert(SMenuItem menuItem, int index)
     Insert the specified SMenuItem at a given position.
public  voidinsertSeparator(int index)
     Inserts a separator at the specified position, or at the end of the list if greater.
public  booleanisSelected()
    
protected  voidprocessEvent(AWTEvent event)
     Processes events occurring on this component.
protected  voidprocessFormEvent(FormEvent event)
     Process the FormEvent to compute which menu item has been selected.
public  voidremove(SMenuItem menuItem)
     Removes the specified menu item from this menu.
public  voidremove(int index)
     Removes the menu item at the specified index from this menu.
public  voidremove(SComponent c)
     Removes the SComponent from this menu.
public  voidremoveAll()
     Remove all menu items from this menu.
public  SMenusetSelected(SComponent component)
     Sets the currently selected component.

Field Detail
menuItems
protected Vector menuItems(Code)



selectedIndex
protected int selectedIndex(Code)




Constructor Detail
SMenu
public SMenu()(Code)
Construct a SMenu.



SMenu
public SMenu(String text)(Code)
Construct a SMenu.




Method Detail
add
public SMenuItem add(SMenuItem menuItem)(Code)
Appends a menuitem to the end of this menu. Returns the menuitem added.



add
public SMenuItem add(String string)(Code)
Creates a new menuitem with the specified text and appends it to the end of this menu.



addSeparator
public void addSeparator()(Code)
Append a new separator to the end of the menu.



deSelectToRoot
public void deSelectToRoot()(Code)
Deselects this menu component, and all parent components.



getComponent
public SComponent getComponent(int index)(Code)
Get the nth SComponent.



getComponent
public SComponent getComponent(String name)(Code)
Get a sub menu by name. This will descend the menu hierarchy and return the SComponent, or null.



getComponentIndex
public int getComponentIndex(SComponent c)(Code)
Get the index of this component, or -1.



getIndex
public int getIndex()(Code)
Get the index of this menu in its parents menu, or -1



getItem
public SMenuItem getItem(int index)(Code)
Returns the SMenuItem at the specified position, or null if it is a separator (SLabel)



getItemCount
public int getItemCount()(Code)
Returns the number of items on the menu, including separators.



getSelectedIndex
public int getSelectedIndex()(Code)
Get the selected index



getUIClass
public Class getUIClass()(Code)
Returns the name of the L&F class that renders this component.



insert
public void insert(String text, int index)(Code)
Insert a new menuitem with the specified text at a given position.



insert
public SMenuItem insert(SMenuItem menuItem, int index)(Code)
Insert the specified SMenuItem at a given position.



insertSeparator
public void insertSeparator(int index)(Code)
Inserts a separator at the specified position, or at the end of the list if greater. A Separator is a SLabel.



isSelected
public boolean isSelected()(Code)
Returns true if the Menu currently has a component selected



processEvent
protected void processEvent(AWTEvent event)(Code)
Processes events occurring on this component.



processFormEvent
protected void processFormEvent(FormEvent event)(Code)
Process the FormEvent to compute which menu item has been selected.

If this is branch node the display the children, by updating the selected item value.

If this is a leaf node then notify the node that it has been selected through an action event.




remove
public void remove(SMenuItem menuItem)(Code)
Removes the specified menu item from this menu.



remove
public void remove(int index)(Code)
Removes the menu item at the specified index from this menu.



remove
public void remove(SComponent c)(Code)
Removes the SComponent from this menu.



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



setSelected
public SMenu setSelected(SComponent component)(Code)
Sets the currently selected component. If this is null, this will set unselect the menu, and all child menus.



Fields inherited from com.javelin.swinglets.SMenuItem
protected SLink link(Code)(Java Doc)
protected SMenu parentMenu(Code)(Java Doc)

Methods inherited from com.javelin.swinglets.SMenuItem
public String getComponentUrl()(Code)(Java Doc)
public SFont getFont()(Code)(Java Doc)
public int getIndex()(Code)(Java Doc)
public SLink getLink()(Code)(Java Doc)
public SMenuBar getMenuBar()(Code)(Java Doc)
public SMenu getParentMenu()(Code)(Java Doc)
public SContainer getTopLevelAncestor()(Code)(Java Doc)
public SMenuItem getTopLevelMenu()(Code)(Java Doc)
public Class getUIClass()(Code)(Java Doc)
public void paint(Object out)(Code)(Java Doc)
public void paintHeader(Object out)(Code)(Java Doc)
public void processActionEvent(ActionEvent event)(Code)(Java Doc)
public SMenuItem setLink(SLink link)(Code)(Java Doc)
public void setParentMenu(SMenu parentMenu)(Code)(Java Doc)

Fields inherited from com.javelin.swinglets.SAbstractButton
protected SIcon icon(Code)(Java Doc)
protected SIcon pressedIcon(Code)(Java Doc)
protected SIcon rolloverIcon(Code)(Java Doc)
protected SIcon rolloverSelectedIcon(Code)(Java Doc)
protected boolean selected(Code)(Java Doc)
protected SIcon selectedIcon(Code)(Java Doc)
protected String text(Code)(Java Doc)

Methods inherited from com.javelin.swinglets.SAbstractButton
public SIcon getIcon()(Code)(Java Doc)
public SIcon getPressedIcon()(Code)(Java Doc)
public SIcon getRolloverIcon()(Code)(Java Doc)
public SIcon getRolloverSelectedIcon()(Code)(Java Doc)
public SIcon getSelectedIcon()(Code)(Java Doc)
public String getText()(Code)(Java Doc)
public Class getUIClass()(Code)(Java Doc)
public boolean isSelected()(Code)(Java Doc)
public SAbstractButton setIcon(SIcon icon)(Code)(Java Doc)
public SAbstractButton setPressedIcon(SIcon pressedIcon)(Code)(Java Doc)
public SAbstractButton setRolloverIcon(SIcon rolloverIcon)(Code)(Java Doc)
public SAbstractButton setRolloverSelectedIcon(SIcon rolloverSelectedIcon)(Code)(Java Doc)
public SAbstractButton setSelected(boolean selected)(Code)(Java Doc)
public SAbstractButton setSelectedIcon(SIcon selectedIcon)(Code)(Java Doc)
public SAbstractButton setText(String text)(Code)(Java Doc)

Fields inherited from com.javelin.swinglets.SComponent
protected static long COUNTER(Code)(Java Doc)
protected ActionListener actionListener(Code)(Java Doc)
protected SColor background(Code)(Java Doc)
protected SBorder border(Code)(Java Doc)
protected boolean cached(Code)(Java Doc)
protected Hashtable clientProperties(Code)(Java Doc)
protected String componentUrl(Code)(Java Doc)
protected Cursor cursor(Code)(Java Doc)
protected boolean dirty(Code)(Java Doc)
protected boolean enabled(Code)(Java Doc)
protected boolean firingSuspended(Code)(Java Doc)
protected SFont font(Code)(Java Doc)
protected SColor foreground(Code)(Java Doc)
protected int horizontalAlignment(Code)(Java Doc)
protected Locale locale(Code)(Java Doc)
protected SLookAndFeel lookAndFeel(Code)(Java Doc)
protected String name(Code)(Java Doc)
protected boolean opaque(Code)(Java Doc)
protected SContainer parent(Code)(Java Doc)
protected PropertyChangeSupport propertyChangeSupport(Code)(Java Doc)
PrintWriter pw(Code)(Java Doc)
protected boolean rendered(Code)(Java Doc)
protected Vector scripts(Code)(Java Doc)
protected Dimension size(Code)(Java Doc)
StringWriter sw(Code)(Java Doc)
protected int tabIndex(Code)(Java Doc)
protected String toolTipText(Code)(Java Doc)
protected SComponentUI ui(Code)(Java Doc)
protected int verticalAlignment(Code)(Java Doc)
protected boolean visible(Code)(Java Doc)

Methods inherited from com.javelin.swinglets.SComponent
public SComponent addActionListener(ActionListener l)(Code)(Java Doc)
public SComponent addComponentListener(ComponentListener listener)(Code)(Java Doc)
public SComponent addFocusListener(FocusListener listener)(Code)(Java Doc)
public SComponent addKeyListener(KeyListener listener)(Code)(Java Doc)
public SComponent addMouseListener(MouseListener listener)(Code)(Java Doc)
public SComponent addMouseMotionListener(MouseMotionListener listener)(Code)(Java Doc)
public void addNotify()(Code)(Java Doc)
public synchronized SComponent addPropertyChangeListener(PropertyChangeListener listener) throws TooManyListenersException(Code)(Java Doc)
public synchronized SComponent addPropertyChangeListener(String propertyName, PropertyChangeListener listener) throws TooManyListenersException(Code)(Java Doc)
public SComponent addScript(SScript script)(Code)(Java Doc)
protected SComponent addUIListener(EventListener listener)(Code)(Java Doc)
protected String constructComponentName()(Code)(Java Doc)
public void dispatchEvent(AWTEvent event)(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
public void firePropertyChange()(Code)(Java Doc)
final public void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc)
final protected void firePropertyChange(String propertyName, byte oldValue, byte newValue)(Code)(Java Doc)
final protected void firePropertyChange(String propertyName, char oldValue, char newValue)(Code)(Java Doc)
final protected void firePropertyChange(String propertyName, short oldValue, short newValue)(Code)(Java Doc)
final protected void firePropertyChange(String propertyName, int oldValue, int newValue)(Code)(Java Doc)
final protected void firePropertyChange(String propertyName, long oldValue, long newValue)(Code)(Java Doc)
final protected void firePropertyChange(String propertyName, float oldValue, float newValue)(Code)(Java Doc)
final protected void firePropertyChange(String propertyName, double oldValue, double newValue)(Code)(Java Doc)
final protected void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc)
public SContainer getAncestorNamed(String name)(Code)(Java Doc)
public SContainer getAncestorOfClass(Class clazz)(Code)(Java Doc)
public SColor getBackground()(Code)(Java Doc)
public SBorder getBorder()(Code)(Java Doc)
public Enumeration getClientKeys()(Code)(Java Doc)
final public Object getClientProperty(Object key)(Code)(Java Doc)
final public Object getClientProperty(Object key, Object defaultValue)(Code)(Java Doc)
public int getClientPropertyCount()(Code)(Java Doc)
public SComponent getComponent(String name)(Code)(Java Doc)
public String getComponentUrl()(Code)(Java Doc)
public String getContentType()(Code)(Java Doc)
public Cursor getCursor()(Code)(Java Doc)
public SFont getFont()(Code)(Java Doc)
public SColor getForeground()(Code)(Java Doc)
public int getHorizontalAlignment()(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
public SLookAndFeel getLookAndFeel()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public SContainer getParent()(Code)(Java Doc)
public int getScriptCount()(Code)(Java Doc)
public Enumeration getScripts()(Code)(Java Doc)
public Dimension getSize()(Code)(Java Doc)
public SwingletManager getSwingletManager()(Code)(Java Doc)
public int getTabIndex()(Code)(Java Doc)
public String getToolTipText()(Code)(Java Doc)
public SContainer getTopLevelAncestor()(Code)(Java Doc)
public SComponentUI getUI()(Code)(Java Doc)
public Class getUIClass()(Code)(Java Doc)
public int getVerticalAlignment()(Code)(Java Doc)
final protected boolean hasListeners()(Code)(Java Doc)
final protected boolean hasListeners(String propertyName)(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isCached()(Code)(Java Doc)
public boolean isEnabled()(Code)(Java Doc)
public boolean isFiringSuspended()(Code)(Java Doc)
public boolean isOpaque()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
public void onFirstPaint()(Code)(Java Doc)
public void onPaintComponent()(Code)(Java Doc)
public void onPaintComponentFooter()(Code)(Java Doc)
public void onPaintComponentHeader()(Code)(Java Doc)
public void onPaintHeader()(Code)(Java Doc)
public void paint(Object out)(Code)(Java Doc)
public void paintComponent(Object out)(Code)(Java Doc)
public void paintComponentFooter(Object out)(Code)(Java Doc)
public void paintComponentHeader(Object out)(Code)(Java Doc)
public void paintHeader(Object out)(Code)(Java Doc)
public void processActionEvent(ActionEvent event)(Code)(Java Doc)
protected void processEvent(AWTEvent event)(Code)(Java Doc)
final public SComponent putClientProperty(Object key, Object value)(Code)(Java Doc)
public SComponent removeActionListener(ActionListener l)(Code)(Java Doc)
public SComponent removeComponentListener(ComponentListener listener)(Code)(Java Doc)
public SComponent removeFocusListener(FocusListener listener)(Code)(Java Doc)
public SComponent removeKeyListener(KeyListener listener)(Code)(Java Doc)
public SComponent removeMouseListener(MouseListener listener)(Code)(Java Doc)
public SComponent removeMouseMotionListener(MouseMotionListener listener)(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
public synchronized SComponent removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public synchronized SComponent removePropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc)
public SComponent removeScript(SScript script)(Code)(Java Doc)
protected SComponent removeUIListener(EventListener listener)(Code)(Java Doc)
public SComponent setBackground(SColor background)(Code)(Java Doc)
public SComponent setBorder(SBorder border)(Code)(Java Doc)
public void setCached(boolean cached)(Code)(Java Doc)
public void setCursor(Cursor cursor)(Code)(Java Doc)
public SComponent setEnabled(boolean enabled)(Code)(Java Doc)
public void setFiringSuspended(boolean firingSuspended)(Code)(Java Doc)
public SComponent setFont(String name, int style, int size)(Code)(Java Doc)
public SComponent setFont(SFont font)(Code)(Java Doc)
public SComponent setForeground(SColor foreground)(Code)(Java Doc)
public SComponent setHorizontalAlignment(int horizontalAlignment)(Code)(Java Doc)
public SComponent setLocale(Locale locale)(Code)(Java Doc)
public SComponent setLookAndFeel(String lookAndFeel)(Code)(Java Doc)
public SComponent setLookAndFeel(SLookAndFeel lookAndFeel)(Code)(Java Doc)
public SComponent setName(String name)(Code)(Java Doc)
public SComponent setOpaque(boolean opaque)(Code)(Java Doc)
public SComponent setParent(SContainer parent)(Code)(Java Doc)
public SComponent setSize(int width, int height)(Code)(Java Doc)
public SComponent setSize(Dimension size)(Code)(Java Doc)
public void setSwingletManager(SwingletManager swingletManager)(Code)(Java Doc)
public SComponent setTabIndex(int tabIndex)(Code)(Java Doc)
public SComponent setToolTipText(String toolTipText)(Code)(Java Doc)
public SComponent setUI(SComponentUI ui)(Code)(Java Doc)
public SComponent setValueAsText(String text)(Code)(Java Doc)
public SComponent setVerticalAlignment(int verticalAlignment)(Code)(Java Doc)
public SComponent setVisible(boolean visible)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) 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.