|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--Help.MyMenu
This class provides the menus structure. The menu contains a name, text and, if so, an array of submenu.
| Field Summary | |
protected String |
name
The name of the menu. |
protected MyMenu[] |
subMenu
The array of sub menu. |
protected String |
text
The text of the menu |
| Constructor Summary | |
MyMenu(String name,
String text)
The other constructor. |
|
MyMenu(String name,
String text,
MyMenu[] subMenu)
The main constructor. |
|
| Method Summary | |
boolean |
hasSubMenu()
This method return if the menu has sub menu or not. |
String |
name()
This method return the name of the menu. |
MyMenu[] |
subMenu()
Return the array of submenus of a menu. |
String |
text()
This method return the text of the menu. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected String name
protected String text
protected MyMenu[] subMenu
| Constructor Detail |
public MyMenu(String name,
String text,
MyMenu[] subMenu)
name - The name of the menu.text - The text of the menu.subMenu - The array of sub menus.
public MyMenu(String name,
String text)
name - The name of the menu.text - The text of the menu.| Method Detail |
public String name()
public String text()
public boolean hasSubMenu()
public MyMenu[] subMenu()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||