|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.novell.nds.dirxml.util.MenuItem
public class MenuItem
Abstract class for use with the Menu class.
Menu| Field Summary | |
|---|---|
protected String |
displayString
|
protected boolean |
exit
|
| Constructor Summary | |
|---|---|
protected |
MenuItem()
Constructor for derived classes. |
|
MenuItem(String displayString)
Constructor for using this class for a generic menu entry. |
|
MenuItem(String displayString,
boolean exitAfterSelect)
Constructor for using this class for a generic menu entry. |
| Method Summary | |
|---|---|
boolean |
exitAfterRun()
Return true if the Menu should be exited after
the MenuItem has been selected and run. |
String |
getDisplayString()
Return the string to display as the menu choice. |
void |
run()
Called when MenuItem is selected by the user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String displayString
protected boolean exit
| Constructor Detail |
|---|
protected MenuItem()
Derived classes must override exitAfterRun() if they want
it to return true;
public MenuItem(String displayString)
true from
exitAfterRun().
displayString - menu item text
public MenuItem(String displayString,
boolean exitAfterSelect)
displayString - menu item textexitAfterSelect - value that exitAfterRun() will return.| Method Detail |
|---|
public void run()
MenuItem is selected by the user.
Default implementation does nothing.
run in interface Runnablepublic String getDisplayString()
public boolean exitAfterRun()
true if the Menu should be exited after
the MenuItem has been selected and run.
true if Menu should exit after run() is called.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||